Difference between revisions of "Template:Link-interwiki/doc"
Jump to navigation
Jump to search
imported>Karmela |
imported>Nnemo |
||
| Line 5: | Line 5: | ||
=== Parameters === | === Parameters === | ||
| + | |||
The template accepts the following named parameters: | The template accepts the following named parameters: | ||
| Line 13: | Line 14: | ||
=== Usage === | === Usage === | ||
| + | |||
When the English-language article name is displayed: | 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> | * '''Usage''': <code><nowiki>{{link-interwiki|en=dependence on oil|lang=fr|lang_title=dépendance au pétrole}}</nowiki></code> | ||
| Line 26: | Line 28: | ||
<includeonly> | <includeonly> | ||
| + | |||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
| + | |||
[[Category:Internal link templates]] | [[Category:Internal link templates]] | ||
[[Category:Interwiki link templates]] | [[Category:Interwiki link templates]] | ||
| Line 37: | Line 41: | ||
[[ja:Template:仮リンク]] | [[ja:Template:仮リンク]] | ||
[[oc:Modèl:Ligam-interwiki]] | [[oc:Modèl:Ligam-interwiki]] | ||
| + | |||
</includeonly> | </includeonly> | ||
Revision as of 09:17, 9 May 2012
| 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