Line 9: |
Line 9: |
| {{Language templates}} | | {{Language templates}} |
| | | |
− | This template links conditionally to pages on non-English Wikipedias. If the specified article {{em|does not exist}} on the English Wikipedia, this template {{em|intentionally}} displays a red link to that anticipated but still-nonexistent article, followed by link(s) to the specified article(s) on the non-English Wikipedia(s), shown under the corresponding [[language code]](s), in brackets. Hovering over a non-English link displays the name of the article on the non-English Wikipedia, as normal. Links to non-English Wikipedia articles are always blue; it is up to the editor to make sure they link to the intended article. | + | This template links conditionally to pages on non-English Wikipedias. If the specified article {{em|does not exist}} on the English Wikipedia, this template {{em|intentionally}} displays a red link to that anticipated but still-nonexistent article, followed by link(s) to the specified article(s) on the non-English Wikipedia(s), shown under the corresponding [[Wikipedia:language code|language code]](s), in brackets. Hovering over a non-English link displays the name of the article on the non-English Wikipedia, as normal. Links to non-English Wikipedia articles are always blue; it is up to the editor to make sure they link to the intended article. |
| | | |
| If the specified article {{em|exists}} (that is, after the anticipated article has been created) on the English Wikipedia, this template will only show the blue link to that article, and no longer to the non-English link(s).{{efn|name=preserve|Use {{para|preserve}} or its alias {{para|display}} to show the language links even if the English Wikipedia page exists. Using either parameter also eliminates the expensive parser function call. {{U|Cewbot}} will NOT convert this template into a regular link if either parameter is set. Cewbot will also not convert this template into a regular link if the English Wikipedia page exists but is a redirect back to the same page where the template appears.}} | | If the specified article {{em|exists}} (that is, after the anticipated article has been created) on the English Wikipedia, this template will only show the blue link to that article, and no longer to the non-English link(s).{{efn|name=preserve|Use {{para|preserve}} or its alias {{para|display}} to show the language links even if the English Wikipedia page exists. Using either parameter also eliminates the expensive parser function call. {{U|Cewbot}} will NOT convert this template into a regular link if either parameter is set. Cewbot will also not convert this template into a regular link if the English Wikipedia page exists but is a redirect back to the same page where the template appears.}} |
Line 24: |
Line 24: |
| The shortcut {{tl|ill}} may be used. | | The shortcut {{tl|ill}} may be used. |
| | | |
− | A full list of language codes can be found at [[List of Wikipedias#Detailed list]]. | + | A full list of language codes can be found at [[Wikipedia:List of Wikipedias#Detailed list|List of Wikipedias]]. |
| | | |
| {{As of|2016|2}}, 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 [[#Link to multiple languages|below]]. | | {{As of|2016|2}}, 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 [[#Link to multiple languages|below]]. |
Line 47: |
Line 47: |
| *<code><nowiki>{{ill|casa|es||it||ro||de|haus}}</nowiki></code> gives {{ {{PAGENAMETDOC}}|casa|es||it||ro||de|haus}} | | *<code><nowiki>{{ill|casa|es||it||ro||de|haus}}</nowiki></code> gives {{ {{PAGENAMETDOC}}|casa|es||it||ro||de|haus}} |
| | | |
− | Note: As of February 2016, [[casa]] above is a redirect. Redirects appear as blue links even while foreign-language links are still shown. | + | Note: As of February 2016, [[Wikipedia:casa|casa]] above is a redirect. Redirects appear as blue links even while foreign-language links are still shown. |
| | | |
| To link to multiple language articles, the parameters are: | | To link to multiple language articles, the parameters are: |
Line 152: |
Line 152: |
| | | |
| ==Examples== | | ==Examples== |
− | * <code><nowiki>{{ill|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 | + | * <code><nowiki>{{ill|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 [[Wikipedia:TC Matic|TC Matic]] exists here |
| * <code><nowiki>{{ill|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 | | * <code><nowiki>{{ill|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 |
| * <code><nowiki>{{ill|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 | | * <code><nowiki>{{ill|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 |