Difference between revisions of "Template:Flag icon"

From LFS Manual
Jump to navigationJump to search
Line 1: Line 1:
 
<includeonly><div style="width: 18px; height: 12px; background-color: none; position: relative; overflow: hidden;"><div style="position: absolute;  
 
<includeonly><div style="width: 18px; height: 12px; background-color: none; position: relative; overflow: hidden;"><div style="position: absolute;  
              top: {{#switch:{{{1}}}
+
{{#switch:{{{1}}}
                | A1 = -1px
+
| A1 = top: -1px; left: -1px;
                | A2 = -1px
+
| A2 = top: -1px; left: -20px;
                | AD = -1px
+
| AD = top: -1px; left: -39px;
                | AE = -1px
+
| AE = top: -1px; left: -58px;
                | AF = -1px
+
| AF = top: -1px; left: -77px;
                | CZ = -53px
+
| AG = top: -1px; left: -96px;
                | DE = -53px
+
| AI = top: -1px; left: -115px;
                | default = 0px
+
| AL = top: -1px; left: -134px;
              }};
+
| AM = top: -1px; left: -153px;
              left: {{#switch:{{{1}}}
+
| AN = top: -1px; left: -172px;
                | A1 = -1px
+
| AO = top: -1px; left: -191px;
                | A2 = -20px
+
| AP = top: -1px; left: -210px;
                | AD = -39px
+
| AQ = top: -1px; left: -229px;
                | AE = -58px
+
| AR = top: -1px; left: -248px;
                | AF = -77px
+
| AS = top: -14px; left: -1px;
                | CZ = -20px
+
| AT = top: -14px; left: -20px;
                | DE = -39px
+
| AU = top: -14px; left: -39px;
                | default = 0px
+
| AW = top: -14px; left: -58px;
              }};
+
| AX = top: -14px; left: -77px;
 +
| AZ = top: -14px; left: -96px;
 +
| BA = top: -14px; left: -115px;
 +
| BB = top: -14px; left: -134px;
 +
| BD = top: -14px; left: -153px;
 +
| BE = top: -14px; left: -172px;
 +
| BF = top: -14px; left: -191px;
 +
| BG = top: -14px; left: -210px;
 +
| BH = top: -14px; left: -229px;
 +
| BI = top: -14px; left: -248px;
 +
| BJ = top: -27px; left: -1px;
 +
| BM = top: -27px; left: -20px;
 +
| BN = top: -27px; left: -39px;
 +
| BO = top: -27px; left: -58px;
 +
| BR = top: -27px; left: -77px;
 +
| BS = top: -27px; left: -96px;
 +
| BT = top: -27px; left: -115px;
 +
| BV = top: -27px; left: -134px;
 +
| BW = top: -27px; left: -153px;
 +
| BY = top: -27px; left: -172px;
 +
| BZ = top: -27px; left: -191px;
 +
| CA = top: -27px; left: -210px;
 +
| CC = top: -27px; left: -229px;
 +
| CD = top: -27px; left: -248px;
 +
| CF = top: -40px; left: -1px;
 +
| CG = top: -40px; left: -20px;
 +
| CH = top: -40px; left: -39px;
 +
| CI = top: -40px; left: -58px;
 +
| CK = top: -40px; left: -77px;
 +
| CL = top: -40px; left: -96px;
 +
| CM = top: -40px; left: -115px;
 +
| CN = top: -40px; left: -134px;
 +
| CO = top: -40px; left: -153px;
 +
| CR = top: -40px; left: -172px;
 +
| CU = top: -40px; left: -191px;
 +
| CV = top: -40px; left: -210px;
 +
| CX = top: -40px; left: -229px;
 +
| CY = top: -40px; left: -248px;
 +
| CW = top: -53px; left: -1px;
 +
| CZ = top: -53px; left: -20px;
 +
| DE = top: -53px; left: -39px;
 +
| default = top: 0px; left: 0px;
 +
}}
 
               max-width: none;  
 
               max-width: none;  
 
               min-width: 267px;">[[File:Flags.png]]</div></div></includeonly><noinclude>{{documentation}}</noinclude>
 
               min-width: 267px;">[[File:Flags.png]]</div></div></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 09:33, 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