ទំព័រគំរូ:FlagIOCteam/doc
This is a documentation subpage for ទំព័រគំរូ:FlagIOCteam. It may contain usage information, categories and other content that is not part of the original ទំព័រគំរូ page. |
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}}
→ សហរដ្ឋអាមេរិក (USA){{flagIOCteam|GER|Winter}}
→ [[File:ទំព័រគំរូ:Country flag IOC alias GER|22x20px|border|alt=|link=|ទំព័រគំរូ:Country IOC alias GER]] [[ទំព័រគំរូ:Country IOC alias GER នៅព្រឹត្តិការណ៍ប្រកួតកីឡាអូឡាំពិកលើកទីWinter|ទំព័រគំរូ:Country IOC alias GER]] (GER){{flagIOCteam|ESP|1992 Summer}}
→ [[File:ទំព័រគំរូ:Country flag IOC alias ESP|22x20px|border|alt=|link=|ទំព័រគំរូ:Country IOC alias ESP]] [[ទំព័រគំរូ:Country IOC alias ESP នៅព្រឹត្តិការណ៍ប្រកួតកីឡាអូឡាំពិកលើកទី1992 Summer|ទំព័រគំរូ:Country IOC alias ESP]] (ESP){{flagIOCteam|CHN|2008 Summer}}
→ [[File:ទំព័រគំរូ:Country flag IOC alias CHN|22x20px|border|alt=|link=|China]] China (CHN){{flagIOCteam|CAN|1924 Winter}}
→ [[File:ទំព័រគំរូ:Country flag IOC alias CAN|22x20px|border|alt=|link=|ទំព័រគំរូ:Country IOC alias CAN]] [[ទំព័រគំរូ:Country IOC alias CAN នៅព្រឹត្តិការណ៍ប្រកួតកីឡាអូឡាំពិកលើកទី1924 Winter|ទំព័រគំរូ:Country IOC alias CAN]] (CAN)