Difference between revisions of "Template:w"
Line 1: | Line 1: | ||
− | <includeonly>[http://www.wikipedia.org/wiki/{{#if:{{{1|}}}|{{{1}}}}}|{{PAGENAME}} {{{2}}}]</includeonly> | + | <includeonly>[http://www.wikipedia.org/wiki/{{#if:{{{1|}}}|{{{1}}}}}|{{PAGENAME}} {{#if:{{{2|}}}|{{{2}}}}}|]</includeonly> |
<noinclude> | <noinclude> | ||
A template to make a link to wikipedia.<!-- For a tag to have "at [[Wikipedia:|Wikipedia]]" without being a link to the page name, use {{Tl|wat}} - this is useful for see-also lists.--> | A template to make a link to wikipedia.<!-- For a tag to have "at [[Wikipedia:|Wikipedia]]" without being a link to the page name, use {{Tl|wat}} - this is useful for see-also lists.--> | ||
==Usage== | ==Usage== | ||
− | *<nowiki>{{w | + | *<nowiki>{{w}}</nowiki> by itself links to the Wikipedia main page |
**{{w}} | **{{w}} | ||
− | *<nowiki>{{w|Page | + | *<nowiki>{{w|Page}}</nowiki> links to the wikipedia article on "Page" |
− | **{{w|Page | + | **{{w|Page}} |
*<nowiki>{{w|Page|Display}}</nowiki> prints "Display" which links to the wikipedia article on "Page" | *<nowiki>{{w|Page|Display}}</nowiki> prints "Display" which links to the wikipedia article on "Page" | ||
**{{w|Page|Display}} | **{{w|Page|Display}} |