Template:Flag

Template page
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Flag/doc. Changes can be proposed in the talk page.

This template produces a small flag image. It is generally not used directly, instead it is used by other templates, such as Infobox ride and Infobox roller coaster.

For cases where the flag is displayed beside the country name (such as the "Country" column in tables) please use Template:Country.

Usage

This template works by linking to an image in Category:Flags. The following countries have flag files uploaded:

  • {{flag|Afghanistan}}
  • {{flag|Albania}}
  • {{flag|Algeria}}
  • {{flag|Andorra}}
  • {{flag|Angola}}
  • {{flag|Argentina}}
  • {{flag|Armenia}}
  • {{flag|Australia}}
  • {{flag|Austria}}
  • {{flag|Azerbaijan}}
  • {{flag|Bahrain}}
  • {{flag|Bangladesh}}
  • {{flag|Belarus}}
  • {{flag|Belgium}}
  • {{flag|Bolivia}}
  • {{flag|Botswana}}
  • {{flag|Brazil}}
  • {{flag|Brunei}}
  • {{flag|Bulgaria}}
  • {{flag|Canada}}
  • {{flag|Cuba}}
  • {{flag|Chile}}
  • {{flag|China}}
  • {{flag|Colombia}}
  • {{flag|Costa Rica}}
  • {{flag|Croatia}}
  • {{flag|Cyprus}}
  • {{flag|Czech Republic}}
  • {{flag|Denmark}}
  • {{flag|Dominican Republic}}
  • {{flag|Ecuador}}
  • {{flag|Egypt}}
  • {{flag|El Salvador}}
  • {{flag|Estonia}}
  • {{flag|Finland}}
  • {{flag|France}}
  • {{flag|Georgia}}
  • {{flag|Germany}}
  • {{flag|Greece}}
  • {{flag|Guatemala}}
  • {{flag|Honduras}}
  • {{flag|Hungary}}
  • {{flag|Iceland}}
  • {{flag|India}}
  • {{flag|Indonesia}}
  • {{flag|Iran}}
  • {{flag|Iraq}}
  • {{flag|Ireland}}
  • {{flag|Israel}}
  • {{flag|Italy}}
  • {{flag|Jamaica}}
  • {{flag|Japan}}
  • {{flag|Jordan}}
  • {{flag|Kazakhstan}}
  • {{flag|Kosovo}}
  • {{flag|Kuwait}}
  • {{flag|Kyrgyzstan}}
  • {{flag|Latvia}}
  • {{flag|Lebanon}}
  • {{flag|Liechtenstein}}
  • {{flag|Lithuania}}
  • {{flag|Luxembourg}}
  • {{flag|Malaysia}}
  • {{flag|Malta}}
  • {{flag|Mauritius}}
  • {{flag|Mexico}}
  • {{flag|Moldova}}
  • {{flag|Mongolia}}
  • {{flag|Morocco}}
  • {{flag|Myammar}}
  • {{flag|Netherlands}}
  • {{flag|New Zealand}}
  • {{flag|Nigeria}}
  • {{flag|North Korea}}
  • {{flag|Norway}}
  • {{flag|Oman}}
  • {{flag|Pakistan}}
  • {{flag|Peru}}
  • {{flag|Philippines}}
  • {{flag|Poland}}
  • {{flag|Portugal}}
  • {{flag|Qatar}}
  • {{flag|Romania}}
  • {{flag|Russia}}
  • {{flag|Saudi Arabia}}
  • {{flag|Singapore}}
  • {{flag|Slovakia}}
  • {{flag|Slovenia}}
  • {{flag|South Africa}}
  • {{flag|South Korea}}
  • {{flag|Spain}}
  • {{flag|Sri Lanka}}
  • {{flag|Sweden}}
  • {{flag|Switzerland}}
  • {{flag|Taiwan}}
  • {{flag|Thailand}}
  • {{flag|Trinidad and Tobago}}
  • {{flag|Tunisia}}
  • {{flag|Turkey}}
  • {{flag|Turkmenistan}}
  • {{flag|UAE}}
  • {{flag|UK}}
  • {{flag|Ukraine}}
  • {{flag|Uruguay}}
  • {{flag|USA}}
  • {{flag|Uzbekistan}}
  • {{flag|Venezuela}}
  • {{flag|Vietnam}}
  • {{flag|Yemen}}

There are additional flag files uploaded, however these should generally not be used in articles. These include:

  • {{flag|England}}
  • {{flag|Hong Kong}}
  • {{flag|Northern Ireland}}
  • {{flag|Scotland}}
  • {{flag|Wales}}

Produces a small flag icon

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Country name1

The name of the country. Please see the template description page for a list of countries.

Example
USA
Unknownrequired
alternateclassalternateclass

no description

Unknownoptional
sizesize

no description

Unknownoptional
Enable small sizesmall

If anything is entered into this parameter, a smaller flag is displayed. Use this for "former location" rows in tables.

Example
yes
Unknownoptional
linklink

no description

Unknownoptional
Enable alt textalt_enable

Add any value to this parameter to enable alt text. Only use this when the country is not written beside the flag name.

Unknownoptional