Jump to content

Fyrimynd:Interlanguage link/doc

Frá Wikipedia, hin frælsa alfrøðin

This template temporarily displays a link to a non-English Wikipedia article, while the corresponding English-language Wikipedia article is lacking ("a red link"). The red link is explicitly shown, followed by the non-English link. Hovering over the 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 will not be shown.

Parameters

[rætta wikitekst]

The template accepts two, three, or four parameters:

  1. (required) interwiki language code, i.e. fr, bg, no, nl, etc. (see List of Wikipedias)
  2. (required) name of article in English-language Wikipedia
  3. (optional) name of article in non-English Wikipedia, if different from above
  4. (optional) text to display if the text given in the second parameter is not suitable; also available as named parameter |lt=

When article names would be the same in English and foreign language Wikipedia:

When article names are different in English and foreign language Wikipedia:

  • Usage: {{Interlanguage link|nl|Hooglede town hall|Gemeentehuis van Hooglede}}
  • Result: nl (Hooglede town hall)

Once the English article is created, the other language link won't be shown:

[rætta wikitekst]

In some cases the English Wikipedia might use a piped link:

  • Example: [[Arno Schmidt (chef)|Arno Schmidt]]
  • Result: Arno Schmidt

The template can create the same link shown above by using a fourth parameter:

Alternatively the named parameter lt (for link text) can be used:

Note:  Do not use the {{!}} template to create a piped link, since the interwiki links will not then disappear when the English article exists:

TemplateData

[rætta wikitekst]
Hetta er TemplateData dokumentatiónin fyri hesa fyrimynd, ið verður brúkt av VisualEditor og øðrum tólum.

Interlanguage link

The template name is InterLanguage Link. It temporarily displays a link to a non-English Wikipedia article, while the corresponding English-language Wikipedia article is lacking ("a red link"). The red link is explicitly shown, followed by the non-English link. Hovering over the 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 will not be shown.

Template parameters

ParameterDescriptionTypeStatus
Interwiki language code1 lang

Interwiki language code, e.g. fr, bg, no, nl (see [[List of Wikipedias]])

Stringrequired
Article name on English Wikipedia2 en

Name of article on English Wikipedia

Stringrequired
Article name on other wiki3 lang_title

Name of article in non-English Wikipedia, if different from above

Stringoptional
Display text4 lt en_text

Text to display if the text given in the second parameter is not suitable

Stringoptional
Remove bold formattingnobold

if set and text is in bold then the language link will display in normal font-weight, similar to function of [[Template:nobold]]

Booleanoptional

Fyrimynd:Interlanguage link template list