Template:ISO 639-1
Appearance
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Lua-Logo.svg | This template uses Lua: |
Template:ISO 639-1 displays an external link to a page for an ISO 639-1 language code at the U.S. Library of Congress ISO 639-2 Registration Authority website. It provides a function similar to the iso639-3:
prefix, such as iso639-3:eng
, which is available for ISO 639-3 language codes.
Usage[change]
{{ISO 639-1|code}}
{{ISO 639-1|code|text}}
Alternative usage:
{{ISO639-1|code}}
{{ISO639-1|code|text}}
{{iso639-1|code}}
{{iso639-1|code|text}}
Examples[change]
- One parameter
- Usage:
{{iso639-1|en}}
- Output: en
Compares to:
- Usage:
[[iso639-3:eng|eng]]
- Output: eng
- Two parameters
- Usage:
{{iso639-1|en|English}}
- Output: English
Compares to:
- Usage:
[[iso639-3:eng|English]]
- Output: English
TemplateData[change]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ISO 639-1 in articles based on its TemplateData.
TemplateData for ISO 639-1
<templatedata> {
"description": "This template displays an external link to a page for an ISO 639-1 language code at the U.S. Library of Congress ISO 639-2 Registration Authority website. It provides a function similar to the \"iso639-3:\" prefix, such as \"iso639-3:eng\", which is available for ISO 639-3 language codes.", "params": { "1": { "label": "ISO 639-1 code", "description": "A valid ISO 639-1 language code.", "type": "string", "required": true }, "2": { "label": "Link text", "description": "Text to be displayed for the link. This parameter is optional; the link text defaults to the ISO 639-1 language code entered in unnamed parameter 1.", "type": "string", "required": false } }
} </templatedata>