Template:Flag
From Valve Developer Community
Revision as of 14:05, 24 April 2023 by Mailmanmicky (talk | contribs)

This template displays a flag, depending on the specified code. All flag codes must be a MediaWiki language code (unless it's not language-specific, which it will be based off ISO 3166 instead). However, some flags are not language-specific, such as au or zw, so these flags will not have a tooltip.
See Category:flag icons for adding new flags.
Parameters and Examples
Parameters | Description | Examples | Preview |
---|---|---|---|
{{{1}}} | Flag code. If not specified, a white flag will be displayed. | {{Flag}} {{Flag|en}} |
![]() ![]() |
{{{link}}} | Adds a link to a flag. | {{Flag|en|link=Category:Flag icons}} |
|
{{{size}}} | Sets the size of the flag. The default value is 16. ![]() |
{{Flag|en|size=32}} |
![]() |
Available Flags
Language-specific
















































Countries




See also
Category: Flag iconsThe above documentation is transcluded from Template:Flag/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Hidden category: