FANDOM


Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Iso2nation]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.
Description
This template is used to return the country name or demonym of an ISO 3166-1 alpha-2 code
Syntax
Type {{iso2nation|param1|article=|mode=|template=}} somewhere.
mandatory parameters
  • parameter 1, the ISO 3166-1 alpha-2 code
optional parameters
  • "type", which takes "COUNTRY" or "DEMONYM" to print out either the nation's name or the nationality
  • "article", which if it set to yes will return the article "the" if needed;
  • "mode", which if it set to sort will rearrange for sortkey if needed; and
Sample output
{{iso2nation|AU}}
gives...

Australia

{{iso2nation|US|article=yes}}
gives...

the United States

{{iso2nation|CA|type=DEMONYM}}
gives...

Canadian

See also
Community content is available under CC-BY-SA unless otherwise noted.