Difference between revisions of "Template:Interlanguage link forced/doc"

From blackwiki
Jump to navigation Jump to search
imported>Thnidu
(→‎Examples: restructure bullet list to group together different forms of wikicode that produce the same result)
imported>Jc86035
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:Interlanguage link/doc]]
<!-- Categories and interwikis go at the bottom of this page. -->
 
 
 
==History==
 
This template is used on the [[Wikipedia:WikiProject Belgium]] page to create links of "wanted" pages to the corresponding articles on foreign language Wikipedias.
 
 
 
==Purpose==
 
Use this template if the article titles of the foreign Wikipedias are different from the English title.
 
 
 
==Usage==
 
Use : enter <code><nowiki>{{ill2|Article name|</nowiki></code> followed by the Wikipedia language codes for each foreign language article you want to link to, each of them followed by a divider <nowiki>'|'</nowiki> and the article title on that Wikipedia. You can add up to 10 languages. Put a divider <nowiki>'|'</nowiki> between the languages. Close the template with <code><nowiki>}}</nowiki></code>.
 
 
 
==Examples==
 
*Link to corresponding article in one language: {{ill2|Adamo|af|Adamo}}
 
**<code><nowiki>{{ill2|Adamo|af|Adamo}}</nowiki></code> <!-- gives {{ill2|Adamo|af|Adamo}} -->
 
**<code><nowiki>{{ill2|Adamo|af}}</nowiki></code> <!-- also gives {{ill2|Adamo|af}} -->
 
*Links to corresponding articles in multiple languages:
 
**<code><nowiki>{{ill2|TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> <!-- gives {{ill2|TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} -->
 
**<code><nowiki>{{ill2|TC Matic|af||nl||fr||es|}}</nowiki></code> <!-- also gives {{ill2|TC Matic|af||nl||fr||es|}} -->
 
*<code><nowiki>{{ill2|Noordkaap|nl|Noordkaap (band)|li|Noordkaap (band)}}</nowiki></code> gives {{ill2|Noordkaap|nl|Noordkaap (band)|li|Noordkaap (band)}}
 
 
 
In an example like the last one, it is often preferable to use [[piping]] to simulate the effect of
 
:<code><nowiki>[[Noordkaap (band)|Noordkaap]]</nowiki></code>.
 
This can be accomplished by using the meta-template {{tl|!}}:
 
*<code><nowiki>{{ill2|Noordkaap (band){{!}}Noordkaap|nl|Noordkaap (band)|li|Noordkaap (band)}}</nowiki></code> gives {{ill2|Noordkaap (band){{!}}Noordkaap|nl|Noordkaap (band)|li|Noordkaap (band)}}
 
 
 
==See also==
 
* {{tl|ill}}
 
* {{tl|ill-WD}} – to link to multiple other projects through [[WP:Wikidata|Wikidata]]
 
 
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
[[Category:Internal link templates]]
 
[[Category:Interwiki link templates]]
 
 
 
[[ar:قالب:Belg]]
 
[[de:Vorlage:IW]]
 
[[ja:Template:仮リンク]]
 
[[zh:Template:Ill2]]
 
</includeonly>
 

Latest revision as of 05:04, 27 May 2017