Template:Interlanguage link/doc/sandbox

This template links to pages on non-English Wikipedias for pages that 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 the non-English links.

This template should not be used in hatnotes, as red links should not be present in hatnotes.

Please be aware Cewbot removes this template when it detects the target article has been created on English Wikipedia, converting ill links to regular (blue) links.

Usage
There are several ways of using this template. It can produce links to one or more specific languages, Magnus Manske's Reasonator, or to the Wikidata table of languages. A full list of language codes can be found at List of Wikipedias.

The shortcut ill will be used throughout this documentation.

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 below.

Where there are multiple interlanguage links readers may be confused about their purpose. The template interlanguage link info may be placed at the head of a page or section.

Parameters
The general format of this template is

If the page name on the non-English Wikipedia is the same as on the English Wikipedia, then those parameters can be left blank. As mentioned above, shows up as a bluelink because it is a redirect.

If the page name on the non-English Wikipedia is not the same as on the English Wikipedia, then the foreign-language names will need to be included. Note that in our example, we have added an extra set of parameters to link to the de-Wiki (German) page "Haus".

Piping links
When there are two subjects with the same name, disambiguation is necessary to distinguish them. In such cases a piped link will be necessary so that the disambiguation (usually text in parentheses) is not shown. The text (formerly lt, for "link text") parameter can be used to do this, for example to hide the "(botanist)" in Charles Darwin (botanist): Do not use to create piped links:  is not equivalent to. The former will not cause the foreign language links to disappear when the English article exists.

Italics
If the linked material should be in italics (e.g., it is a major work such as a film title), use yes to generate italic markup around the link but not around the square-bracketed inter-language links.

Quotation marks
If the linked material should have quotation marks around it (e.g., it is a minor work such as a song title), use yes to generate them around the link but not around the square-bracketed inter-language links, and not themselves part of the link. Note that both yes and yes can be used in the same template call, resulting in an italicised link that is also in quotes.

Removing bold formatting
This template might be used in places where the text is bolded, for example in the title line of a table. In these circumstances, the inter-language links can be un-bolded by using nobold
 * → Charles Darwin (botanist)
 * → Charles Darwin (botanist)

Vertical alignment and font size
The vertical alignment of the interlanguage links can be altered by adding vertical-align, setting it equal to  for superscript or   for subscript. Note that this parameter has two alias, valign and v.

If ill is being used in an infobox or another location where the font size is already decreased, set infobox in order to prevent the text size from dropping below the minimum recommended size, per MOS:SMALLTEXT.

Reasonator and Wikidata
On non-articles such as talk pages and WikiProject pages, links to Magnus Manske's Reasonator or to the Wikidata table of languages may be useful in order to discuss redlinked pages that exist on other language Wikipedias. They follow the same general syntax for language wikis, but use the parameters reasonator or wd, respectively.

Forcing links
To display the interlanguage link(s) even if the English Wikipedia article exists, set y; this parameter has an alias display.

Automatic removal
If you create an interlanguage link and an English Wikipedia article is later created, this template will appear as a regular (blue) link as explained above. The underlying template, however, will eventually be edited automatically (it is one of the tasks assigned to bot Cewbot), removing the template and resulting in a regular (blue) link. While this is in most cases intended to save on the computational load, it does mean users will not again be directed to the foreign-language article if the article gets deleted at a later stage as that information is lost with the removal of the template. The link will become a red link. In same cases, it may also be desirable to keep the inter-wiki links until the English article contains all the information available in the other Wikipedia language entities. Use preserve or display to prevent automatic removal.

More examples

 * gives TC Matic, because TC Matic exists here
 * gives TC Matic (band), because TC Matic (band) does not exist here
 * gives TC Matic (band) – although shown in blue the interwiki links won't work because they default to the title "TC Matic (band)" which is wrong
 * gives TC Matic – the text "TC Matic" now redlinks to "TC Matic (band)"
 * gives TC Matic (band) – the text "TC Matic (band)" now links to "TC Matic" which exists

TemplateData


Redirects
The main shortcut for this template is ill.

After a merge discussion, five other templates were merged into this template, and thus this template contains all of their features; these redirects can still be used if desired.