Template:ISO 639-2
Jump to navigation
Jump to search
Template:ISO 639-2 displays an external link to a page for an ISO 639-2 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
{{ISO 639-2|code}}{{ISO 639-2|code|text}}
Alternative usage:
{{ISO639-2|code}}{{ISO639-2|code|text}}{{iso639-2|code}}{{iso639-2|code|text}}
Examples
- One parameter
- Usage:
{{iso639-2|eng}} - Output: eng
Compares to:
- Usage:
[[iso639-3:eng|eng]] - Output: eng
- Two parameters
- Usage:
{{iso639-2|eng|English}} - Output: English
Compares to:
- Usage:
[[iso639-3:eng|English]] - Output: English
TemplateData
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 ISO 639-2
<templatedata> {
"description": "This template displays an external link to a page for an ISO 639-2 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-2 code",
"description": "A valid ISO 639-2 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-2 language code entered in unnamed parameter 1.",
"type": "string",
"required": false
}
}
} </templatedata>
See also
| The above documentation is transcluded from Template:ISO 639-2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |