:User:Mathglot/sandbox/Templates/Interlanguage link/doc/sandbox2

{{under construction}}

This template links to pages on non-English Wikipedias for pages that {{em|do not exist}} on the English Wikipedia. It displays a red link to the page, as normally occurs for nonexistent pages, followed by one or more links to the non-English article(s). Once the English Wikipedia article is created, the template will show a normal blue link {{em|without}} the non-English links.{{efn|name="Parameter_Preserve"}}

Parameters

The general format of this template is {{tlc|ill|Page name|language code 1|page name 1|language code 2|page name 2|...}}

The first parameter, Page name, is the article title as it should be on English Wikipedia; this will be a red link.

Remaining parameters are language code/page name pairs, where each pair defines the title of an existing page on a foreign language Wikipedia. One or more pairs may be included.{{efn|name="vbar"}} For example:

  • {{tlc|ill|Hooglede town hall|nl|Gemeentehuis van Hooglede|_show_result=y}}{{snd}}(one pair, links to Dutch page)
  • {{ill|Breton fairies|fr|Margot la fée|es|Hada Margot}} ⟶ {{ill|Breton fairies|fr|Margot la fée|es|Hada Margot}}{{snd}}(two pairs, links to French and Spanish pages)

If the page name on the non-English Wikipedia is the same as on the English Wikipedia, then those parameters can be left blank:

  • {{tlc|ill|Hanning Schröder|de|_show_result=y}}{{snd}}{{snd}}(the German page has the same title)
  • {{ill|Tobias Hedström|fr| |it| |pl}} ⟶ {{ill|Tobias Hedström|fr||it||pl|_show_result=y}}{{snd}}(French, Italian, and Polish all have the same name as English)
  • {{ill|Karkinos|es|Carcinos|it|Carcino|pl| |pt}} ⟶ {{ill|Karkinos|es|Carcinos|it|Carcino|pl| |pt|_show_result=y}}{{snd}}(Polish and Portuguese have the same name as English; Spanish and Italian are different){{efn|name="blue redir"}}

More examples, if needed

= Red linked in English =

  • {{tlc|ill|Teka-her|fr||es|_show_result=y}}
  • {{tlc|ill|Etruscan sculpture|es|Escultura etrusca|fr|Sculpture étrusque|it|Scultura etrusca|_show_result=y}}{{snd}}(also ca, gl, pt)
  • {{tlc|ill|Siege of Delfzijl|de|Belagerung von Delfzijl (1813–1814)|fr|Siège de Delfzijl (1813-1814)|nl|Beleg van Delfzijl (1813-1814)}}{{snd}}(also ru)

= Blue in English (redirects) =

These examples show the English link as blue, because a redirect exists:

  • {{tlc|ill|Gilchrist–Thomas process|fr|Procédé Thomas|de|Thomas-Verfahren|nl|Gilchrist-Thomas-converter|sv|Thomasprocessen|_show_result=y}}
  • {{tlc|ill|Prehistory of Malta|fr|Préhistoire de Malte|es|Prehistoria de Malta|nl|Prehistorisch Malta|_show_result=y}} {{snd}}(also ca, cs, ru)
  • {{tlc|ill|Rococo painting|pt|Pintura do Rococó|ca|Pintura rococó|es|Pintura rococó|_show_result=y}}

Notes

{{notelist|refs=

{{efn|name="blue redir"|Although no article on English Wikipedia exists for this title, the link is blue anyway because there's a redirect for it.}}

{{efn|name="Parameter_Preserve"|This will link to some note sooner or later...}}

{{efn|name="vbar"|The vertical bar after the language code of the last language code/page name pair may be omitted, if the page name is also omitted because the foreign and English page names are identical. So for example, {{tlc|ill|Hanning Schröder|de{{!}}}} with the final vertical bar and {{tlc|ill|Hanning Schröder|de}} without it are the same thing. The vertical bar must be present in all pairs except for the last one. }}

}}