Converts an ISO 639-1 or ISO 639-3 language code to the English name (exonym) of that language—though only a few are defined. Any undefined code is returned as an in-line code block (unless monospace=0
is passed, in which case it will be returned as plaintext). Examples:
{{n en|es}}
⟶ Spanish{{n en|arb}}
⟶ Standard Arabic{{n en|os}}
⟶os
{{n en|os|monospace=0}}
⟶ os{{n en|zz}}
(an unassigned/invalid code) ⟶zz
For the endonym, use the {{#language:}} parser function: {{#language:ja}}
⟶ 日本語
(That function does have a second parameter for retrieving endonyms, but it requires an extension which this wiki doesn't have, as you can see from this call: 日本語.)
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
Converts an ISO 639-1 or ISO 639-3 language code to the English name (exonym) of that language.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language code | 1 | no description
| String | required |