Namespaces
Variants
Actions

Difference between revisions of "Template:MSCwiki"

From Encyclopedia of Mathematics
Jump to: navigation, search
m (more detailed usage description)
(no longer linking to spam web site, but to AMS free tool)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
==<noinclude>
+
==== Usage ====
== Usage ==
+
<nowiki>{{MSCwiki|</nowiki><i>MSC</i><nowiki>}}</nowiki>
<nowiki>{{MSCwiki|<i>MSC</i>}}</nowiki>
 
  
where ''MSC'' is a single [http://msc2010.org/mscwiki/index.php?title=MSC2010 MSC] entry like 16-XX, 16Kxx, 16K50 <br />
+
where ''MSC'' is a single [https://mathscinet.ams.org/mathscinet/freetools/msc-search MSC] entry like 16-XX, 16Kxx, 16K50 <br />
  
 
It returns a link to
 
It returns a link to
[http://msc2010.org/mscwiki/index.php?title=MSC2010 Wikipedia MSC2010]
+
[https://mathscinet.ams.org/mathscinet/freetools/msc-search MSC]
  
 
A two digit MSC entry like 16 is automatically extended to 16-XX.<br />
 
A two digit MSC entry like 16 is automatically extended to 16-XX.<br />
 
A five digits entry like 16K50 generates a link to  
 
A five digits entry like 16K50 generates a link to  
[http://msc2010.org/mscwiki/index.php?title=16Kxx ...16Kxx] but
+
[https://mathscinet.ams.org/mathscinet/freetools/msc-search?text=16Kxx ...16Kxx] but
 
displays the full entry 16K50.
 
displays the full entry 16K50.
 
---------------------
 
---------------------
This template depends on
+
 
[[Template:MSCwiki8]], [[Template:MSN_HOST]].
+
==== Code ====
 +
This template is called by [[Template:MSC]],
 +
[[Template:MSCwiki8]].
 +
 
 +
Requirements: In ParserFunctions.php, set:
 +
 
 +
$wgPFEnableStringFunctions = true;
 +
 
 
</noinclude><!--
 
</noinclude><!--
-->{{#if:{{{1|}}}|
+
-->{{#if:{{{1|}}}|<!--
[http://msc2010.org/mscwiki/index.php?title=<!--
+
  -->[https://mathscinet.ams.org/mathscinet/freetools/msc-search?text=<!--
-->{{#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}}}
 
   }}]|
 
}}
 

Latest revision as of 09:37, 12 October 2023

Usage

{{MSCwiki|MSC}}

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

It returns a link to MSC

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 is called by Template:MSC, Template:MSCwiki8.

Requirements: In ParserFunctions.php, set:

$wgPFEnableStringFunctions = true;


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