Difference between revisions of "Template:MathWorld/doc"

From blackwiki
Jump to navigation Jump to search
imported>Tentacles
(usage)
imported>Tentacles
(→‎Usage: where all parameters must be in title case)
Line 14: Line 14:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
where all parameters must be in [[title case]].
  
 
== Params ==
 
== Params ==

Revision as of 18:25, 11 April 2016

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

Usage

{{MathWorld
| id = {{{id|{{{urlname|{{{1|}}}}}}}}}
| title = {{{title|{{{2|{{PAGENAME}}}}}}}}
| id2 = {{{id2|{{{urlname2|{{{3|}}}}}}}}}
| title2 = {{{title2|{{{4|{{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.
  • Code: {{MathWorld |title=Gigantic Prime |id=GiganticPrime|title2=Prime Number|id2=PrimeNumber}}
Output: Weisstein, Eric W. "Gigantic Prime". MathWorld. Unknown parameter |title2= ignored (help); Unknown parameter |id2= ignored (help)

See also