Difference between revisions of "Template:Flag icon"

From LFS Manual
Jump to navigationJump to search
(Created page with "<includeonly><div style="width: 18px; height: 12px; background-color: none; position: relative; overflow: hidden;"> <div style="position: absolute; top: {{#sw...")
 
Line 1: Line 1:
<includeonly><div style="width: 18px; height: 12px; background-color: none; position: relative; overflow: hidden;">
+
<includeonly><div style="width: 18px; height: 12px; background-color: none; position: relative; overflow: hidden;"><div style="position: absolute;  
  <div style="position: absolute;  
 
 
               top: {{#switch:{{{1}}}
 
               top: {{#switch:{{{1}}}
 
                 | A1 = -1px
 
                 | A1 = -1px
Line 22: Line 21:
 
               }};
 
               }};
 
               max-width: none;  
 
               max-width: none;  
               min-width: 267px;">
+
               min-width: 267px;">[[File:Flags.png]]</div></div></includeonly><noinclude>{{documentation}}</noinclude>
    [[File:united2.png]]
 
  </div>
 
</div></includeonly><noinclude>{{documentation}}</noinclude>
 

Revision as of 09:26, 6 January 2025

Template Info-Icon.png

Template documentation

View - Edit

Displays a flag of the named parameter in "icon" size, currently 18×12 pixels.

Usage

Markup Renders as
{{Flag icon}}
Flags.png
Markup Renders as
{{Flag icon|GB}}
Flags.png
Markup Renders as
{{Flag icon|DE}}
Flags.png
Markup Renders as
{{Flag icon|CZ}}
Flags.png

Available country codes

A1, A2, AD, AE, AF, AG, AI, AL, AM, AN, AO, AP, AQ, AR, 
AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, 
BJ, BM, BN, BO, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, 
CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, 
CW, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, 
ET, EU, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, 
GH, GI, GL, GM, GN, GP, GQ, GR, GT, GU, GW, GY, HK, HM, 
HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, 
JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, 
KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, 
MD, ME, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, 
MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, 
NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, 
PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, 
SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY,
SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, 
TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, 
VN, VU, WF, WS, YE, YT, ZA, ZM, ZW, GB-ENG, GB-NIR, GB-SCT, GB-WLS, XK,
X0, X9

Flags.png