Template:Flag char
Jump to navigation
Jump to search
This documentation is transcluded from Template:Flag char/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Inserts an emoji flag.
Usage
This template takes an ISO 3166-1 alpha-2 country code, other emoji flag sequence, or ISO 3166-2 region code and returns the corresponding emoji flag. Compared to {{Flagicon}}, this template is more accessible and has less impact on page loading time but potentially displays incorrectly on some devices. This template can be used to reduce the number of Wikimedia Commons images on the page, mitigating a bug where too many such images can cause the page to fail to load. [1]
{{flag char|GB}}
→ 🇬🇧{{flag char|GB-WLS}}
→ 🏴{{flag char|US}}
→ 🇺🇸{{flag char|US-TX}}
→ 🏴{{flag char|EU}}
→ 🇪🇺{{flag char|UN}}
→ 🇺🇳
See also
- {{Char}}
- Module:Char