Knowledge

Template:Flag/doc

Source 📝

426: 403: 469: 594: 565: 446: 525: 306: 286: 258: 66: 31: 906: 545: 992: 1042: 614: 492: 1176: 1135: 1101: 1071: 1017: 965: 935: 383: 363: 326: 190:
is an optional second parameter that can be used to display a flag variation, such as a historical flag. The list of variants for each country is documented on the appropriate template page, such as
1214: 578: 181:
is the common name of the country (e.g. "United States"), a common alias (e.g. "US"), or a standard country code such as those listed at
1221: 213:
parameter, and is used to specify the maximum width and/or height of the flag image. This parameter is specified using standard
1190: 502:
Flags are also available for several sub-national and multi-national entities such as US states, Canadian provinces, and the
135: 223: 38: 73: 865: 715: 625: 509: 214: 191: 101:
This template is used to display a small flag icon next to a wikilinked country name. It is related to the
1492: 1322: 707: 1721: 1485: 1402: 1315: 776:
Common name of the country (e.g. 'United States'), a common alias (e.g. 'US'), or a standard country code
1714: 1457: 1395: 1362: 1282: 456:
The name parameter can be used to change the display string but keep the link to the correct article.
1450: 1355: 1329: 1275: 91:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 1478: 1308: 1003: 52: 1648: 1388: 1369: 1289: 1207: 84: 1691: 1443: 1348: 1268: 1158: 711: 703: 88: 1684: 1121: 920: 893: 115: 80: 651:
For many countries, using the country code as the template name will act as a wrapper for
79:
To avoid major disruption and server load, any changes should be tested in the template's
8: 1471: 1416: 1301: 848:
The maximum width or height, specified via standard 'extended image syntax' (e.g. x30px)
1705: 1677: 1626: 1606: 1586: 1506: 1381: 1086: 978: 182: 105: 92: 41: 1566: 1546: 1526: 1436: 1341: 1261: 1057: 1065:
aligns country names correctly in vertical lists (see that template's documentation)
647:
limit. In these cases consider using modules or module-wrapper templates instead:
634: 530: 1745: 1738: 1028: 951: 644: 636: 550: 503: 125: 1668: 1169: 1140: 719: 311: 291: 270: 263: 46: 17: 802:
Identifies a flag variant to be used instead of the standard flag, e.g. 1815
1758: 1749: 671: 652: 732:
This template displays a small flag icon next to a wikilinked country name
138:
for the main documentation/discussion page for the flag templates system.
131:
templates, but offers more options in terms of the text string displayed.
1754: 667: 599: 570: 413:
Flag variations can be used with either country names or country codes.
479:
The name parameter can also be used when flag variants are specified.
674:
that can further reduce sizes when invoked directly. For basic use,
1041: 1181: 1129:
displays the flag and another name, followed country name or code
1106: 1076: 1047: 991: 940: 431: 408: 388: 368: 337: 331: 74:
approximately 349,000 pages, or roughly 1% of all pages
55:
and other content that is not part of the original template page.
1166:
displays the flag and a name, above linked country name and code
910: 575:
The size parameter can be used to control the image dimensions.
474: 451: 643:
Pages with many flags may come close to or exceed Knowledge's
825:
Display alternative text instead of the standard country name
619: 497: 343: 1094:
adds country code in parentheses after linked country name
347: 739: 1737:
Module-based versions which can be used to reduce the
744:
This template prefers inline formatting of parameters.
663:, which has an include size that is about 15% smaller. 928:
always expands the link text to the full country name
342:
In addition to the ISO country codes, those used by
986:displays the flag only, linked to the country name 577:23×15px is the default size for most countries ( 227:for the templates latently called by this one. 203:parameter, is used to display alternative text 1215: 690:which has an include size that is about half. 170:maximum width and/or height of the flag image 1741:on pages that are near or exceed the limit. 1036:links the flag image to its description page 722:in articles based on its TemplateData. 1222: 1208: 209:, this optional value is specified by the 1097: 931: 1196: 1191:Knowledge:WikiProject Flag Template#List 199:, this optional value, specified by the 14: 1522:Central American and Caribbean Games 1193:for a longer list of flag templates. 716:See a monthly parameter usage report 60: 25: 1011:displays an unlinked flag icon only 136:Knowledge:WikiProject Flag Template 23: 635:Alternatives to avoid Knowledge's 462:{{flag|Canada|1957|name=Canadian}} 51:It may contain usage information, 24: 1773: 856: 833: 810: 784: 518:{{flag|British Columbia|name=BC}} 1642:"Nation at Championships"-style 1174: 1133: 1099: 1069: 1040: 1015: 990: 963: 933: 904: 670:||}} is a wrapper for 612: 592: 581:have a different default size). 563: 543: 523: 508:A complete list can be found at 490: 467: 444: 424: 401: 381: 361: 324: 304: 284: 269:Note that all instances link to 256: 64: 29: 1146: 866:Knowledge:Extended image syntax 740: 697: 510:Category:Country data templates 959:does not link the country name 587:{{flag|Switzerland|size=28px}} 558:{{flag|Switzerland|size=14px}} 13: 1: 1732: 192:Template:Country data Germany 336:All three instances link to 7: 1748:a version which implements 901:displays coat of arms image 871: 350:, etc. are also supported. 230: 10: 1778: 706:for this template used by 439:{{flag|CAN|name=Canadian}} 1700: 1661: 1641: 1621: 1601: 1581: 1561: 1541: 1521: 1501: 1466: 1431: 1411: 1376: 1336: 1296: 1256: 1251: 1248: 1245: 1242: 1239: 1236: 750: 574: 501: 412: 335: 268: 95:before implementing them. 87:subpages, or in your own 72:This template is used on 1739:post-expand include size 645:Post-expand include size 637:Post-expand include size 141: 1246:Athlete (country code) 396:{{flag|Germany|empire}} 197:alternative text string 163:alternative text string 250:{{flag|United States}} 1249:Athlete Country Name 1197:Multi-sport templates 725:TemplateData for Flag 682:can be replaced with 659:can be replaced with 1602:Mediterranean Games 1243:Country name (code) 1622:Summer Universiade 1493:Flag SEAGF medalist 1323:Flag IOC 2 medalist 1233: 862: 747: 738:Template parameters 419:{{flag|DEU|empire}} 1722:Flag link medalist 1701:Generic (variant) 1486:Flag SEAGF athlete 1403:Flag PASO medalist 1316:Flag IOC 2 athlete 1231: 767:Country identifier 736: 734: 729: 617:    183:ISO 3166-1 alpha-3 179:country identifier 150:country identifier 44: 1730: 1729: 1715:Flag link athlete 1458:Flag CGF medalist 1412:Parapan American 1396:Flag PASO athlete 1363:Flag IPC medalist 1337:Paralympic Games 1283:Flag IOC medalist 1187: 1186: 861: 860: 839:Maximum dimension 763: 730: 714:and other tools. 632: 631: 626:non-quadrilateral 99: 98: 59: 58: 36: 1769: 1757:also works with 1673: 1667: 1467:Southeast Asian 1451:Flag CGF athlete 1356:Flag IPC athlete 1330:Flag IOC 2 short 1276:Flag IOC athlete 1234: 1230: 1224: 1217: 1210: 1204: 1180: 1178: 1177: 1163: 1157: 1150: 1148: 1139: 1137: 1136: 1126: 1120: 1113: 1109: 1105: 1103: 1102: 1091: 1085: 1074: 1073: 1072: 1062: 1056: 1046: 1044: 1033: 1027: 1020: 1019: 1018: 1008: 1002: 995: 994: 983: 977: 969: 967: 966: 956: 950: 943: 939: 937: 936: 925: 919: 908: 907: 898: 892: 876: 875: 844: 821: 816:Alternative text 798: 795: 772: 764: 748: 745: 735: 689: 684:{{#invoke:flag|| 681: 662: 658: 657:{{flag|''USA''}} 618: 616: 615: 608: 598: 596: 595: 588: 569: 567: 566: 559: 549: 547: 546: 539: 529: 527: 526: 519: 496: 494: 493: 486: 473: 471: 470: 463: 450: 448: 447: 440: 430: 428: 427: 420: 407: 405: 404: 397: 387: 385: 384: 377: 367: 365: 364: 357: 330: 328: 327: 320: 319:{{flag|Germany}} 310: 308: 307: 300: 290: 288: 287: 280: 266: 262: 260: 259: 251: 235: 234: 226: 224:the prefix index 156:optional variant 130: 124: 120: 114: 110: 104: 68: 67: 61: 33: 32: 26: 1777: 1776: 1772: 1771: 1770: 1768: 1767: 1766: 1764: 1735: 1671: 1665: 1562:European Games 1479:Flag SEAGF team 1309:Flag IOC 2 team 1237:Output style → 1232:Flag templates 1229: 1228: 1203:This template: 1202: 1199: 1175: 1173: 1172: 1161: 1155: 1144: 1134: 1132: 1124: 1118: 1111: 1100: 1098: 1089: 1083: 1070: 1068: 1060: 1054: 1039: 1031: 1025: 1016: 1014: 1006: 1004:Flag decoration 1000: 989: 981: 975: 964: 962: 954: 948: 934: 932: 923: 917: 905: 896: 890: 874: 842: 819: 796: 793: 770: 743: 728: 700: 694: 683: 675: 660: 656: 655:: For example, 641: 624:Some flags are 613: 611: 606: 593: 591: 586: 576: 564: 562: 557: 544: 542: 537: 524: 522: 517: 507: 491: 489: 484: 468: 466: 461: 445: 443: 438: 425: 423: 418: 402: 400: 395: 382: 380: 375: 362: 360: 355: 341: 325: 323: 318: 305: 303: 298: 285: 283: 278: 257: 255: 254: 249: 233: 222: 144: 128: 122: 118: 112: 108: 102: 78: 65: 50: 30: 22: 21: 20: 12: 11: 5: 1775: 1762: 1761: 1752: 1746:Template:Flagg 1734: 1731: 1728: 1727: 1725: 1718: 1711: 1709: 1702: 1698: 1697: 1695: 1688: 1681: 1674: 1663: 1659: 1658: 1656: 1654: 1652: 1649:Flag link team 1645: 1643: 1639: 1638: 1636: 1634: 1632: 1630: 1623: 1619: 1618: 1616: 1614: 1612: 1610: 1603: 1599: 1598: 1596: 1594: 1592: 1590: 1583: 1582:African Games 1579: 1578: 1576: 1574: 1572: 1570: 1563: 1559: 1558: 1556: 1554: 1552: 1550: 1543: 1539: 1538: 1536: 1534: 1532: 1530: 1523: 1519: 1518: 1516: 1514: 1512: 1510: 1503: 1499: 1498: 1496: 1489: 1482: 1475: 1468: 1464: 1463: 1461: 1454: 1447: 1440: 1433: 1429: 1428: 1426: 1424: 1422: 1420: 1413: 1409: 1408: 1406: 1399: 1392: 1389:Flag PASO team 1385: 1378: 1374: 1373: 1370:Flag IPC short 1366: 1359: 1352: 1345: 1338: 1334: 1333: 1326: 1319: 1312: 1305: 1298: 1294: 1293: 1290:Flag IOC short 1286: 1279: 1272: 1265: 1258: 1257:Olympic Games 1254: 1253: 1250: 1247: 1244: 1241: 1238: 1227: 1226: 1219: 1212: 1201: 1200: 1198: 1195: 1185: 1184: 1167: 1164: 1152: 1151: 1130: 1127: 1115: 1114: 1095: 1092: 1080: 1079: 1066: 1063: 1051: 1050: 1037: 1034: 1022: 1021: 1012: 1009: 997: 996: 987: 984: 972: 971: 960: 957: 945: 944: 929: 926: 914: 913: 902: 899: 887: 886: 883: 880: 873: 870: 859: 858: 855: 852: 851: 845: 840: 836: 835: 832: 829: 828: 822: 817: 813: 812: 809: 806: 805: 799: 791: 787: 786: 783: 780: 779: 773: 768: 762: 761: 758: 755: 752: 708:TemplateWizard 701: 699: 696: 692: 691: 664: 640: 633: 630: 629: 622: 609: 607:{{flag|Nepal}} 603: 602: 589: 583: 582: 573: 560: 554: 553: 540: 534: 533: 520: 514: 513: 504:European Union 500: 487: 485:{{flag|Texas}} 481: 480: 477: 464: 458: 457: 454: 441: 435: 434: 421: 415: 414: 411: 398: 392: 391: 378: 372: 371: 358: 352: 351: 334: 321: 315: 314: 301: 295: 294: 281: 275: 274: 267: 252: 246: 245: 242: 239: 232: 229: 219: 218: 204: 194: 185: 143: 140: 97: 96: 69: 57: 56: 34: 15: 9: 6: 4: 3: 2: 1774: 1765: 1760: 1756: 1753: 1751: 1747: 1744: 1743: 1742: 1740: 1726: 1723: 1719: 1716: 1712: 1710: 1707: 1703: 1699: 1696: 1693: 1692:Flag medalist 1689: 1686: 1682: 1679: 1675: 1670: 1664: 1660: 1657: 1655: 1653: 1650: 1646: 1644: 1640: 1637: 1635: 1633: 1631: 1628: 1624: 1620: 1617: 1615: 1613: 1611: 1608: 1604: 1600: 1597: 1595: 1593: 1591: 1588: 1584: 1580: 1577: 1575: 1573: 1571: 1568: 1564: 1560: 1557: 1555: 1553: 1551: 1548: 1544: 1540: 1537: 1535: 1533: 1531: 1528: 1524: 1520: 1517: 1515: 1513: 1511: 1508: 1504: 1500: 1497: 1494: 1490: 1487: 1483: 1480: 1476: 1473: 1469: 1465: 1462: 1459: 1455: 1452: 1448: 1445: 1444:Flag CGF team 1441: 1438: 1434: 1432:Commonwealth 1430: 1427: 1425: 1423: 1421: 1418: 1414: 1410: 1407: 1404: 1400: 1397: 1393: 1390: 1386: 1383: 1379: 1377:Pan American 1375: 1372:}} 1371: 1367: 1364: 1360: 1357: 1353: 1350: 1349:Flag IPC team 1346: 1343: 1339: 1335: 1332:}} 1331: 1327: 1324: 1320: 1317: 1313: 1310: 1306: 1303: 1299: 1295: 1292:}} 1291: 1287: 1284: 1280: 1277: 1273: 1270: 1269:Flag IOC team 1266: 1263: 1259: 1255: 1252:Country code 1240:Country name 1235: 1225: 1220: 1218: 1213: 1211: 1206: 1205: 1194: 1192: 1183: 1171: 1170:Dirk Nowitzki 1168: 1165: 1160: 1159:Flag medalist 1154: 1153: 1142: 1141:Dirk Nowitzki 1131: 1128: 1123: 1117: 1116: 1108: 1096: 1093: 1088: 1082: 1081: 1078: 1067: 1064: 1059: 1053: 1052: 1049: 1043: 1038: 1035: 1030: 1024: 1023: 1013: 1010: 1005: 999: 998: 993: 988: 985: 980: 974: 973: 961: 958: 953: 947: 946: 942: 930: 927: 922: 916: 915: 912: 903: 900: 895: 889: 888: 884: 881: 878: 877: 869: 867: 853: 850: 849: 846: 841: 838: 837: 830: 827: 826: 823: 818: 815: 814: 807: 804: 803: 800: 792: 789: 788: 781: 778: 777: 774: 769: 766: 765: 759: 756: 753: 749: 746: 741: 733: 727: 726: 721: 720:Template:Flag 717: 713: 709: 705: 695: 687: 679: 673: 669: 665: 654: 650: 649: 648: 646: 638: 627: 623: 621: 610: 605: 604: 601: 590: 585: 584: 580: 579:some entities 572: 561: 556: 555: 552: 541: 536: 535: 532: 521: 516: 515: 511: 505: 499: 488: 483: 482: 478: 476: 465: 460: 459: 455: 453: 442: 437: 436: 433: 422: 417: 416: 410: 399: 394: 393: 390: 379: 374: 373: 370: 359: 354: 353: 349: 345: 339: 333: 322: 317: 316: 313: 302: 297: 296: 293: 282: 277: 276: 272: 271:United States 265: 264:United States 253: 248: 247: 243: 240: 237: 236: 228: 225: 216: 212: 208: 205: 202: 198: 195: 193: 189: 186: 184: 180: 177: 176: 175: 174: 171: 167: 164: 160: 157: 154: 151: 148: 139: 137: 132: 127: 117: 107: 94: 90: 86: 82: 76: 75: 70: 63: 62: 54: 48: 47:Template:Flag 43: 40: 39:documentation 35: 28: 27: 19: 18:Template:Flag 1763: 1759:Module:Flagg 1750:Module:Flagg 1736: 1724:}} 1720:{{ 1717:}} 1713:{{ 1708:}} 1704:{{ 1694:}} 1690:{{ 1687:}} 1685:Flag athlete 1683:{{ 1680:}} 1676:{{ 1672:}} 1666:{{ 1651:}} 1647:{{ 1629:}} 1625:{{ 1609:}} 1605:{{ 1589:}} 1585:{{ 1569:}} 1565:{{ 1549:}} 1545:{{ 1542:Asian Games 1529:}} 1525:{{ 1509:}} 1505:{{ 1502:World Games 1495:}} 1491:{{ 1488:}} 1484:{{ 1481:}} 1477:{{ 1474:}} 1470:{{ 1460:}} 1456:{{ 1453:}} 1449:{{ 1446:}} 1442:{{ 1439:}} 1435:{{ 1419:}} 1415:{{ 1405:}} 1401:{{ 1398:}} 1394:{{ 1391:}} 1387:{{ 1384:}} 1380:{{ 1368:{{ 1365:}} 1361:{{ 1358:}} 1354:{{ 1351:}} 1347:{{ 1344:}} 1340:{{ 1328:{{ 1325:}} 1321:{{ 1318:}} 1314:{{ 1311:}} 1307:{{ 1304:}} 1300:{{ 1297:Other games 1288:{{ 1285:}} 1281:{{ 1278:}} 1274:{{ 1271:}} 1267:{{ 1264:}} 1260:{{ 1188: 1162:}} 1156:{{ 1125:}} 1122:Flag athlete 1119:{{ 1090:}} 1084:{{ 1061:}} 1055:{{ 1032:}} 1026:{{ 1007:}} 1001:{{ 982:}} 976:{{ 955:}} 949:{{ 924:}} 921:Flag country 918:{{ 897:}} 894:Coat of arms 891:{{ 863: 847: 824: 801: 775: 742: 737: 731: 724: 723: 712:VisualEditor 704:TemplateData 702:This is the 698:TemplateData 693: 685: 677: 672:Module:Flagg 668:#invoke:flag 666:{{ 653:Module:Flagg 642: 597:   568:   376:{{flag|GER}} 356:{{flag|DEU}} 299:{{flag|USA}} 220: 215:image syntax 210: 206: 200: 196: 187: 178: 172: 169: 165: 162: 158: 155: 152: 149: 146: 145: 133: 129:}} 123:{{ 119:}} 116:flag country 113:{{ 109:}} 103:{{ 100: 89:user subpage 71: 1755:Module:Flag 882:Description 754:Description 600:Switzerland 571:Switzerland 538:{{flag|EU}} 279:{{flag|US}} 238:Wiki markup 1472:Flag SEAGF 1417:Flag PPASO 1302:Flag IOC 2 85:/testcases 53:categories 37:This is a 1706:Flag link 1678:Flag team 1627:Flag FISU 1607:Flag CIJM 1587:Flag AFOC 1507:Flag IWGA 1382:Flag PASO 1087:Flag team 979:Flag icon 751:Parameter 106:flag icon 93:talk page 1733:See also 1662:Generic 1567:Flag EOC 1547:Flag OCA 1527:Flag CAC 1437:Flag CGF 1342:Flag IPC 1262:Flag IOC 1058:Flaglist 970:Germany 885:Example 879:Template 872:See also 857:optional 834:optional 811:optional 785:required 475:Canadian 452:Canadian 241:Displays 231:Examples 81:/sandbox 1182:Germany 1107:Germany 1077:Germany 1048:Germany 941:Germany 797:variant 790:Variant 686:country 678:country 676:{{flag| 661:{{USA}} 409:Germany 338:Germany 332:Germany 188:variant 147:{{flag| 42:subpage 1179:  1143:  1138:  1110:  1104:  1075:  1045:  968:  938:  911:Canada 909:  854:String 831:String 808:String 782:String 760:Status 548:  528:  495:  472:  449:  429:  406:  386:  366:  329:  309:  289:  261:  244:Notes 166:| 159:| 153:| 1112:(GER) 1029:Flagc 952:Flagu 864:See: 639:limit 620:Nepal 498:Texas 168:size= 161:name= 142:Usage 126:flagu 16:< 1669:Flag 1223:edit 1216:talk 1209:view 1189:See 843:size 820:name 757:Type 718:for 344:FIFA 221:See 211:size 207:size 201:name 134:See 121:and 45:for 1147:GER 432:DEU 389:GER 369:DEU 348:IOC 312:USA 83:or 868:. 710:, 688:}} 680:}} 628:. 551:EU 531:BC 512:. 346:, 292:US 273:. 173:}} 111:, 1149:) 1145:( 794:2 771:1 506:. 340:. 217:. 77:. 49:.

Index

Template:Flag
documentation
subpage
Template:Flag
categories
approximately 349,000 pages, or roughly 1% of all pages
/sandbox
/testcases
user subpage
talk page
flag icon
flag country
flagu
Knowledge:WikiProject Flag Template
ISO 3166-1 alpha-3
Template:Country data Germany
image syntax
the prefix index
United States
United States
US
USA
Germany
Germany
FIFA
IOC
DEU
GER
Germany
DEU

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.