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

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
m
imported>Jc86035
m (Redirected page to Template:Interlanguage link/doc)
 
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">&#123;&#123;[[Template:Reply to|re]]&#124;Jc86035&#125;&#125;</span> to reply to me</small> 15:35, 9 April 2015 (UTC)''
+
#REDIRECT [[Template:Interlanguage link/doc]]
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS LINKS AT THE END OF THIS PAGE -->
 
 
 
{{hatnote|{{tlx|ill}} is easier to use, providing almost the same function.}}
 
 
 
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&nbsp;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''': <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}}
 
 
 
Once the English article is created, the link to the other language won't be shown:
 
* '''Usage''': <code><nowiki>{{link-interwiki|en=The Tale of Genji|lang=ja|lang_title=源氏物語}}</nowiki></code>
 
* '''Result''': {{link-interwiki|en=The Tale of Genji|lang=ja|lang_title=源氏物語}}
 
 
 
{{tlx|ill}} is a similar template, but you don't specify the parameter name:
 
* '''Usage''': {{tlx|ill|ja|Sarumino|猿蓑}}
 
* '''Result''': {{ill|ja|Sarumino|猿蓑}}
 
 
 
You can modify the displayed text from the article name:
 
* '''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}}
 
 
 
=== 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,&nbsp;etc. (see [[List of Wikipedias]])
 
* '''lang_title''' (optional) - name of article in non-English Wikipedia
 
 
 
=== See also ===
 
 
 
{{Interlanguage link template list}}
 
 
 
<includeonly>
 
 
 
<!-- CATEGORIES AND INTERWIKIS LINKS HERE, THANKS -->
 
 
 
[[Category:Internal link templates]]
 
[[Category:Interwiki link templates]]
 
 
 
</includeonly>
 
 
 
<includeonly>
 
<!--put Interlanguage wikilinks here only if putting them in [[Wikidata:Q6519884]] does not work-->
 
[[hu:Sablon:Linkiw]]
 
[[ja:Template:仮リンク]]
 
</includeonly>
 

Latest revision as of 15:09, 10 May 2015