Difference between revisions of "Template:InterWiki"

From blackwiki
Jump to navigation Jump to search
(lb)
imported>Ahecht
(fix double-colon errors)
 
(27 intermediate revisions by 20 users not shown)
Line 1: Line 1:
<onlyinclude><div class="infobox sisterproject">
+
{{sister project
<div style="float: left;">[[Image:Wikipedia-logo.png|45px|none|Wikipedia]]</div>
+
|project=wikipedia
<div style="margin-left: 60px;">'''''[[:{{{code}}}:| {{{1|{{PAGENAME}}}}} edition]]''''' of [[Wikipedia]], the free encyclopedia</div>
+
|text='''''[[:{{#if:{{{code|{{#property:P424}}}}}|{{{code|{{#property:P424}}}}}:|}}| {{{1|{{#if:{{{code|{{#property:P424}}}}}
</div></onlyinclude>
+
|{{#ifeq:{{#language:{{{code|{{#property:P424}}}}}|en}}|{{{code|{{#property:P424}}}}}<!-- if an invalid or unsupported code is specified, #language just returns the same thing that was input -->
 
+
  |{{PAGENAMEBASE|{{PAGENAME}}}}
==See also==
+
  |{{#language:{{{code|{{#property:P424}}}}}|en}}
*[[Template:Wiktionarylang]] (for similarly linking to Wiktionaries)
+
  }}
 
+
}} }}} edition]]''''' of [[Wikipedia]], the free encyclopedia
[[Category:Interwiki link templates]]
+
}}<noinclude>
 
+
{{documentation}}
[[am:Template:InterWiki]]
+
</noinclude>
[[an:Plantilla:InterWiki]]
 
[[ang:Template:Betwuxwici]]
 
[[az:Şablon:Dil]]
 
[[be:Шаблён:Interwiki]]
 
[[ca:Plantilla:InterWiki]]
 
[[da:Skabelon:Wikipedia2]]
 
[[de:Vorlage:Wikipedia]]
 
[[el:Πρότυπο:InterWiki]]
 
[[eo:Ŝablono:InterWiki]]
 
[[es:Plantilla:InterWiki]]
 
[[eu:Txantiloi:InterWiki]]
 
[[fo:Fyrimynd:InterWiki]]
 
[[fr:Modèle:Interwiki]]
 
[[fur:Model:InterWiki]]
 
[[ga:Teimpléad:IdirVicí]]
 
[[hu:Sablon:InterWiki]]
 
[[ia:Patrono:Interwiki]]
 
[[id:Templat:InterWiki]]
 
[[it:Template:InterWiki]]
 
[[iu:Template:InterWiki]]
 
[[ja:Template:Wikipedia]]
 
[[ko:틀:위키백과]]
 
[[ku:Şablon:InterWiki]]
 
[[kw:Template:Yntrawiki]]
 
[[la:Formula:InterWiki]]
 
[[lb:Template:Wikipedia]]
 
[[ln:Template:InterWiki]]
 
[[lt:Šablonas:InterWiki]]
 
[[mk:ИнтерВики]]
 
[[ms:Templat:InterWiki]]
 
[[nds-nl:Sjabloon:Interwiki]]
 
[[nl:Sjabloon:InterWiki]]
 
[[nn:Mal:Interwiki]]
 
[[no:Mal:InterWiki]]
 
[[pt:Predefinição:InterWiki]]
 
[[rmy:Sikavno:MashkarViki]]
 
[[ro:Format:InterWiki]]
 
[[ru:Шаблон:Interwiki]]
 
[[sh:Template:Interwiki]]
 
[[simple:Template:InterWiki]]
 
[[sl:Predloga:InterWiki]]
 
[[sr:Шаблон:Interwiki]]
 
[[sv:Mall:Interwiki]]
 
[[th:แม่แบบ:วิกิภาษาอื่น]]
 
[[tl:Template:Interwiki]]
 
[[uk:Шаблон:InterWiki]]
 
[[vi:Tiêu bản:Wikipedia ngoại ngữ]]
 
[[zh:Template:InterWiki]]
 
[[zh-min-nan:Template:Interwiki]]
 
[[zh-yue:Template:InterWiki]]
 

Latest revision as of 20:27, 10 October 2017

Template:Sister project

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Purpose

This template allows you to add a link from the en.wikipedia article on a language to the Wikipedia project in that language. Just add the following code to the language article in the External links section, just before the first link:

{{InterWiki|code=lang_code}}

Where lang_code is the language code as described in meta:Complete list of language Wikipedias available.

Examples

Generates boxed links to sister projects:

{{InterWiki|code=simple|Simple English}}

Renders the box:

Template:Sister project

  • The wikitext:

==External links==

{{InterWiki|code=fr}}

Renders the second-level subheading External links followed by the box:
Template:Sister project

See also

No description.

Template parameters

ParameterDescriptionTypeStatus
Language codecode

The language code for the language of the Wikipedia being linked

Example
es (Spanish), zh (Chinese)
Stringrequired
Language label1 article

The label to use for the link to Wikipedia in that Language

Example
Simple English
Unknownoptional