Template:Link language/doc

This template is used to indicate to readers that an external link is in a foreign language.

It should generally be placed after the external link, although this is not set in stone; for more information, see the Manual of Style. English is the default language, and does not need to be noted using this template, unless there is a reason the reader would assume the link to be in a foreign language (e.g. a foreign title).

For citations, the language parameter of the various citation templates (,, , etc.) should be used instead.

To note a span of text in a different language, one of the templates (,, etc.) should be used instead.

Usage
The language code is usually an ISO 639 code but it may be any valid IETF language tag. Note that language codes do not always coincide with country codes; see the list of ISO 3166-1 codes. The language name displayed is obtained via  which uses the following data:
 * 1) Module:Lang/data – special override codes / names (looks here first)
 * 2) Module:Language/data/iana languages – as defined by the IETF-sanctioned IANA registry
 * 3) Module:Language/data/ISO 639-3 – as defined in ISO 639-3
 * 4) Module:Language/data/wp languages – specific to Wikipedia

Articles using this template are automatically added to a language-specific hidden category. For example, an article using  is added to Category:Articles with French-language external links. The cat-lang parameter may be used in cases where the language name displayed is different from the language name in the category.

Examples
ISO 639-1 code for French:
 * Usage:
 * Output:
 * Category:

ISO 639-2 and ISO 639-3 code for Asturian:
 * Usage:
 * Output:
 * Category:

IETF language tag code for Brazilian Portuguese:
 * Usage:
 * Output:
 * Category:

Examples with cat-lang parameter
&rarr;
 * Used in:
 * Category:
 * Note: Siksika language redirects to Blackfoot language

&rarr;
 * Used in:
 * Category:
 * Note: Ilokano language redirects to Ilocano language

&rarr;
 * Used in:
 * Category:
 * Note: ksh should display as (in Kölsch); Kölsch language redirects to Colognian dialect; also see Ripuarian language

&rarr;
 * Used in:
 * Category:
 * Note: nan should display as (in Min Nan Chinese); Min Nan Chinese language and Min-nan language redirect to Southern Min; also see Taiwanese Hokkien

&rarr;
 * Used in:
 * Category:
 * Note: Dari language is also known as Dari Persian or Afghan Persian; also see Persian language

User-defined CSS
Logged in users can change the appearance of the template's output using CSS with the  class. For example, edit Special:MyPage/common.css and add span.languageicon { font-weight: bold; }. That would result in being displayed as  instead of.

TemplateData
{	"description": "Displays a language name based on an ISO 639 code, often used after a foreign language reference following the manual of style.", "params": { "1": {			"label": "language code", "description": "The ISO 639 language code or IETF language tag, e.g. 'fr' for French, 'pt-BR' for Brazilian Portuguese", "type": "string", "required": true }	},	"format": "inline" }