Difference between revisions of "Template:Interproject box"

From blackwiki
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 Wikipedia
User:

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)