Template:Country: Difference between revisions
Template page
More actions
m Changed protection level for "Template:Country": downgraded protection level per consensus ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
Changed LY to point Libya |
||
| Line 124: | Line 124: | ||
|LS={{#ifexist: Template:Lesotho | {{Lesotho|1={{{lang|}}}|nolink={{{nolink|}}}}} | Lesotho }} | |LS={{#ifexist: Template:Lesotho | {{Lesotho|1={{{lang|}}}|nolink={{{nolink|}}}}} | Lesotho }} | ||
|LR={{#ifexist: Template:Liberia | {{Liberia|1={{{lang|}}}|nolink={{{nolink|}}}}} | Liberia }} | |LR={{#ifexist: Template:Liberia | {{Liberia|1={{{lang|}}}|nolink={{{nolink|}}}}} | Liberia }} | ||
|LY={{#ifexist: Template: | |LY={{#ifexist: Template:Libya | {{Libya|1={{{lang|}}}|nolink={{{nolink|}}}}} | Libya}} | ||
|LI={{#ifexist: Template:Liechtenstein | {{Liechtenstein|1={{{lang|}}}|nolink={{{nolink|}}}}} | Liechtenstein }} | |LI={{#ifexist: Template:Liechtenstein | {{Liechtenstein|1={{{lang|}}}|nolink={{{nolink|}}}}} | Liechtenstein }} | ||
|LT={{#ifexist: Template:Lithuania | {{Lithuania|1={{{lang|}}}|nolink={{{nolink|}}}}} | Lithuania }} | |LT={{#ifexist: Template:Lithuania | {{Lithuania|1={{{lang|}}}|nolink={{{nolink|}}}}} | Lithuania }} | ||
Revision as of 11:17, 10 March 2025
This documentation is transcluded from Template:Country/doc.
Given the ISO code for a country, it checks if the English language name of the country matches a template name. If such a template exists, it calls that template; if not, it returns the English name.
Usage
{{Country |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | ISO code for country (e.g., EE = Estonia — for a list see w: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
- "New Zealand" in Russian:
{{Country|NZ|lang=ru}}→ New Zealand - "Ukraine" in Ukrainian with no wikilink:
{{Country|UA|lang=uk|nolink=1}}→ Ukraine