الفرق بين النسختين بتاع: «قالب:FlagIOCteam»
تم حذف المحتوى تمت إضافة المحتوى
remove any leading or trailing spaces from unnamed 1st parameter to prevent ( ABC), (ABC ), etc. - tested with /sandbox and /testcases |
(لا فرق)
|
تعديلات من 22:10، 9 يناير 2016
[[File:{{country_flag_IOC_alias_{{{1}}}|}}|22x20px|border|alt=|link=|{{country_IOC_alias_{{{1}}}|}}]] [[{{country_IOC_alias_{{{1}}}|}} at the Olympics|{{country_IOC_alias_{{{1}}}|}}]] ({{{1}}})
Usage
{{flagIOCteam|code|games}}
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 just Summer or Winter. 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
{{flagIOCteam|USA}}
→ [[File:Flag of the United States.svg|22x20px|border|alt=|link=|United States]] United States (USA){{flagIOCteam|GER|Winter}}
→ [[File:Flag of Germany.svg|22x20px|border|alt=|link=|Germany]] Germany (GER){{flagIOCteam|ESP|1992 Summer}}
→ [[File:Flag of Spain.svg|22x20px|border|alt=|link=|Spain]] Spain (ESP){{flagIOCteam|CHN|2008 Summer}}
→ [[File:Flag of the People's Republic of China.svg|22x20px|border|alt=|link=|الصين]] الصين (CHN){{flagIOCteam|CAN|1924 Winter}}
→ [[File:Canadian Red Ensign 1921-1957.svg|22x20px|border|alt=|link=|Canada]] Canada (CAN)
Supporting templates
- The flag image name is supplied by
Template:Country flag IOC alias AAA
where AAA is an IOC country code.- For a complete list, see Special:PrefixIndex/Template:Country flag IOC alias
- Also see Category:Country flag IOC alias templates (19 pages)
- The country name is supplied by
Template:Country IOC alias AAA
where AAA is an IOC country code.- For a complete list, see Special:PrefixIndex/Template:Country IOC alias
- Also see Category:International Olympic Committee country alias templates (14 pages)
See also
Output style → | Country name | Country Name (code) | Athlete (country code) | Athlete Country Name |
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}} | ||||
European Games | {{FlagEOC}} | ||||
African Games | {{FlagAFOC}} | ||||
Mediterranean Games | {{FlagCIJM}} | ||||
Summer Universiade | {{FlagFISU}} | ||||
"Nation at Championships"-style | {{Flaglinkteam}} | ||||
Generic | {{Flag}} | {{Flagteam}} | {{Flagathlete}} | {{Flagmedalist}} | |
Generic (variant) | {{Flaglink}} | {{Flaglinkathlete}} | {{Flaglinkmedalist}} | ||