Template:WP: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[wikipedia:{{{1|Main Page}}}|{{{2|{{{1|wikipedia}}}}}}]]</includeonly><noinclude>
[[wikipedia:{{{1|Main Page}}}|{{{2|{{{1|wikipedia}}}}}}]]<noinclude>


==Usage==
see the [[{{TALKPAGENAME}}|talk page]] for documentation
 
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>
Passing '''no''' arguments, this templates creates a link to wikipedia's main page.
<pre>{{wikipedia}}</pre>
:{{wikipedia}}
 
Passing '''one''' argument, this templates creates a link to the corresponding wikipedia article.
<pre>{{wikipedia|foo}}</pre>
:{{wikipedia|foo}}
 
Passing '''two''' arguments, this templates creates a link to the wikipedia article given by the first argument, but displaying the alternate text given by the second argument.
<pre>{{wikipedia|foo|bar}}</pre>
:{{wikipedia|foo|bar}}
 
Note that
<pre>{{wikipedia|foo|bar}}</pre>
is the same as
<pre>{{wikipedia|1=foo|2=bar}} OR
{{wikipedia|2=bar|1=foo}}</pre>
 
So you can force a link to wikipedia's main page with an alternate text by forcing the second argument, while providing nothing as the first. This is done by '''naming''' the argument and providing a value for it.
<pre>{{wikipedia|2=lorem ipsum}}</pre>
:{{wikipedia|2=Lorem ipsum}}
 
 
Passing further arguments provides no useful output.
</noinclude>

Latest revision as of 08:41, 21 July 2011

wikipedia

see the talk page for documentation