Template:Wikipedia: Difference between revisions

m (Cat)
(edit)
Line 1: Line 1:
<noinclude>This template is used for linking to the Wikipedia article of a page, whenever applicable.
<includeonly><div class="sister-wikipedia"><div class="sister-project"><div class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; text-align: left; float: right;">
 
Simply using <code><nowiki>{{wikipedia}}</nowiki></code> will place the box with an automatic link to the Wikipedia article of the same name.
 
{{wikipedia}}
<br clear="both">
Using <code><nowiki>{{wikipedia|Test}}</nowiki></code> allows you to specify the Wikipedia page it links to.
 
{{wikipedia|Test}}
<br clear="both">
This template should not be used where the article is empty or only a single sentence. [[Template:Redirect]] when used as <code><nowiki>{{redirect|wp:Test|Test|on Wikipedia}}</nowiki></code> will produce the following big link to the page.
{{redirect|wp:Test|Test|on Wikipedia}}
 
</noinclude><includeonly><div class="sister-wikipedia"><div class="sister-project"><div class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; text-align: left; float: right;">
<div style="float: left;">[[Image:Wikipedia-logo-en.png|48px|none| ]]</div>
<div style="float: left;">[[Image:Wikipedia-logo-en.png|48px|none| ]]</div>
<div style="margin-left: 60px;">{{#if:{{{lang|}}}|{{{{{lang}}}}}&nbsp;}}'''[[wp:|Wikipedia]]''' has an article on:
<div style="margin-left: 60px;">{{#if:{{{lang|}}}|{{{{{lang}}}}}&nbsp;}}'''[[wp:|Wikipedia]]''' has an article on:
Line 18: Line 5:
</div>
</div>
</div>
</div>
</div></div><span class="interProject">[[wp:{{#if:{{{lang|}}}|{{{lang}}}:}}{{ucfirst:{{{1|{{PAGENAME}}}}}}}|Wikipedia]]</span></includeonly><noinclude>
</div></div><span class="interProject">[[wp:{{#if:{{{lang|}}}|{{{lang}}}:}}{{ucfirst:{{{1|{{PAGENAME}}}}}}}|Wikipedia]]</span></includeonly><noinclude>{{doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 22:29, 18 August 2011

This documentation is imported from Template:Wikipedia/doc

This template is used for linking to the Wikipedia article of a page, whenever applicable.

Simply using {{wikipedia}} will place the box with an automatic link to the Wikipedia article of the same name.

Wikipedia has an article on:
Wikipedia


Using {{wikipedia|Test}} allows you to specify the Wikipedia page it links to.

Wikipedia has an article on:
Wikipedia


This template should not be used where the article is empty or only a single sentence. Template:Redirect when used as {{redirect|wp:Test|Test|on Wikipedia}} will produce the following big link to the page.

Click this link to go to Test on Wikipedia