Template:Flag: Difference between revisions

From Geometry Dash Expanded Wiki
Jump to navigation Jump to search
geometrydash.wiki.gg>Jamasto
mNo edit summary
geometrydash.wiki.gg>Jamasto
mNo edit summary
Line 1: Line 1:
<span class="country-flag" title="{{{2|}}}">{{#if:{{{1|aq}}}|[[File:Flag {{{1|aq}}}.svg|x24px|link=]] | }}</span><noinclude>
<span class="country-flag" title="{{{2|}}}">{{#if:{{{1|aq}}}|[[File:Flag {{{1|aq}}}.svg|x24px|link=]] | }}</span><noinclude>
;Description
;Description
:This template produces a country flag as an inline icon. The two-letter codes ([[Wikipedia:ISO 3166-1 alpha-2|ISO 3166-1 alpha-2]]) of available flags can be viewed [[dev:Category:Country_flags|here]].
:This template produces a country flag as an inline icon. The two-letter [[Wikipedia:ISO 3166-1 alpha-2|ISO 3166-1 alpha-2]] codes of ''available'' flags can be viewed [[dev:Category:Country_flags|here]].
;Syntax
;Syntax
:Type {{t|Flag|flagcode}} to produce a flag.
:Type {{t|Flag|flagcode}} to produce a flag.
:Type {{t|Flag|flagcode|hovertext}} to produce a flag with popup text on cursor hover.
:Type {{t|Flag|flagcode|hovertext}} to produce a flag with popup text on cursor hover.
[[Category:General templates]]</noinclude>
[[Category:General templates]]</noinclude>

Revision as of 17:28, 18 July 2025

Description
This template produces a country flag as an inline icon. The two-letter ISO 3166-1 alpha-2 codes of available flags can be viewed here.
Syntax
Type {{Flag|<flagcode>}} to produce a flag.
Type {{Flag|<flagcode>|<hovertext>}} to produce a flag with popup text on cursor hover.