Difference between revisions of "Template:MathWorld/doc"
Jump to navigation
Jump to search
imported>Hyacinth m (→See also: move tl above Wolfram see also) |
imported>Tom.Reding m (→top: +{{High-use}}) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Documentation subpage}} |
| + | {{High-use}} | ||
| + | {{CS1 wrapper|base=Cite web}} | ||
| − | + | This template is used for links or references to https://mathworld.wolfram.com/ | |
| − | |||
| − | This template is used for links or references to | ||
== Usage == | == Usage == | ||
| − | <pre>{{MathWorld |id= |title= |author= |access-date=}}</pre> | + | <pre>{{MathWorld |id= |title= |author= |access-date= |ref= }}</pre> |
where all parameters must be in [[title case]]. | where all parameters must be in [[title case]]. | ||
| Line 17: | Line 17: | ||
# {{Para|author}} (optional) e.g.: John Doe (default is ''Eric Wolfgang Weisstein'') | # {{Para|author}} (optional) e.g.: John Doe (default is ''Eric Wolfgang Weisstein'') | ||
# {{Para|access-date}} - for use in citations | # {{Para|access-date}} - for use in citations | ||
| + | # {{para|ref}} - to mark a reference anchor name to match {{tl|sfn}}-style references | ||
| + | # {{para|mode}} - "cs1" (the default) or "cs2" for [[Help:Citation Style 1|Citation Style 1]] or [[Help:Citation Style 2|Citation Style 2]] | ||
== HTML anchor == | == HTML anchor == | ||
| Line 23: | Line 25: | ||
== Example == | == Example == | ||
===MathWorld=== | ===MathWorld=== | ||
| − | *Code: <code><nowiki>{{MathWorld |title=Gigantic Prime | + | *Code: <code><nowiki>{{MathWorld |title=Gigantic Prime |id=GiganticPrime |access-date={{subst:TODAY}}}}</nowiki></code> |
| − | |id=GiganticPrime |access-date={{subst:TODAY}}}}</nowiki></code> | ||
:Output: {{MathWorld |title=Gigantic Prime |id=GiganticPrime |access-date={{TODAY}}}} | :Output: {{MathWorld |title=Gigantic Prime |id=GiganticPrime |access-date={{TODAY}}}} | ||
| Line 30: | Line 31: | ||
===MathWorld2=== | ===MathWorld2=== | ||
Compare with: | Compare with: | ||
| − | *Code:<code><nowiki>{{MathWorld2 |title=Gigantic Prime | + | *Code:<code><nowiki>{{MathWorld2 |title=Gigantic Prime |id=GiganticPrime |access-date={{subst:TODAY}}}}</nowiki></code> |
| − | |id=GiganticPrime |access-date={{subst:TODAY}}}}</nowiki></code> | ||
| − | :Output: {{MathWorld2 |title=Gigantic Prime | + | :Output: {{MathWorld2 |title=Gigantic Prime |id=GiganticPrime |access-date=22 May 2020}} |
== See also == | == See also == | ||
Latest revision as of 17:12, 4 November 2020
| This is a documentation subpage for Template:MathWorld. It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 2,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
| This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
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
|id=- e.g.: GammaFunction|title=- e.g.: Gamma Function; defaults to page name|author=(optional) e.g.: John Doe (default is Eric Wolfgang Weisstein)|access-date=- for use in citations|ref=- to mark a reference anchor name to match {{sfn}}-style references|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
- {{PlanetMath}}