Template:Country/doc: Difference between revisions
More actions
minor punct./copyedit |
+ some example |
||
| Line 33: | Line 33: | ||
== Examples == | == Examples == | ||
* | * “Estonia” in Estonian language: {{tlc|Country|EE}} → {{Country|EE}} | ||
* | * “Italy” in Polish language: {{tlc|Country|IT|3=lang=pl}} → {{Country|IT|lang=pl}} | ||
*"Ukraine" in Ukrainian | * “North Macedonia” in Italian language: {{tlc|Country|MK|3=lang=it}} → {{Country|MK|lang=it}} | ||
* "Ukraine" in Ukrainian language with no wikilink: {{tlc|Country|UA|3=lang=uk|4=nolink=1}} → {{Country|UA|lang=uk|nolink=1}} | |||
Revision as of 15:09, 23 February 2019
Given the ISO code for a country, it checks if the English language name of the country matches a template name (e.g., EE → {{Estonia}}). If such a template exists, it calls that template; if not, it returns the English name. The individual country templates provide localization of country names, and link the localized name to the Wikipedia entry in the relevant language (e.g., {{Estonia}} produces: Template:Estonia).
Usage
{{Country |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | ISO code for country (e.g., EE = Estonia — for a list see en:ISO 3166-1 alpha-2) | empty | required | |
lang | language code (must be entirely lowercase) | 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 it
Localization
This template is not intended to be localized.
Examples
- “Estonia” in Estonian language:
{{Country|EE}}→ Estonia - “Italy” in Polish language:
{{Country|IT|lang=pl}}→ Italy - “North Macedonia” in Italian language:
{{Country|MK|lang=it}}→ North Macedonia - "Ukraine" in Ukrainian language with no wikilink:
{{Country|UA|lang=uk|nolink=1}}→ Ukraine