Difference between revisions of "Template:Interproject box"

From blackwiki
Jump to navigation Jump to search
imported>L293D
imported>L293D
(added commented text)
 
Line 1: Line 1:
 
{|style="float:left;background:#cedff2;border: 1px solid #a3b0bf;margin:3px;margin-right:2px;margin-left:2px"
 
{|style="float:left;background:#cedff2;border: 1px solid #a3b0bf;margin:3px;margin-right:2px;margin-left:2px"
 
|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>]])}}
|}
+
|}<!-- Template:Interproject box-->
 
<noinclude>
 
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category: Link templates]]
 
[[Category: Link templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:45, 28 April 2018

Wikipedia Wikipedia
User:
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)