From Wikipedia, the free encyclopedia
This is a documentation subpage for Template:Country (see that page for the template itself).
It contains usage information,
categories and other content that is not part of the original template page.
The {{country|Action|CountryName}} template is used to display various information about a country.
[edit] Required parameters
- The first parameter is a "what to display" selector, supported are the values
"flagcountry", "flagicon", "flag", "name"
- The second parameter is the name of the country
Selectors "flagcountry", "flagicon" and "flag" shouldn't be used any longer. Please instead use the corresponding direct templates {{
flagcountry}}, {{
flagicon}} and {{
flag}}.
Examples:
{{country|flagcountry|France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagcountry|France}} = France
{{country|flagicon|France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagicon|France}} =
{{country|flag|France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flag|France}} = France
- {{country|name|France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
Using an alias name for the country:
{{country|flagcountry|FRA}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagcountry|FRA}} = France
{{country|flagicon|FRA}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagicon|FRA}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flag|FRA}} = FRA
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
Accessing the values of the country data templates (see template:country data France):
- {{country|get alias|France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
- {{country|get alias|FRA}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
- {{country|get flag alias|France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
- {{country|get flag alias|FRA}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
[edit] Optional parameters
An optional "size" parameter can be given:
{{country|flagcountry|France|size=40px}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagcountry|France|size=40px}} = France
{{country|flagicon|France|size=40px}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagicon|France|size=40px}} =
An optional "name" parameter can be given to override the text of the link:
{{country|flagcountry|France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagcountry|France}} = France
{{country|flagcountry|France|name=C'est la France}} =
|
The template {{ Country/doc}} is deprecated. Please use {{ Country}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Country/doc|Country}}.
The template {{Country}} is deprecated. Please use {{Flag}} instead. |
→ use: {{flagcountry|France|name=C'est la France}} = C'est la France
[edit] Country data
The actual values what to display are stored in country data templates (see also Category:Country data templates), which are selected by the second parameter. Examples:
[edit] Formatters
The "how to display" logic is separated into formatter templates (these contain no data besides some defaults):