Difference between revisions of "Template:MathWorld/doc"

From blackwiki
Jump to navigation Jump to search
imported>Tentacles
(→‎Usage: where all parameters must be in title case)
imported>Pigsonthewing
(update)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
  
This template is used for references to http://mathworld.wolfram.com.
+
This template is used for links or references to http://mathworld.wolfram.com
  
 
== Usage ==
 
== Usage ==
Line 9: Line 9:
 
| id = {{{id|{{{urlname|{{{1|}}}}}}}}}
 
| id = {{{id|{{{urlname|{{{1|}}}}}}}}}
 
| title = {{{title|{{{2|{{PAGENAME}}}}}}}}
 
| title = {{{title|{{{2|{{PAGENAME}}}}}}}}
| id2 = {{{id2|{{{urlname2|{{{3|}}}}}}}}}
 
| title2 = {{{title2|{{{4|{{PAGENAME}}}}}}}}
 
 
| author = {{{author|[[Eric W. Weisstein|Weisstein, Eric W.]]}}}
 
| author = {{{author|[[Eric W. Weisstein|Weisstein, Eric W.]]}}}
 
}}
 
}}
Line 35: Line 33:
  
 
:Output: {{MathWorld |title=Gigantic Prime |id=GiganticPrime}}
 
:Output: {{MathWorld |title=Gigantic Prime |id=GiganticPrime}}
 
*Code: <code><nowiki>{{MathWorld |title=Gigantic Prime
 
|id=GiganticPrime|title2=Prime Number|id2=PrimeNumber}}</nowiki></code>
 
 
:Output: {{MathWorld |title=Gigantic Prime
 
|id=GiganticPrime|title2=Prime Number|id2=PrimeNumber}}
 
  
 
== See also ==
 
== See also ==
Line 50: Line 42:
 
<includeonly>
 
<includeonly>
  
<!-- ADD CATEGORIES AND INTERWIKIS LINKS AFTER THIS LINE -->
+
<!-- ADD CATEGORIES LINKS AFTER THIS LINE -->
 
[[Category:Mathematics source templates|{{PAGENAME}}]]
 
[[Category:Mathematics source templates|{{PAGENAME}}]]
 
[[Category:Mathematics websites]]
 
[[Category:Mathematics websites]]
  
 
</includeonly>
 
</includeonly>

Revision as of 19:15, 26 August 2016

This template is used for links or references to http://mathworld.wolfram.com

Usage

{{MathWorld
| id = {{{id|{{{urlname|{{{1|}}}}}}}}}
| title = {{{title|{{{2|{{PAGENAME}}}}}}}}
| author = {{{author|[[Eric W. Weisstein|Weisstein, Eric W.]]}}}
}}

where all parameters must be in title case.

Params

Param id or urlname

e.g.: GammaFunction

Param title

e.g.: Gamma Function

Param author (optional)

e.g.: John Doe (default is Eric W. Weisstein)

HTML anchor

The template uses a HTML anchor of #Reference-Mathworld-(article name). Thus, to reference a MathWorld article entitled "Gigantic Prime" using Harvard style references, use ([[#Reference-Mathworld-Gigantic Prime|Weisstein]]) which will display as: (Weisstein). When clicked, the link is to the reference in the following example.

Example

  • Code: {{MathWorld |title=Gigantic Prime |id=GiganticPrime}}
Output: Weisstein, Eric W. "Gigantic Prime". MathWorld.

See also