Template:Country/doc: Difference between revisions
Template page
More actions
No edit summary |
explaining ISO code |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d=ISO code for country, eg EE=Estonia | |1d=ISO code for country, eg EE=Estonia (for list see [[:en:ISO 3166-1 alpha-2]]) | ||
|1def= | |1def= | ||
|1stat=required | |1stat=required | ||
| Line 16: | Line 16: | ||
|name=Country | |name=Country | ||
|desc=Given the | |desc=Given the [[:en:ISO 3166-1 alpha-2|ISO code]], it checks if the English language name of the country matches a template name (eg EE -> {{tl|Estonia}}). If it exists, it outputs that template, if not, just the name. The country templates provide localization of country names, and link the localized name to the relevant Wikipedia entry in the relevant language. eg {{tl|Estonia}} produces <code>{{Estonia}}</code>. | ||
|namespace=all | |namespace=all | ||
|usergroup=all | |usergroup=all | ||
Revision as of 10:08, 30 November 2016
Given the ISO code, it checks if the English language name of the country matches a template name (eg EE -> {{Estonia}}). If it exists, it outputs that template, if not, just the name. The country templates provide localization of country names, and link the localized name to the relevant Wikipedia entry in the relevant language. eg {{Estonia}} produces Template:Estonia.
Usage
{{Country |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | ISO code for country, eg EE=Estonia (for list see en:ISO 3166-1 alpha-2) | empty | required | |
lang | language code | empty | optional | |
nolink | set to suppress hyperlink | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also
{{CountryName}} - which provides just the country name, without linking anywhere
Localization
This template is not intended to be localized.