Template:Flag char

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

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