Template:Airtin leid/doc

Frae Wikipedia, the free beuk o knawledge

Uisage[eedit soorce]

{{in|<language code>}}
{{Airtin leid|<language code>|cat-lang=<language name>}}

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 Template:Ml 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

Airticles uising this template are automatically added to a language-specific hidden category. For example, an article using {{in|fr}} is added to Category:Airticles wi French-language external airtins. The |cat-lang= parameter may be used in cases where the language name displayed is different from the language name in the category.

TemplateData[eedit soorce]

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Airtin leid

Displays a language name based on an ISO 639 code, often used after a foreign language reference following the manual of style.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescreeptionTypeStatus
leid code1

The ISO 639 leid code or IETF language tag, e.g. 'fr' faer French, 'pt-BR' faer Brazilian Portuguese

Stringrequired
Leid categorycat-lang

no description

Stringoptional

See an aw[eedit soorce]