Template:Flagcountry

From Wikinfo

Jump to: navigation, search

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

}}
[edit] Documentation


This template should probably be protected.

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

Contents

Usage

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

Implementation

This template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:country data France) 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|France}} = Flag of France
    • {{flagicon|FRA}} = Flag of France
  • template:flag — similar to flagcountry, but uses the input parameter as the display text for the link
    • {{flag|France}} = Flag of France France
    • {{flag|FRA}} = Flag of France FRA

See also


Adapted from the Wikipedia template/doc "Template:Flagcountry/doc" http://en.wikipedia.org/w/index.php?title=Template:Flagcountry/doc&oldid=161961219 released under the GNU Free Documentation License 1.2

Adapted from the Wikipedia template "Template:Flagcountry" http://en.wikipedia.org/w/index.php?title=Template:Flagcountry&oldid=161961165 released under the GNU Free Documentation License 1.2

Personal tools
In other languages