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|}}}|[[File:Flag {{{1|}}}.svg|x20px|link=]] | }}</span><noinclude>
<span class="country-flag" title="{{{2|}}}">{{#if:{{{1|aq}}}|[[File:Flag {{{1|aq}}}.svg|x24px|link=]] | }}</span><noinclude>
This formatting template allows you to display country flags inline.
;Description
 
:This template is used to display country flags as an inline icon. The two-letter codes ([[Wikipedia:ISO 3166-1 alpha-2|ISO 3166-1 alpha-2]]) of available country flags can be seen [[dev:Category:Country_flags|here]].
Available country flags can be seen in [[dev:Category:Country_flags|our Commons Wiki]].
;Syntax
== Usage ==
:Type {{t|Flag|flagcode}} to produce a flag.
The template can be used with the following formatting: {{t|Flag|code|legend}}, where:
:Type {{t|Flag|flagcode|hovertext}} to produce a flag with popup text on cursor hover.
* <code>code</code> is the [[wikipedia:ISO 3166-1 alpha-2|ISO 3166-1 alpha-2]] code for the country flag.
* <code>Legend</code> is the legend displayed on hover (optional).
== Examples ==
{| class="wikitable"
! Code !! Result
|-
| <code><nowiki>{{flag|ca|Canada}}</nowiki></code> || {{flag|ca|Canada}}
|}
[[Category:General templates]]</noinclude>
[[Category:General templates]]</noinclude>

Revision as of 02:43, 15 July 2025

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