Difference between revisions of "Template:Link-interwiki/doc"
Jump to navigation
Jump to search
imported>Karmela |
imported>Karmela |
||
| Line 34: | Line 34: | ||
[[fa:الگو:پیوند با میانویکی]] | [[fa:الگو:پیوند با میانویکی]] | ||
[[fr:Template:Lien]] | [[fr:Template:Lien]] | ||
| − | [[hu: | + | [[hu:Sablon:Piroslink-alap]] |
[[ja:Template:仮リンク]] | [[ja:Template:仮リンク]] | ||
[[oc:Modèl:Ligam-interwiki]] | [[oc:Modèl:Ligam-interwiki]] | ||
</includeonly> | </includeonly> | ||
Revision as of 19:40, 13 October 2011
| This is a documentation subpage for Template:Link-interwiki. It contains usage information, categories and other content that is not part of the original template 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:
{{link-interwiki|en=dependence on oil|lang=fr|lang_title=dépendance au pétrole}} - Result: [[{{{1}}}]]
When text other than article name is displayed as link to English-language article:
- Usage:
{{link-interwiki|en=dependence on oil|en_text=Oil dependence|lang=fr|lang_title=dépendance au pétrole}} - Result: [[{{{1}}}]]
See also
{{ill}}- similar template using unnamed parameters{{belg}}- similar template allowing links to more than one non-English Wikipedia