FANDOM


{{country data {{{1}}} | country flagcountry2 | variant = | size = | name =

}}
Template documentation (for the template shown above, sometimes hidden or invisible)
Hey that's great template.One input I would like to pvdiroe is, it would be great if you can put drop-down in solutions tab, if any organization having multiple verticals, can also use that.Cheers,Divyang

This template displays the flag and the name of a country, linked to the main article of that country (flag + country).

Usage

Country (mandatory)
Parameter 1 identifies the country by name or three-letter code (ISO 3166-1 alpha-3)
Name example: {{flagcountry|United States}} → Flag of the United States.png United States
Country code example: {{flagcountry|USA}} → Flag of the United States.png United States
Variant flag image (optional)
Parameter 2 is used to display a different version of the flag.
Example: {{flagcountry|United States|free}} → Flag of the United States.png United States. In this example, the historical flag for United States (1940-1945) is identified by the second parameter of "1945". The list of flag variants is specific for each country.
Link text (optional)
Use the name= parameter to change the link text.
Example: {{flagcountry|United States|name=United States of America}} → Flag of the United States.png United States of America
Size (optional)
Use the size= parameter to change the size from the default.
Example: {{flagcountry|United States|size=40px}} → Flag of the United States.png United States.

Implementation

This template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:country data United States) and the formatter template:country flagcountry2, which contains the logic how to display the country data.

Related templates

  • template:flagicon — to display the flag alone
    • {{flagicon|United States}} = United States
    • {{flagicon|USA}} = United States
  • template:flag — similar to flagcountry, but uses the input parameter as the display text for the link

See also


Visit Template:Flagcountry/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.