http://timelines.issarice.com/index.php?title=Template:Interlanguage_link/doc&feed=atom&action=historyTemplate:Interlanguage link/doc - Revision history2024-03-29T01:27:27ZRevision history for this page on the wikiMediaWiki 1.29.2http://timelines.issarice.com/index.php?title=Template:Interlanguage_link/doc&diff=12331&oldid=prevJc86035: /* TemplateData */2017-03-11T08:44:00Z<p><span dir="auto"><span class="autocomment">TemplateData</span></span></p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --><br />
{{Template shortcut|ill|illm}}<br />
{{high-use| 28123 }}<br />
<br />
{{hatnote|For guidance, see [[Help:Interlanguage links#Inline links]]}}<br />
So long as the page on this wiki does not exist (i.e. is "a red link"), this template ''temporarily'' displays links to one or more corresponding non-English Wikipedia articles. The red link is explicitly shown, followed by the non-English link(s). Hovering over the [[language code]] of a non-English link will display the name of the article on the non-English Wikipedia. Once the English article is created, the non-English link(s) will not be shown.<br />
<br />
==Usage==<br />
There are several ways of using this template. It can produce links to one or more specific languages or to the Wikidata table of languages. There can also be a link to [[User:Magnus Manske|Magnus Manske]]'s [https://tools.wmflabs.org/reasonator/ Reasonator] Wikidata item viewer.<br />
<br />
The shortcuts {{t|ill}} and {{tl|illm}} may be used.<br />
<br />
A full list of language codes can be found at [[List of Wikipedias#Detailed list]].<br />
<br />
==Link to one foreign language==<br />
===Articles with the same title===<br />
To link to a foreign language article with the ''same'' title as the English Wikipedia, the parameters are:<br />
<br />
{{tlc|ill|''Article title''|''language code''}}<br />
*{{tlc|ill|Sigmund Jakobsen|no}} gives {{{{PAGENAMETDOC}}|Sigmund Jakobsen|no}}<br />
<br />
===Articles with different titles===<br />
To link to a foreign language article with a ''different'' title, the parameters are:<br />
<br />
{{tlc|ill|''English article title''|''language code''|''Title in foreign language''}}<br />
*{{tlc|ill|Hooglede town hall|nl|Gemeentehuis van Hooglede}} gives {{{{PAGENAMETDOC}}|Hooglede town hall|nl|Gemeentehuis van Hooglede}}<br />
<br />
==Link to multiple languages==<br />
<br />
To link to multiple languages, the parameters are:<br />
<br />
{{tlc|ill|''English article title''|''language 1 code''|''Title in language 1''|''language 2 code''|''Title in language 2''|...}}<br />
<br />
There are up to five languages supported by the template.<br />
<br />
===Articles with the same title===<br />
If the foreign language articles have the same title as the English language page, the titles of the page are not necessary. <br />
*{{tlc|illm|casa|es||it||ro||de|haus}} gives {{{{PAGENAMETDOC}}|casa|es||it||ro||de|haus}}<br />
<br />
Note that {{As of|2016|2|lc=yes}} if there is a redirect for the term in English Wikipedia, both the redirected (blue) link and interlanguage link(s) are displayed. This is why "casa" appears as a bluelink in the example above.<br />
<br />
===Articles with different titles===<br />
{{tlc|ill|Olena Chaplynska|uk|Олена Чаплинська|ru|Чаплинская, Гелена|ja|モトローナ・チャプリーンシカ}} displays<br />
*{{{{PAGENAMETDOC}}|Olena Chaplynska|uk|Олена Чаплинська|ru|Чаплинская, Гелена|ja|モトローナ・チャプリーンシカ}}<br />
<br />
==Link to the Wikidata table of languages==<br />
<br />
To link to the Wikidata table of languages in which the article is available, the parameters are:<br />
<br />
{{tlc|illm|''Article title in English Wikipedia''|WD{{=}}''Wikidata item code''}}<br />
<br />
All links to other Wikipedias are ignored if {{para|WD}} is present. Thus since [[Jokery]] does not exist<br />
<br />
* {{tlc|illm|Jokery|WD{{=}}Q131138}}<br />
<br />
outputs<br />
<br />
* {{{{PAGENAMETDOC}}|Jokery|WD=Q131138}}<br />
<br />
==Link to Reasonator==<br />
<br />
To link to Reasonator, add any value for the parameter {{para|reasonator}}. If a Wikidata item is linked, then the Reasonator link goes to the page for that item; if not, then a search is performed on Reasonator for that item.<br />
<br />
{| class="wikitable"<br />
|-<br />
! Input !! Output<br />
|-<br />
| <code><nowiki>{{illm|Jokery|WD=Q131138|reasonator=1}}</nowiki></code> || {{{{PAGENAMETDOC}}|Jokery|WD=Q131138|reasonator=1}}<br />
|-<br />
| <code><nowiki>{{illm|Jokery|reasonator=1}}</nowiki></code> || {{{{PAGENAMETDOC}}|Jokery|reasonator=1}}<br />
|}<br />
<br />
==Modifying the display==<br />
===Forcing links===<br />
<br />
If interlanguage/Wikidata/Reasonator links are to be displayed even if the English Wikipedia article exists, add any of the values <code>1</code>, <code>y</code>, <code>yes</code> or <code>force</code> for the parameter {{para|display}}.<br />
<br />
{| class="wikitable"<br />
|-<br />
! Input !! Output<br />
|-<br />
| <code><nowiki>{{illm|Joke|fr|Blague|hu|Vicc|de|Witz}}</nowiki></code> || {{{{PAGENAMETDOC}}|Joke|fr|Blague|hu|Vicc|de|Witz}}<br />
|-<br />
| <code><nowiki>{{illm|Joke|fr|Blague|hu|Vicc|de|Witz|display=1}}</nowiki></code> || {{{{PAGENAMETDOC}}|Joke|fr|Blague|hu|Vicc|de|Witz|display=1}}<br />
|}<br />
<br />
===Piped links===<br />
<br />
A "piped link" in the English Wikipedia (as in <nowiki>[[Charles Darwin (botanist)|Charles Darwin]]</nowiki>) can be created by using {{para|lt}} for the visible link text. Thus since [[Charles Darwin (botanist)]] does not exist<br />
<br />
* {{tlx|illm|Charles Darwin (botanist)|lt{{=}}Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}<br />
<br />
displays<br />
<br />
* {{{{PAGENAMETDOC}}|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}<br />
<br />
'''Note''' Do not use {{tlf|!}} to create piped links: {{tlx|illm|Maze (band){{tlf|!}}Maze|...}} is not equivalent to {{tlx|illm|Maze (band)|lt{{=}}Maze|...}}. The former will not cause the foreign language links to disappear when the English article exists.<br />
<br />
===Remove bold formatting from links===<br />
<br />
Usually the display of the Interlanguage or Wikidata or the Reasonator (the "appended link") are in normal font, but if the appended link is for example in a title line of table, then along with the rest of the line the appended link will be bold. In such circumstances the appended link can be set to display unbolded by adding any value for the parameter {{para|nobold}}.<br />
<br />
{| class="wikitable"<br />
|-<br />
! Input !! Output<br />
|-<br />
| <code><nowiki>'''{{illm|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''</nowiki></code> || '''{{{{PAGENAMETDOC}}|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''<br />
|-<br />
| <code><nowiki>'''{{illm|nobold=1|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''</nowiki></code> || '''{{{{PAGENAMETDOC}}|nobold=1|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''<br />
|}<br />
<br />
===Vertical alignment===<br />
<br />
The vertical alignment of the interlanguage/Wikidata/Reasonator links can be altered by adding:<br />
*<code><nowiki>vertical-align=sup</nowiki></code> to place the links in superscript<br />
*<code><nowiki>vertical-align=sub</nowiki></code> to place the links in subscript<br />
<br />
{| class="wikitable"<br />
|-<br />
! Input !! Output<br />
|-<br />
| <code><nowiki>{{illm|vertical-align=sup|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}</nowiki></code> || {{{{PAGENAMETDOC}}|vertical-align=sup|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}<br />
|-<br />
| <code><nowiki>{{illm|vertical-align=sub|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}</nowiki></code> || {{{{PAGENAMETDOC}}|vertical-align=sub|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}<br />
|}<br />
<br />
==Examples==<br />
* <code><nowiki>{{illm|TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}, because [[TC Matic]] exists here<br />
* <code><nowiki>{{illm|TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}, because [[TC Matic (band)]] does not exist here<br />
* <code><nowiki>{{illm|TC Matic (band)|af||nl||fr||es|}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic (band)|af||nl||fr||es|}} – although shown in blue the interwiki links won't work because they default to the title "TC Matic (band)" which is wrong<br />
* <code><nowiki>{{illm|TC Matic (band)|lt=TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic (band)|lt=TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} – the text "TC Matic" now redlinks to "TC Matic (band)"<br />
* <code><nowiki>{{illm|TC Matic|lt=TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic|lt=TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} – the text "TC Matic (band)" now links to "TC Matic" which exists<br />
<br />
== TemplateData ==<br />
{{TemplateData header}}<br />
<templatedata><br />
{<br />
"params": {<br />
"1": {<br />
"label": "Article name",<br />
"description": "Name of the English Wikipedia page, or suggested name if the page does not exist",<br />
"type": "wiki-page-name",<br />
"required": true,<br />
"suggested": true,<br />
"aliases": [<br />
"en"<br />
] },<br />
"2": {<br />
"label": "1st language code",<br />
"description": "Language code for the 1st page in another language",<br />
"type": "line",<br />
"suggested": true,<br />
"aliases": [<br />
"lang"<br />
] },<br />
"3": {<br />
"label": "1st page",<br />
"description": "Title of the page in the 1st other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title",<br />
"suggested": true,<br />
"aliases": [<br />
"lang_title"<br />
]<br />
},<br />
"4": {<br />
"label": "2nd language code",<br />
"description": "Language code for the 2nd page in another language",<br />
"type": "line"<br />
},<br />
"5": {<br />
"label": "2nd page",<br />
"description": "Title of the page in the 2nd other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"6": {<br />
"label": "3rd language code",<br />
"description": "Language code for the 3rd page in another language",<br />
"type": "line"<br />
},<br />
"7": {<br />
"label": "3rd page",<br />
"description": "Title of the page in the 3rd other language, if not the same as the English Wikipedia page",<br />
"default": "English Wikipedia article title",<br />
"type": "line",<br />
},<br />
"8": {<br />
"label": "4th language code",<br />
"description": "Language code for the 4th page in another language",<br />
"type": "line"<br />
},<br />
"9": {<br />
"label": "4th page",<br />
"description": "Title of the page in the 4th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"10": {<br />
"label": "5th language code",<br />
"description": "Language code for the 5th page in another language",<br />
"type": "line"<br />
},<br />
"11": {<br />
"label": "5th page",<br />
"description": "Title of the page in the 5th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"12": {<br />
"label": "6th language code",<br />
"description": "Language code for the 6th page in another language",<br />
"type": "line"<br />
},<br />
"13": {<br />
"label": "6th page",<br />
"description": "Title of the page in the 6th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"14": {<br />
"label": "7th language code",<br />
"description": "Language code for the 7th page in another language",<br />
"type": "line"<br />
},<br />
"15": {<br />
"label": "7th page",<br />
"description": "Title of the page in the 7th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"16": {<br />
"label": "8th language code",<br />
"description": "Language code for the 8th page in another language",<br />
"type": "line"<br />
},<br />
"17": {<br />
"label": "8th page",<br />
"description": "Title of the page in the 8th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title",<br />
},<br />
"18": {<br />
"label": "9th language code",<br />
"description": "Language code for the 9th page in another language",<br />
"type": "line"<br />
},<br />
"19": {<br />
"label": "9th page",<br />
"description": "Title of the page in the 9th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"20": {<br />
"label": "10th language code",<br />
"description": "Language code for the 10th page in another language",<br />
"type": "line"<br />
},<br />
"21": {<br />
"label": "10th page",<br />
"description": "Title of the page in the 10th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"22": {<br />
"label": "11th language code",<br />
"description": "Language code for the 11th page in another language",<br />
"type": "line"<br />
},<br />
"23": {<br />
"label": "11th page",<br />
"description": "Title of the page in the 11th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"24": {<br />
"label": "12th language code",<br />
"description": "Language code for the 12th page in another language",<br />
"type": "line"<br />
},<br />
"25": {<br />
"label": "12th page",<br />
"description": "Title of the page in the 12th other language, if not the same as the English Wikipedia page",<br />
"type": "line",<br />
"default": "English Wikipedia article title"<br />
},<br />
"lt": {<br />
"label": "Link text",<br />
"description": "Text displayed for the link to the English Wikipedia article, if not the same as the article title",<br />
"type": "line",<br />
"default": "English Wikipedia article title",<br />
},<br />
"WD": {<br />
"label": "Wikidata item",<br />
"description": "Wikidata item of the article. Replaces links to pages in other languages",<br />
"type": "line",<br />
"suggested": true<br />
},<br />
"reasonator": {<br />
"label": "Reasonator",<br />
"description": "If anything is set for this, there is a link to the Reasonator page for the Wikidata item (if there is a link to an item) or to a Reasonator search for the English Wikipedia article title (if there is no item link) ",<br />
"type": "string"<br />
},<br />
"nobold": {<br />
"label": "No bold (or italic)",<br />
"description": "Forces links to other-language pages, Wikidata and Reasonator and the link brackets to have non-bold or -italic text",<br />
"type": "string"<br />
},<br />
"preserve": {<br />
"label": "Preserve",<br />
"description": "If anything is set for this, forces links to pages in other languages and projects to always display even if the English Wikipedia article exists",<br />
"aliases": [<br />
"display"<br />
],<br />
"type": "string"<br />
}<br />
},<br />
"description": "Link to other Wikipedias or Wikidata if an article in the English Wikipedia doesn't exist.",<br />
"paramOrder": [<br />
"1",<br />
"2",<br />
"3",<br />
"4",<br />
"5",<br />
"6",<br />
"7",<br />
"8",<br />
"9",<br />
"10",<br />
"11",<br />
"12",<br />
"13",<br />
"14",<br />
"15",<br />
"16",<br />
"17",<br />
"18",<br />
"19",<br />
"20",<br />
"21",<br />
"22",<br />
"23",<br />
"24",<br />
"25",<br />
"lt",<br />
"WD",<br />
"reasonator",<br />
"preserve",<br />
"nobold",<br />
]<br />
}<br />
</templatedata><br />
<br />
==See also==<br />
<br />
After [[Wikipedia:Templates for discussion/Log/2015 March 8#Template:Interlanguage link multi|a merge discussion]], five other templates were merged into this template, and thus this template contains all of their features.<br />
<br />
{{Interlanguage link template list}}<br />
<br />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |<br />
<!-- Categories below this line, please; interwikis at Wikidata --><br />
[[Category:Internal link templates]]<br />
[[Category:Interwiki link templates]]<br />
}}</includeonly></div>Jc86035