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