Template:Flagicon/doc

Displays the flag of a country with an alt text "Flag of " (the alt text is displayed if you hover the mouse over the flag image. It is also read by screen reader software).

The first parameter is mandatory and identifies the name of the country.

Examples:
 * 🇮🇹 = 🇮🇹
 * 🇮🇹 = 🇮🇹

Optional parameters:
 * 🇮🇹 = 🇮🇹 — to use a non-default flag size (default = 22x20px)

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


 * 🇮🇹 = 🇮🇹 — uses template:country data Italy
 * 🇮🇹 = 🇮🇹 — uses template:country data ITA, which is a redirect to template:country data Italy

Related templates

 * Template:flag is used to display a wikilinked name next to the flag. The displayed name will be the same as the parameter used with the template, but the link target will be the main article for the country (in these examples, Italy).
 * = 🇮🇹 Italy
 * = 🇮🇹 ITA
 * Template:flagcountry is also used to display a wikilinked name next to the flag. The displayed name will always be the same, regardless of whether or not a country code alias is used as the template parameter.
 * = 🇮🇹 italy
 * = 🇮🇹 italy