Difference between revisions of "Template:ISO 639-2/doc"
imported>Zyxw (formatting) |
imported>Zyxw (update description) |
||
| Line 3: | Line 3: | ||
{{Larger|{{Template shortcut|ISO639-2|iso639-2}}}} | {{Larger|{{Template shortcut|ISO639-2|iso639-2}}}} | ||
| − | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' 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. | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' 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 <code>iso639-3:</code> prefix, such as <code>[[iso639-3:eng]]</code>, which is available for [[ISO 639-3]] language codes. |
== Usage == | == Usage == | ||
| Line 36: | Line 36: | ||
<templatedata> | <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.", | + | "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": { | "params": { | ||
"1": { | "1": { | ||
Revision as of 17:19, 4 July 2017
| This is a documentation subpage for Template:ISO 639-2. It contains usage information, categories and other content that is not part of the original template page. |
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.
Contents
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
TemplateData for ISO 639-2
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ISO 639-2 code | 1 | A valid ISO 639-2 language code. | String | required |
| Link text | 2 | 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. | String | optional |
See also