Difference between revisions of "Template:Interproject box"
Jump to navigation
Jump to search
imported>L293D (fixed error) |
imported>L293D (added documentation) |
||
| Line 2: | Line 2: | ||
|nowrap="true" style="width:46px;height:52px;nowrap:true"|[[Image:{{#if:{{{Image|}}}|{{{Image}}}|Wikipedia.png}}|46x46px|{{#if:{{{Alt text|}}}|{{{Alt text}}}|Wikipedia}}]]||nowrap="true" style="text-align:center;line-height:14px;nowrap:true"|[[{{#if:{{{Project link|}}}|{{{Project link}}}Main Page|w:}}|'''<span nowrap="true" style="color:darkblue;nowrap:true">{{#if:{{{Project name|}}}|{{{Project name}}}|Wikipedia}}</span>''']]<br>'''<span style="font-size:8pt">User:</span>'''<br>{{#if:{{{User name|}}}|[[{{{Project link}}}User:{{{User name}}}|<span style="color:darkblue">{{{User name}}}</span>]] ([[{{{Project link}}}User talk:{{{User name}}}|<span style="color:darkblue">talk</span>]])}} | |nowrap="true" style="width:46px;height:52px;nowrap:true"|[[Image:{{#if:{{{Image|}}}|{{{Image}}}|Wikipedia.png}}|46x46px|{{#if:{{{Alt text|}}}|{{{Alt text}}}|Wikipedia}}]]||nowrap="true" style="text-align:center;line-height:14px;nowrap:true"|[[{{#if:{{{Project link|}}}|{{{Project link}}}Main Page|w:}}|'''<span nowrap="true" style="color:darkblue;nowrap:true">{{#if:{{{Project name|}}}|{{{Project name}}}|Wikipedia}}</span>''']]<br>'''<span style="font-size:8pt">User:</span>'''<br>{{#if:{{{User name|}}}|[[{{{Project link}}}User:{{{User name}}}|<span style="color:darkblue">{{{User name}}}</span>]] ([[{{{Project link}}}User talk:{{{User name}}}|<span style="color:darkblue">talk</span>]])}} | ||
|} | |} | ||
| + | <noinclude> | ||
| + | {{Documentation}} | ||
| + | </noinclude> | ||
Revision as of 14:26, 8 March 2018
| Wikipedia User: |
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
This template is used to generate links to sister projects similar to Interlanguage links or Interproject links. The template creates a box with the listed links above the display of interwiki links in the sidebar. It is not intended for use in the article namespace.
Usage
{{Interproject box
|Alt text=
|Image=
|Project link=
|Project name=
|User name=
}}
Interproject Example
{{Interproject box
|Image = Commons-logo.svg
|Alt text = Wikimedia Commons
|Project link = commons:
|Project name = Wikimedia Commons
|User name = Example
}}
renders:
| Wikimedia Commons | Wikimedia Commons User: Example (talk) |
Interlanguage Example
{{Interproject box
|Image = Wikipedia's W.svg
|Alt text= Wikipedia, la enciclopedia libre
|Project link = w:es:
|Project name = Spanish Wikipedia
|User name = Example
}}
renders:
| Wikipedia, la enciclopedia libre | Spanish Wikipedia User: Example (talk) |
| The above documentation is transcluded from Template:Interproject box/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |