Difference between revisions of "Template:W"

From The Infosphere, the Futurama Wiki
Jump to: navigation, search
m (Protected "Template:W": Seeing as this template already works without complaints and used so widely, I cannot see why anyone needs to edit it. ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Line 1: Line 1:
<includeonly>[[wikipedia:{{{1|Main Page}}}|{{{2|{{{1|Main Page}}}}}}]]</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{#if:{{{film|}}}|[[wikipedia:{{{film}}} ({{year|}}} film)|{{{film}}}]]|[[wikipedia:{{{1|Main Page}}}|{{{2|{{{1|Main Page}}}}}}]]}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 23:22, 30 March 2014

Documentation for {{w}}

Use

For linking to Wikipedia, when necessary. Do note that some infoboxes have a certain |wikipedia= parameter, which may prevail over certain uses of this template.

Usage

{{w|Link[|Text]}}

It takes two parameters, link and text, link is the article on Wikipedia in question, while text is the string of text you wish to present to the readers. In case the link and the text should be the same, leave the second parameter out.

If no parameters are supplied, it will link to Wikipedia's Main Page.

Examples

{{w|Futurama}}
Futurama
{{w|Futurama|Matt Groening's ''Futurama''}}
Matt Groening's Futurama
{{w||Wikipedia}}
Wikipedia
{{w|film=Alien}}
Alien
{{w|film=Giant|1956}}
Giant

See also