Predloga:FlagIOC2
Videz
![]() | Uporablja Lua: |
This template family is used to display a small flag and name of a country, with a wikilink to the country's page for the specified multi-sport event.
Use {{FlagIOC2}} for the other games not listed below.
Uporaba
[uredi kodo]{{zastavaXXX|koda|igre|športniki}}
- koda is the three-letter country code used by the IOC, CGF, or FINA.
- igre is a string with slightly different forms depending on the template used:
- {{flagIOC2}} takes values in the form
<leto> <igre>
, or just<igre>
- {{flagIOC}} and {{flagIPC}} use
<leto> Poletne
,<leto> Zimske
, or justPoletne
orZimske
- Games-specific templates such as {{flagCGF}}, {{flagPASO}}, etc, simply take the
<leto>
. See below for a full list of supported "shortcut" templates
- {{flagIOC2}} takes values in the form
- 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 Games. It is an optional argument, and will render a small (#) after the nation's name.
Primeri
[uredi kodo]In addition to using historical flags when appropriate, the specific name of the games will be selected when appropriate.
flagIOC2
[uredi kodo]{{flagIOC2|CHN|Azijskih igrah}}
→Kitajska
{{flagIOC2|CHN|Azijskih igrah na plaži 2008}}
→Kitajska
{{flagIOC2|HKG|Azijskih igrah 1954}}
→Hong Kong (Uses historical flag)
{{flagIOC2|JPN|Azijskih dvoranskih igrah 2009|100}}
→Japonska (100)
flagIOC / flagIPC
[uredi kodo]-
{{flagIOC|SLO|olimpijskih igrah}}
→Slovenija
-
{{flagIOC|GER|Zimskih olimpijskih igrah}}
→Nemčija
-
{{flagIOC|SLO|Poletnih olimpijskih igrah 2004}}
→Slovenija
-
{{flagIOC|CAN|Zimskih olimpijskih igrah 2006}}
→Kanada
-
{{flagIOC|CAN|Zimskih olimpijskih igrah 1924}}
→Kanada (Uses historical flag)
-
{{flagIOC|GRE|Poletnih olimpijskih igrah 2004|441}}
→Grčija (441)
-
{{flagIPC|GRE|Poletnih olimpijskih igrah 2004|441}}
→ Predloga:FlagIPC
flagCGF
[uredi kodo]{{flagCGF|CAN}}
→ Predloga:FlagCGF{{flagCGF|MAS|2006}}
→ Predloga:FlagCGF{{flagCGF|AUS|1974}}
→ Predloga:FlagCGF{{flagCGF|NZL|1962}}
→ Predloga:FlagCGF{{flagCGF|IND|1934}}
→ Predloga:FlagCGF{{flagCGF|SCO|2010|191}}
→ Predloga:FlagCGF
flagSEAGF
[uredi kodo]{{flagSEAGF|VIE|1973}}
→ Predloga:FlagSEAGF (Uses historical flag){{flagSEAGF|MAS|1961}}
→ Predloga:FlagSEAGF{{flagSEAGF|MYA|2013}}
→ Predloga:FlagSEAGF{{flagSEAGF|VIE|2015|400}}
→ Predloga:FlagSEAGF
Drugi
[uredi kodo]{{flagOCA|CHN}}
→ Predloga:FlagOCA{{flagOCA|CHN|2010}}
→ Predloga:FlagOCA{{FlagPASO|COL|2011}}
→ Predloga:FlagPASO{{FlagPASO|BRA|2011|590}}
→ Predloga:FlagPASO{{flagCAC|MEX|2010}}
→ Predloga:FlagCAC{{flagIWGA|JPN|2017}}
→ Predloga:FlagIWGA
Supporting templates
[uredi kodo]- 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