Difference between revisions of "Template:Link-interwiki/doc"
imported>Pigsonthewing ({{Interlanguage link template list}}) |
imported>Jc86035 m |
||
| Line 1: | Line 1: | ||
| + | '''''Notice:''' This template is now a wrapper for {{tl|Interlanguage link multi}}. [[User:Jc86035|Jc86035]] ([[User talk:Jc86035|talk]] • [[Special:Contributions/Jc86035|contribs]]) <small>Use <span class="nowrap">{{[[Template:Reply to|re]]|Jc86035}}</span> to reply to me</small> 15:35, 9 April 2015 (UTC)'' | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS LINKS AT THE END OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS LINKS AT THE END OF THIS PAGE --> | ||
Revision as of 15:35, 9 April 2015
Notice: This template is now a wrapper for {{Interlanguage link multi}}. Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 15:35, 9 April 2015 (UTC)
| 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 temporarily displays a link to a non-English Wikipedia article, while the corresponding English-language Wikipedia article is lacking ("a red link"). The red link is explicitly shown, followed by the non-English link. Once the English article is created, the non-English link won't be shown.
Examples
When the English article doesn't exist:
- Usage:
{{link-interwiki|en=dependence on oil|lang=fr|lang_title=dépendance au pétrole}} - Result: [[{{{1}}}]]
Once the English article is created, the link to the other language won't be shown:
- Usage:
{{link-interwiki|en=The Tale of Genji|lang=ja|lang_title=源氏物語}} - Result: [[{{{1}}}]]
{{ill}} is a similar template, but you don't specify the parameter name:
You can modify the displayed text from the article name:
- Usage:
{{link-interwiki|en=dependence on oil|en_text=Oil dependence|lang=fr|lang_title=dépendance au pétrole}} - Result: [[{{{1}}}]]
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
See also
Template:Interlanguage link template list