Jump to content

Template:ISO 639 name

From Wikisource
Template documentation

Usage

[edit]

This template substitutes an ISO 639 language code for the endonym (native name) of that language. Works with many ISO 639-1 (2-letter) and 639-2 (3-letter) codes.

Example

[edit]
  • Using ISO 639-1 (2-letter) code: {{ISO 639 name|en}} ⇒ English
  • Using ISO 639-2 (3-letter) code: {{ISO 639 name|epo}} ⇒ Esperanto
  • Using an invalid code: {{ISO 639 name|zzzz}} ⇒ Language abbreviation not recognized by template!
  • Using an invalid code with a fallback (useful in cases where the ISO 639 code is not currently supported by the template, "future-proofing" your usage of the template): {{ISO 639 name|wxyz|Fallback text}} ⇒ Fallback text

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
ISO 639 language code1

no description

Example
en
Stringsuggested
Fallback text2

Text to appear when the set language code is not defined for use in the template.

Default
{{error|Language abbreviation not recognized by [[Template:ISO 639 name|template]]!}}
Contentoptional