Difference between revisions of "Template:MathWorld"

From blackwiki
Jump to navigation Jump to search
imported>HJ Mitchell
m (Protected Template:MathWorld: high risk template transcluded on over 2,000 pages. Batch protection; requests for review can be brought to WP:RFUP. using TW ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
imported>David Eppstein
(exclude id (it means something different in the cite web invocation than it should here))
 
(32 intermediate revisions by 21 users not shown)
Line 1: Line 1:
<span class="citation mathworld" id="Reference-Mathworld-{{{title|{{{2|{{PAGENAME}}}}}}}}">{{{author|[[Eric W. Weisstein|Weisstein, Eric W.]]}}}, "[http://mathworld.wolfram.com/{{{urlname|{{{1|}}}}}}.html {{{title|{{{2|{{PAGENAME}}}}}}}}]" from [[MathWorld]].</span><noinclude>{{documentation}} </noinclude>
+
<span class="citation mathworld" id="Reference-Mathworld-{{{title|{{{2|{{PAGENAMEBASE}}}}}}}}">{{#invoke:Template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite web
 +
|_exclude=urlname, _debug, id
 +
|url        = https://mathworld.wolfram.com/{{#if:{{{1|}}}{{{id|}}}{{{urlname|}}}|{{{1|{{{id|{{{urlname|}}}}}}}}}.html}}
 +
|title      = {{{2|{{{title|{{PAGENAMEBASE}}}}}}}}
 +
|author      = {{{3|{{{author|[[Eric W. Weisstein|Weisstein, Eric W.]]}}}}}}
 +
|website    = [[MathWorld]]
 +
|access-date = {{{4|{{{access-date|{{{accessdate|}}}}}}}}}
 +
|ref = {{{5|{{{ref|{{SfnRef|Weisstein}}}}}}}}
 +
}}</span><noinclude>
 +
{{documentation}} </noinclude>

Latest revision as of 06:42, 18 November 2020

Weisstein, Eric W. "[[:Template:PAGENAMEBASE]]". MathWorld. URL–wikilink conflict (help)

Template documentation[view] [edit] [history] [purge]

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

Usage

{{MathWorld |id= |title= |author= |access-date= |ref= }}

where all parameters must be in title case.

Params

  1. |id= - e.g.: GammaFunction
  2. |title= - e.g.: Gamma Function; defaults to page name
  3. |author= (optional) e.g.: John Doe (default is Eric Wolfgang Weisstein)
  4. |access-date= - for use in citations
  5. |ref= - to mark a reference anchor name to match {{sfn}}-style references
  6. |mode= - "cs1" (the default) or "cs2" for Citation Style 1 or Citation Style 2

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

MathWorld

  • Code: {{MathWorld |title=Gigantic Prime |id=GiganticPrime |access-date={{subst:TODAY}}}}
Output: Weisstein, Eric W. "Gigantic Prime". MathWorld. Retrieved Template:TODAY. Check date values in: |access-date= (help)

MathWorld2

Compare with:

  • Code:{{MathWorld2 |title=Gigantic Prime |id=GiganticPrime |access-date={{subst:TODAY}}}}
Output: Eric W. Weisstein, Gigantic Prime ({{{title2}}}) at MathWorld.

See also

Template:Wolfram see also