Difference between revisions of "Template:FlagIOC/doc"
Jump to navigation
Jump to search
imported>Primefac (→Supporting templates: update doc) |
imported>Primefac |
||
| Line 22: | Line 22: | ||
* The flag image name is also supplied by {{tlc|country alias}} | * The flag image name is also supplied by {{tlc|country alias}} | ||
** For the complete country code list with related names and flags, see [[Module:Country alias]] | ** For the complete country code list with related names and flags, see [[Module:Country alias]] | ||
| + | *If only the country code is desired, use {{t|FlagIOCshort}} | ||
== See also == | == See also == | ||
Revision as of 15:24, 9 January 2018
| This is a documentation subpage for Template:FlagIOC. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{flagIOC|code|games|athletes}}
This template is used to display a small flag and name of a country, with a wikilink to the country's page for the specified Olympic games.
- code is an International Olympic Committee country code (see List of IOC country codes).
- games is a string of the form <year> Summer, <year> Winter, or just Summer or Winter. Wikipedia:WikiProject Olympics has created a full set of pages of the form "<country> at the <year> <Summer/Winter> Olympics" and 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.
- athletes is the number of athletes that the nation contributed to the specific Olympics. It is an optional argument, and will render a small (#) after the nation's name.
Examples
{{flagIOC|USA}}→
United States{{flagIOC|GER|Winter}}→
Germany{{flagIOC|ESP|2004 Summer}}→
Spain{{flagIOC|CHN|2006 Winter}}→
China{{flagIOC|CAN|1924 Winter}}→
Canada{{flagIOC|GRE|2004 Summer|441}}→
Greece (441)
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
- If only the country code is desired, use Template:T
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}} | |||