Template:FlagIOC2team
Revision as of 11:54, 18 July 2009 by 113.22.159.40 (talk)
[[Image:{{country_flag_IOC_alias_{{{1}}}|}}|22x20px|border|{{country_IOC_alias_{{{1}}}|}}]] [[{{country_IOC_alias_{{{1}}}|}} at the |{{country_IOC_alias_{{{1}}}|}}]] ({{{1}}})
| This template uses Lua: |
This template family is used to display a small flag and name of a country, with a wikilink to the country's page for the specified multi-sport event and the country code.
Use Template:T for the other games not listed below.
Contents
Usage
{{flagXXXteam|code|games}}
- code is the three-letter country code used by the IOC, CGF, or FINA.
- games is a string with slightly different forms depending on the template used:
- Template:T takes values in the form
<year> <games>, or just<games> - Template:T and Template:T use
<year> Summer,<year> Winter, or justSummerorWinter - Games-specific templates such as Template:T, Template:T, etc, simply take the
<year>. See below for a full list of supported "shortcut" templates
- Template:T takes values in the form
- The intent is that this template can be used from medal tables and event result tables to point to the right country page. Also, the correct historical flag is chosen based on this string, for countries that had different flags in the past.
Examples
In addition to using historical flags when appropriate, the specific name of the games will be selected when appropriate.
flagIOC2team
{{flagIOC2team|CHN|Asian Games}}→ [[Image:Template:Country flag IOC alias CHN|22x20px|border|Template:Country IOC alias CHN]] [[Template:Country IOC alias CHN at the Asian Games|Template:Country IOC alias CHN]] (CHN)
{{flagIOC2team|CHN|2008 Asian Beach Games}}→ [[Image:Template:Country flag IOC alias CHN|22x20px|border|Template:Country IOC alias CHN]] [[Template:Country IOC alias CHN at the 2008 Asian Beach Games|Template:Country IOC alias CHN]] (CHN)
{{flagIOC2team|HKG|1954 Asian Games}}→ [[Image:Template:Country flag IOC alias HKG|22x20px|border|Template:Country IOC alias HKG]] [[Template:Country IOC alias HKG at the 1954 Asian Games|Template:Country IOC alias HKG]] (HKG)
(Uses historical flag)
{{flagIOC2team|JPN|2009 Asian Indoor Games|100}}→ [[Image:Template:Country flag IOC alias JPN|22x20px|border|Template:Country IOC alias JPN]] [[Template:Country IOC alias JPN at the 2009 Asian Indoor Games|Template:Country IOC alias JPN]] (JPN)
flagIOCteam / flagIPCteam
{{flagIOCteam|USA}}→ [[Image:Template:Country flag IOC alias USA|22x20px|border|Template:Country IOC alias USA]] [[Template:Country IOC alias USA at the Olympics|Template:Country IOC alias USA]] (USA)
{{flagIOCteam|GER|Winter}}→ [[Image:Template:Country flag IOC alias GER|22x20px|border|Template:Country IOC alias GER]] [[Template:Country IOC alias GER at the Winter Olympics|Template:Country IOC alias GER]] (GER)
{{flagIOCteam|ESP|2004 Summer}}→ [[Image:Template:Country flag IOC alias ESP|22x20px|border|Template:Country IOC alias ESP]] [[Template:Country IOC alias ESP at the 2004 Summer Olympics|Template:Country IOC alias ESP]] (ESP)
{{flagIOCteam|CAN|2006 Winter}}→ [[Image:Template:Country flag IOC alias CAN|22x20px|border|Template:Country IOC alias CAN]] [[Template:Country IOC alias CAN at the 2006 Winter Olympics|Template:Country IOC alias CAN]] (CAN)
{{flagIOCteam|CAN|1924 Winter}}→ [[Image:Template:Country flag IOC alias CAN|22x20px|border|Template:Country IOC alias CAN]] [[Template:Country IOC alias CAN at the 1924 Winter Olympics|Template:Country IOC alias CAN]] (CAN)
(Uses historical flag)
{{flagIPCteam|GRE|2004 Summer}}→ [[Image:Template:Country flag IOC alias GRE|22x20px|border|Template:Country IOC alias GRE]] [[Template:Country IOC alias GRE at the 2004 Summer Paralympics|Template:Country IOC alias GRE]] (GRE)
flagCGFteam
{{flagCGFteam|CAN}}→ [[Image:Template:Country flag IOC alias CAN|22x20px|border|Template:Country IOC alias CAN]] [[Template:Country IOC alias CAN at the Commonwealth Games|Template:Country IOC alias CAN]] (CAN)
{{flagCGFteam|MAS|2006}}→ [[Image:Template:Country flag IOC alias MAS|22x20px|border|Template:Country IOC alias MAS]] [[Template:Country IOC alias MAS at the 2006 Commonwealth Games|Template:Country IOC alias MAS]] (MAS)
{{flagCGFteam|AUS|1974}}→ [[Image:Template:Country flag IOC alias AUS|22x20px|border|Template:Country IOC alias AUS]] [[Template:Country IOC alias AUS at the 1974 British Commonwealth Games|Template:Country IOC alias AUS]] (AUS)
{{flagCGFteam|NZL|1962}}→ [[Image:Template:Country flag IOC alias NZL|22x20px|border|Template:Country IOC alias NZL]] [[Template:Country IOC alias NZL at the 1962 British Empire and Commonwealth Games|Template:Country IOC alias NZL]] (NZL)
{{flagCGFteam|IND|1934}}→ [[Image:Template:Country flag IOC alias IND|22x20px|border|Template:Country IOC alias IND]] [[Template:Country IOC alias IND at the 1934 British Empire Games|Template:Country IOC alias IND]] (IND)
flagSEAGFteam
{{flagSEAGFteam|VIE|1973}}→ [[Image:Template:Country flag IOC alias VIE|22x20px|border|Template:Country IOC alias VIE]] [[Template:Country IOC alias VIE at the 1973 Template:SEAGF year|Template:Country IOC alias VIE]] (VIE)
(Uses historical flag)
{{flagSEAGFteam|MAS|1961}}→ [[Image:Template:Country flag IOC alias MAS|22x20px|border|Template:Country IOC alias MAS]] [[Template:Country IOC alias MAS at the 1961 Template:SEAGF year|Template:Country IOC alias MAS]] (MAS)
{{flagSEAGFteam|MYA|2013}}→ [[Image:Template:Country flag IOC alias MYA|22x20px|border|Template:Country IOC alias MYA]] [[Template:Country IOC alias MYA at the 2013 Template:SEAGF year|Template:Country IOC alias MYA]] (MYA)
Supporting templates
- The country name is supplied by
{{country alias|AAA}}where AAA is an IOC country code. - The flag image name is also supplied by
{{country alias}}- For the complete country code list with related names and flags, see Module:Country alias
See also
| Output style → | Country name | Country (code) | Athlete (country) | Athlete Country |
Country code |
|---|---|---|---|---|---|
| Olympic Games | {{FlagIOC}} | {{FlagIOCteam}} | {{FlagIOCathlete}} | {{FlagIOCmedalist}} | {{FlagIOCshort}} |
| Other games | {{FlagIOC2}} | {{FlagIOC2team}} | {{FlagIOC2athlete}} | {{FlagIOC2medalist}} | {{FlagIOC2short}} |
| Paralympic Games | {{FlagIPC}} | {{FlagIPCteam}} | {{FlagIPCathlete}} | {{FlagIPCmedalist}} | {{FlagIPCshort}} |
| Pan American | {{FlagPASO}} | {{FlagPASOteam}} | {{FlagPASOathlete}} | {{FlagPASOmedalist}} | |
| Parapan American | {{FlagPPASO}} | ||||
| Commonwealth | {{FlagCGF}} | {{FlagCGFteam}} | {{FlagCGFathlete}} | {{FlagCGFmedalist}} | |
| Southeast Asian | {{FlagSEAGF}} | {{FlagSEAGFteam}} | {{FlagSEAGFathlete}} | {{FlagSEAGFmedalist}} | |
| World Games | {{FlagIWGA}} | ||||
| Central American and Caribbean Games | {{FlagCAC}} | ||||
| Asian Games | {{FlagOCA}} | ||||
| "Nation at Championships"-style | {{Flaglinkteam}} | {{FlagATHCHathlete}} | |||
| Generic | {{Flag}} | {{Flagteam}} | {{Flagathlete}} | {{Flagmedalist}} | |
| Generic (variant) | {{Flaglink}} | {{Flaglinkmedalist}} | |||
| The above documentation is transcluded from Template:FlagIOC2team/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |