Difference between revisions of "Template:FlagCGF/doc"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
imported>Primefac
(centralize)
 
Line 1: Line 1:
{{documentation subpage}}
+
#REDIRECT [[Template:FlagIOC2/doc]]
 
 
== Usage ==
 
<code><nowiki>{{flagCGF|code|games|athletes}}</nowiki></code>
 
 
 
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. [[Wikipedia:WikiProject Multi-sport events|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 <small>(#)</small> after the nation's name. 
 
 
 
== Examples ==
 
* <code><nowiki>{{flagCGF|CAN}}</nowiki></code> → {{flagCGF|CAN}}
 
* <code><nowiki>{{flagCGF|MAS|2006}}</nowiki></code> → {{flagCGF|MAS|2006}}
 
* <code><nowiki>{{flagCGF|AUS|1974}}</nowiki></code> → {{flagCGF|AUS|1974}}
 
* <code><nowiki>{{flagCGF|NZL|1962}}</nowiki></code> → {{flagCGF|NZL|1962}}
 
* <code><nowiki>{{flagCGF|IND|1934}}</nowiki></code> → {{flagCGF|IND|1934}}
 
* <code><nowiki>{{flagCGF|SCO|2010|191}}</nowiki></code> → {{flagCGF|SCO|2010|191}}
 
 
 
== Supporting templates ==
 
* The country name is supplied by {{tlx|country alias|''AAA''}} where AAA is an [[CGF country code]].
 
* 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]]
 
 
 
== See also ==
 
{{Flag templates}}
 
 
 
<includeonly>
 
[[Category:Commonwealth Games flag templates]]
 
 
 
</includeonly>
 

Latest revision as of 03:07, 25 December 2018