Template:FlagIOC-rt/doc
Appearance
This is a documentation subpage for Template:FlagIOC-rt. It may contain usage information, categories and other content that is not part of the original template page. |
This template is almost identical to {{Flag IOC}}, but it aligns the resulting text and flag to the right for use within sports results templates. Intended use mainly for the Youth Olympic Games where linking to a national sports team would be inappropriate due to the age group difference.
Usage
[edit]{{flagIOC-rt|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 justSummer
orWinter
. 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
[edit]{{flagIOC-rt|USA}}
→ United States{{flagIOC-rt|GER|Winter}}
→ Germany{{flagIOC-rt|ESP|2004 Summer}}
→ Spain{{flagIOC-rt|CHN|2006 Winter}}
→ China{{flagIOC-rt|CAN|1924 Winter}}
→ Canada{{flagIOC-rt|GRE|2004 Summer|441}}
→ Greece (441){{flagIOC-rt|SIN|2010 Summer Youth|136}}
→ Singapore (136){{flagIOC-rt|POR||125}}
→ Portugal (125)