Namespaces
Variants
Actions

Difference between revisions of "Template:MSCwiki"

From Encyclopedia of Mathematics
Jump to: navigation, search
m (typo in comment)
m (cleanup)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
== Usage ==
+
==== Usage ====
 
<nowiki>{{MSCwiki|<i>MSC</i>}}</nowiki>
 
<nowiki>{{MSCwiki|<i>MSC</i>}}</nowiki>
  
Line 13: Line 13:
 
displays the full entry 16K50.
 
displays the full entry 16K50.
 
---------------------
 
---------------------
 +
==== Code ====
 
This template depends on  
 
This template depends on  
 
[[Template:MSCwiki8]], [[Template:MSN_HOST]].
 
[[Template:MSCwiki8]], [[Template:MSN_HOST]].
 
</noinclude><!--
 
</noinclude><!--
-->{{#if:{{{1|}}}|
+
-->{{#if:{{{1|}}}|<!--
[http://msc2010.org/mscwiki/index.php?title=<!--
+
  -->[http://msc2010.org/mscwiki/index.php?title=<!--
-->{{#ifexpr:{{#len:{{{1}}} }}=2| {{{1}}}-XX |
+
      -->{{#ifexpr:{{#len:{{{1}}} }}=2|<!--
    {{padright:|3|{{{1}}} }}<!--  
+
          -->{{{1}}}-XX |<!--
  -->{{#switch:{{#pos:{{{1}}}|-}}
+
          -->{{padright:|3|{{{1}}} }}<!--  
      | 2        = XX  
+
          -->{{#switch:{{#pos:{{{1}}}|-}}
      | #default = xx
+
              | 2        = XX  
    }}
+
              | #default = xx
    }} <!--
+
            }}<!--
-->{{#ifexpr:{{#len:{{{1}}} }}=2| {{{1}}}-XX |
+
      -->}} <!--
<!--
+
      -->{{#ifexpr:{{#len:{{{1}}} }}=2|<!--
padding suppressed here in order to display complete entry:
+
          -->{{{1}}}-XX |<!--
      {{padright:|3|{{{1}}} }}
+
          -->{{{1}}}<!--
      {{#switch:{{#pos:{{{1}}}|-}}
+
       -->}}<!--
       | 2        = XX
+
   -->]<!--
      | #default = xx
+
-->}}
    }}-->
 
    {{{1}}}
 
   }}]|
 
}}
 

Revision as of 16:14, 16 February 2012

Usage

{{MSCwiki|<i>MSC</i>}}

where MSC is a single MSC entry like 16-XX, 16Kxx, 16K50

It returns a link to Wikipedia MSC2010

A two digit MSC entry like 16 is automatically extended to 16-XX.
A five digits entry like 16K50 generates a link to ...16Kxx but displays the full entry 16K50.


Code

This template depends on Template:MSCwiki8, Template:MSN_HOST.

How to Cite This Entry:
MSCwiki. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=MSCwiki&oldid=20597