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

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


 * 🏴󠁧󠁢󠁥󠁮󠁧󠁿 = 🏴󠁧󠁢󠁥󠁮󠁧󠁿 — uses template:country data England
 * 🏴󠁧󠁢󠁥󠁮󠁧󠁿 = 🏴󠁧󠁢󠁥󠁮󠁧󠁿 — uses template:country data ENG, which is a redirect to template:country data England

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, England).
 * = 🏴󠁧󠁢󠁥󠁮󠁧󠁿 England
 * = 🏴󠁧󠁢󠁥󠁮󠁧󠁿 ENG
 * 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.
 * = 🏴󠁧󠁢󠁥󠁮󠁧󠁿 england
 * = 🏴󠁧󠁢󠁥󠁮󠁧󠁿 england