Jump to content

Template:Country name

Converts a country name, alias or ISO code into the standard country name, or (with file) into its Commons flag file name. Used by Template:Flag icon. Works without Lua; needs only ParserFunctions.

Code Result
{{Country name|IND}} India
{{Country name|usa}} United States
{{Country name|UK|file}} Flag of the United Kingdom.svg

Unknown names are returned unchanged, and their file becomes Flag of NAME.svg.

Returns the standard country name, or the Commons flag file name with 2=file.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Country1

Country name, alias or ISO code (2 or 3 letters).

Linerequired
Mode2

Set to file to get the flag file name.

Suggested values
file
Lineoptional