Knowledge

Template:Country alias/sandbox

Source 📝

59: 90: 128: 31: 244:
The input year will determine which flag is used. For example, any year before 1999 will give "Pre-1999 Flag of Tunisia.svg" for Tunisia (TUN), while any year after 1999 will give "Flag of Tunisia.svg".
510: 498: 74: 78: 534: 494: 70: 155: 252:
This is another method of determining which flag is used. Some countries, such as Great Britain, used the Olympic flag during the
480: 221: 37: 167:
This template returns either a country name or the flag associated with that country, depending on the input parameters.
145: 550: 114: 106: 530: 488: 66: 217: 213: 151: 173: 41: 17: 253: 141: 110: 412:
If the country code is not supplied, or does not exist in the module, an error will be returned:
184: 484: 544: 134: 423:
Lua error in Module:Country_alias at line 202: Invalid country alias: {{{country}}}.
188: 97: 53: 456:
Lua error in Module:Country_alias at line 202: Invalid country alias: EXZ.
445:
Lua error in Module:Country_alias at line 202: Invalid country alias: EXZ.
434:
Lua error in Module:Country_alias at line 202: Invalid country alias: nil.
180: 179:
is primarily meant to be used for sporting competitions such as the
101:
and changes may be widely noticed. Test changes in the template's
471:{{Country alias|EXZ|error=ERROR}} 199:
There is one required parameter and three optional parameters.
394:{{Country alias|ITA|flag=yes|year=2006|games=Summer Olympics}} 388:{{Country alias|ITA|flag=yes|year=1980|games=Summer Olympics}} 122: 84: 25: 265:
Here are some examples based on the entry for Italy (ITA)
522: 514: 45: 451:{{Country alias|country=EXZ}} 429:{{Country alias| }} 440:{{Country alias|EXZ}} 224:. This parameter can be an unnamed parameter. 8: 504:Editors can experiment in this template's 330:"Flag of Italy (2003-2006).svg" 300:"Flag of Italy (1861-1946).svg" 461:To avoid generating a script error, use 382:{{Country alias|ITA|flag=yes|year=1947}} 376:{{Country alias|ITA|flag=yes|year=1946}} 462: 404:does not factor into the flag image. 236:, will return the flag of the country. 212:The three-letter country code used by 418:{{Country alias}} 113:. Consider discussing changes on the 7: 455: 444: 433: 422: 24: 126: 88: 57: 29: 396:→ Flag of Italy (2003–2006).svg 378:→ Flag of Italy (1861-1946).svg 98:approximately 16,000 pages 400:Note that in the last example 370:{{Country alias|ITA|flag=yes}} 1: 336:"Flag of Italy.svg" 315:"Flag of Italy.svg" 351:"Olympic flag.svg" 567: 489:Template:Country alias/doc 478: 535:Subpages of this template 408:Lua script error messages 152:Module:Country alias/data 117:before implementing them. 109:subpages, or in your own 96:This template is used on 267: 529:Add categories to the 62:Template documentation 42:Template:Country alias 18:Template:Country alias 463:|error=value 364:{{Country alias|ITA}} 254:1980 Summer Olympics 142:Module:Country alias 133:This template uses 384:→ Flag of Italy.svg 372:→ Flag of Italy.svg 551:Template sandboxes 457: 446: 435: 424: 390:→ Olympic flag.svg 185:Commonwealth Games 285:"Italy" 165: 164: 121: 120: 52: 51: 558: 526: 518: 502: 473: 472: 464: 453: 452: 442: 441: 431: 430: 420: 419: 403: 395: 389: 383: 377: 371: 365: 358: 355: 352: 349: 346: 343: 340: 337: 334: 331: 328: 325: 322: 319: 316: 313: 310: 307: 304: 301: 298: 295: 292: 289: 286: 283: 280: 277: 274: 271: 249: 241: 235: 229: 209: 205: 178: 172: 130: 129: 123: 92: 91: 85: 82: 63: 61: 60: 38:template sandbox 33: 32: 26: 566: 565: 561: 560: 559: 557: 556: 555: 541: 540: 539: 538: 528: 520: 508: 503: 492: 477: 470: 469: 450: 449: 439: 438: 428: 427: 417: 416: 410: 401: 393: 387: 381: 375: 369: 363: 360: 359: 356: 353: 350: 347: 344: 341: 338: 335: 332: 329: 326: 323: 320: 317: 314: 311: 308: 305: 302: 299: 296: 293: 290: 287: 284: 281: 278: 275: 272: 269: 263: 247: 239: 233: 227: 207: 203: 197: 176: 170: 161: 127: 89: 83: 64: 58: 56: 30: 22: 21: 20: 12: 11: 5: 564: 562: 554: 553: 543: 542: 519:and testcases 476: 475: 459: 458: 447: 436: 425: 409: 406: 398: 397: 391: 385: 379: 373: 367: 268: 262: 259: 258: 257: 250: 245: 242: 237: 230: 225: 210: 196: 193: 163: 162: 160: 159: 149: 138: 131: 119: 118: 93: 55: 54: 50: 49: 34: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 563: 552: 549: 548: 546: 536: 532: 524: 516: 512: 507: 500: 496: 490: 486: 482: 481:documentation 468: 467: 466: 448: 437: 426: 415: 414: 413: 407: 405: 392: 386: 380: 374: 368: 362: 361: 266: 260: 255: 251: 246: 243: 238: 231: 226: 223: 219: 215: 211: 202: 201: 200: 194: 192: 190: 186: 182: 175: 174:Country alias 168: 157: 153: 150: 147: 143: 140: 139: 136: 132: 125: 124: 116: 112: 108: 104: 100: 99: 94: 87: 86: 80: 76: 72: 68: 47: 43: 39: 35: 28: 27: 19: 505: 460: 411: 399: 264: 198: 177:}} 171:{{ 169: 166: 111:user subpage 102: 95: 36:This is the 485:transcluded 189:Asian Games 77:] [ 73:] [ 69:] [ 479:The above 232:If set to 107:/testcases 533:subpage. 115:talk page 40:page for 545:Category 261:Examples 181:Olympics 103:/sandbox 513:| 506:sandbox 499:history 497:| 474:→ ERROR 366:→ Italy 204:country 191:, etc. 156:sandbox 146:sandbox 75:history 527:pages. 523:create 487:from 402:games 248:games 220:, or 195:Usage 81:] 79:purge 65:[ 16:< 531:/doc 515:diff 511:edit 495:edit 324:2006 309:2002 294:1946 279:name 240:year 228:flag 222:FINA 71:edit 67:view 46:diff 483:is 270:ITA 234:yes 218:CGF 214:IOC 135:Lua 105:or 547:: 491:. 465:. 454:→ 443:→ 432:→ 421:→ 357:}, 333:}, 318:}, 303:}, 216:, 187:, 183:, 137:: 48:). 537:. 525:) 521:( 517:) 509:( 501:) 493:( 354:, 348:= 345:{ 342:= 339:, 327:, 321:{ 312:, 306:{ 297:, 291:{ 288:, 282:= 276:{ 273:= 256:. 208:1 206:/ 158:) 154:( 148:) 144:( 44:(

Index

Template:Country alias
template sandbox
Template:Country alias
diff
view
edit
history
purge
approximately 16,000 pages
/sandbox
/testcases
user subpage
talk page
Lua
Module:Country alias
sandbox
Module:Country alias/data
sandbox
Country alias
Olympics
Commonwealth Games
Asian Games
IOC
CGF
FINA
1980 Summer Olympics
documentation
transcluded
Template:Country alias/doc
edit

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