Template:FlagCGF/doc
< Template:FlagCGF
Jump to navigation
Jump to search
Revision as of 17:54, 19 December 2016 by imported>Primefac (→Supporting templates: IOC->CGF)
| This is a documentation subpage for Template:FlagCGF. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{flagCGF|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 Commonwealth Games games.
- code is a Commonwealth Games Federation three letter country code (see List of CGF country codes). This must be written in CAPS.
- games is the year expressed in the format yyyy. WikiProject Multi-sport events has created a full set of pages of the form "<country> at the <year> Commonwealth Games" and the intent is that this template can be used from medal tables and event result tables to point to the right country page. This will also give the correct name of the games. e.g. 1930 to 1950: British Empire Games, 1954 to 1966: British Empire and Commonwealth Games, 1970 and 1974: British Commonwealth Games, 1978 onwards: Commonwealth Games. 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 Commonwealth Games. It is an optional argument, and will render a small (#) after the nation's name.
Examples
{{flagCGF|CAN}}→
Canada{{flagCGF|MAS|2006}}→ 22x20px Malaysia{{flagCGF|AUS|1974}}→
Australia{{flagCGF|NZL|1962}}→
New Zealand{{flagCGF|IND|1934}}→
India{{flagCGF|SCO|2010|191}}→ File:Flag of Scotland.svg Scotland (191)
Supporting templates
- The country name is supplied by
{{country alias|AAA}}where AAA is an CGF 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}} | |||