This site is supported by donations to The OEIS Foundation.
Template:MathWorld/doc
The {{MathWorld}} external link template gives a [URL encoded] link to a page on MathWorld.
Contents
Usage
- {{MathWorld|urlname = PageIndex|title = Page Title|author = Lastname, Firstname|authorlink = authorlink}}
where
- author defaults to: Weisstein, Eric W.
- authorlink defaults to:
- http://mathworld.wolfram.com/topics/Lastname.html (from Lastname, Firstname)
- http://mathworld.wolfram.com/about/author.html (for Weisstein, Eric W.)
or
- {{MathWorld|urlname = PageIndex|title = Page Title}}
or
- {{MathWorld|PageIndex|Page Title}}
where the first parameter is assumed to be urlname, the second parameter is assumed to be title, or
- {{MathWorld|Page Title}}
where urlname is inferred by automatically
- removing all spaces, ' and ’ (apostrophe),
- replacing ^ by -,
- replacing * by Star,
- replacing ä by ae, and
- then URL encodes it. (Note that MathWorld uses "title case", while OEIS Wiki uses "sentence case"! Currently, to infer urlname from title, you must use "title case"!)
Examples
Examples with valid input
{{MathWorld}} yields
- Weisstein, Eric W., Main Page, from MathWorld—A Wolfram Web Resource.
{{MathWorld|urlname=BenfordsLaw|title=Benford's Law}} yields
- Weisstein, Eric W., Benford's Law, from MathWorld—A Wolfram Web Resource.
{{MathWorld|BenfordsLaw|Benford's Law}} yields
- Weisstein, Eric W., Benford's Law, from MathWorld—A Wolfram Web Resource.
{{MathWorld|Benford's Law}} yields
- Weisstein, Eric W., Benford's Law, from MathWorld—A Wolfram Web Resource.
{{MathWorld|Benford{{'}}s Law}} yields
- Weisstein, Eric W., Benford’s Law, from MathWorld—A Wolfram Web Resource.
{{MathWorld|Ramanujan Prime|author = Sondow, Jonathan|authorlink = http://mathworld.wolfram.com/topics/Sondow.html}} yields
- Sondow, Jonathan, Ramanujan Prime, from MathWorld—A Wolfram Web Resource, created by Eric W. Weisstein.
{{MathWorld|title = Ramanujan Prime|author = Sondow, Jonathan}} yields
- Sondow, Jonathan, Ramanujan Prime, from MathWorld—A Wolfram Web Resource, created by Eric W. Weisstein.
{{MathWorld|Ramanujan Prime|author = Sondow, Jonathan}} yields
- Sondow, Jonathan, Ramanujan Prime, from MathWorld—A Wolfram Web Resource, created by Eric W. Weisstein.
{{MathWorld|C^*-Algebra}} yields
- Weisstein, Eric W., C^*-Algebra, from MathWorld—A Wolfram Web Resource.
Examples with invalid input
{{MathWorld|Benford's law}} yields (urlname inferred from title using "sentence case": link won't work!)
- Weisstein, Eric W., Benford's law, from MathWorld—A Wolfram Web Resource.
Code
<noinclude>{{documentation}}<!-- From {{{title|{{{urlname|{{{1|index}}}}}}}}}, automatically * removes all spaces and ', * replaces ^ by -, * replaces * by Star, * replaces ä by ae, * and then URL encodes it. --></noinclude><includeonly>[<!-- -->{{#ifeq: {{{author|Weisstein, Eric W.}}} | Weisstein, Eric W. | http://mathworld.wolfram.com/about/author.html | {{{authorlink|http://mathworld.wolfram.com/topics/{{#explode:{{{author|index}}}|,|0}}.html}}}<!-- http://mathworld.wolfram.com/topics/Lastname.html --> }} {{{author|Weisstein, Eric W.}}}], <!-- -->[http://mathworld.wolfram.com/<!-- -->{{urlencode:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:<!-- -->{{{title|{{{urlname|{{{1|index}}}}}}}}}<!-- -->| |}}|'|}}|^|-}}|*|Star}}|ä|ae}}|PATH}}.html <!-- -->{{{title|{{{2|{{{urlname|{{{1|Main Page}}}}}}}}}}}}], from MathWorld—A Wolfram Web Resource<!-- -->{{#ifeq: {{{author|Eric W. Weisstein}}} | Eric W. Weisstein |. |, created by [http://mathworld.wolfram.com/about/author.html Eric W. Weisstein]. }} <!-- -->[http://mathworld.wolfram.com/<!-- -->{{urlencode:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:<!-- -->{{{title|{{{urlname|{{{1|index}}}}}}}}}<!-- -->| |}}|'|}}|^|-}}|*|Star}}|ä|ae}}|PATH}}.html]</includeonly><noinclude><!-- {{Cite web | url = http://mathworld.wolfram.com/{{urlencode:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:<!-- -->{{{title|{{{urlname|{{{1|index}}}}}}}}}<!-- -->| |}}|'|}}|^|-}}|*|Star}}|ä|ae}}|PATH}}.html | author = {{{author|Eric W. Weisstein}}} | authorlink = {{{authorlink|http://mathworld.wolfram.com/about/author.html}}} | title = {{{title|{{{2|{{{urlname|{{{1|Main Page}}}}}}}}}}}} | publisher = MathWorld—A Wolfram Web Resource }} --></noinclude>
See also
- {{EoM}} ({{Encyclopedia of Mathematics}}) external link template to create a link to a page on Encyclopedia of Mathematics.
- {{MacTutor}} external link template to create a link to a page on MacTutor.
- {{PlanetMath}} external link template to create a link to a page on PlanetMath.
- {{Plouffe's Inverter}} external link template to create a link to Plouffe's Inverter.