Difference between revisions of "Template:FlagIOCteam/doc"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
imported>Primefac
m (unnecessary, redir to main)
 
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:FlagIOC2team/doc]]
 
 
== Usage ==
 
<code><nowiki>{{flagIOCteam|code|games}}</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 Olympic games.
 
 
 
* ''code'' is an [[International Olympic Committee]] country code (see [[List of IOC country codes]]).
 
* ''games'' is a string of the form <tt><year> Summer</tt>, <tt><year> Winter</tt>, or just <tt>Summer</tt> or <tt>Winter</tt>.  [[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.
 
 
 
== Examples ==
 
* <code><nowiki>{{flagIOCteam|USA}}</nowiki></code> → {{flagIOCteam|USA}}
 
* <code><nowiki>{{flagIOCteam|GER|Winter}}</nowiki></code> → {{flagIOCteam|GER|Winter}}
 
* <code><nowiki>{{flagIOCteam|ESP|1992 Summer}}</nowiki></code> → {{flagIOCteam|ESP|1992 Summer}}
 
* <code><nowiki>{{flagIOCteam|CHN|2008 Summer}}</nowiki></code> → {{flagIOCteam|CHN|2008 Summer}}
 
* <code><nowiki>{{flagIOCteam|CAN|1924 Winter}}</nowiki></code> → {{flagIOCteam|CAN|1924 Winter}}
 
 
 
== Supporting templates ==
 
* The country name is supplied by {{tlx|country alias|''AAA''}} where AAA is an [[IOC 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:Olympics flag templates]]
 
 
 
</includeonly>
 

Latest revision as of 20:03, 25 December 2018