m (Fix typo) Tag: 2017 source edit |
m (Wrap code to new line) |
||
Line 8: | Line 8: | ||
|pt=Portuguese | |pt=Portuguese | ||
|ru=Russian | |ru=Russian | ||
|#default={{#if:{{{1|}}}|{{#ifeq:{{{monospace|1}}}|1|<code>{{{1}}}</code>|{{{1}}}}}|{{fail|{{PAGENAME}}|Missing 1st argument}}}}}}</includeonly></onlyinclude> | |#default={{#if:{{{1|}}}|{{#ifeq:{{{monospace|1}}}|1|<code>{{{1}}}</code>|{{{1}}}}}|{{fail|{{PAGENAME}}|Missing 1st argument}}}} | ||
}}</includeonly></onlyinclude> | |||
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 <code>monospace=0</code> is passed, in which case it will be returned as plaintext). Examples: | 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 <code>monospace=0</code> is passed, in which case it will be returned as plaintext). Examples: |
Latest revision as of 12:02, 28 July 2024
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 |