Difference between revisions of "Template:ISO 639-2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎See also: add link)
imported>Zyxw
(formatting)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{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.

Revision as of 17:02, 4 July 2017

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.

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

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.

Template parameters

ParameterDescriptionTypeStatus
ISO 639-2 code1

A valid ISO 639-2 language code.

Stringrequired
Link text2

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.

Stringoptional

See also