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