Difference between revisions of "Template:Link-interwiki/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
m (Redirected page to Template:Interlanguage link/doc)
 
(10 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:Interlanguage link/doc]]
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
 
This template displays a link to an English-language Wikipedia article, followed by a link to a corresponding article in a non-English Wikipedia. It is typically used when the English article has not yet been created (a "red link").
 
 
 
=== Parameters ===
 
 
 
The template accepts the following named parameters:
 
 
 
* '''en''' (required) - name of article in English-language Wikipedia
 
* '''en_text''' (optional) - text to display for English-language link, if different than the article name
 
* '''lang''' (required) - interwiki language code, i.e. fr, nl, etc. (see [[List of Wikipedias]])
 
* '''lang_title''' (optional) - name of article in non-English Wikipedia
 
 
 
=== Usage ===
 
 
 
When the English-language article name is displayed:
 
* '''Usage''': <code><nowiki>{{link-interwiki|en=dependence on oil|lang=fr|lang_title=dépendance au pétrole}}</nowiki></code>
 
* '''Result''': {{link-interwiki|en=dependence on oil|lang=fr|lang_title=dépendance au pétrole}}
 
 
 
When text other than article name is displayed as link to English-language article:
 
* '''Usage''': <code><nowiki>{{link-interwiki|en=dependence on oil|en_text=Oil dependence|lang=fr|lang_title=dépendance au pétrole}}</nowiki></code>
 
* '''Result''': {{link-interwiki|en=dependence on oil|en_text=Oil dependence|lang=fr|lang_title=dépendance au pétrole}}
 
 
 
=== See also ===
 
* {{tlx|ill}} - similar template using unnamed parameters
 
* {{tlx|belg}} - similar template allowing links to more than one non-English Wikipedia
 
 
 
<includeonly>
 
 
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
 
[[Category:Internal link templates]]
 
[[Category:Interwiki link templates]]
 
 
 
[[ar:قالب:وإو]]
 
[[eo:Ŝablono:Alilingve]]
 
[[fa:الگو:پیوند با میان‌ویکی]]
 
[[fr:Template:Lien]]
 
[[hu:Sablon:Linkiw]]
 
[[ja:Template:仮リンク]]
 
[[oc:Modèl:Ligam-interwiki]]
 
 
 
</includeonly>
 

Latest revision as of 15:09, 10 May 2015