Module:Country alias/doc
This Lua module is used on a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes to this module should first be tested in its /sandbox or /testcases subpages. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This module implements {{country alias}} and the {{flagIOC2}} family of templates. Check there for usage documentation.
- Module:Country alias • Module:Country alias/sandbox • different (diff)
- Module:Country alias/data • Module:Country alias/data/sandbox • different (diff)
Usage
සංස්කරණයTemplate:Country alias
සංස්කරණයThis module is used by {{country alias}} to return either the country name or the country's flag, based on a combination of the three-letter country code (required), the year (optional), and the competition being played (optional).
{{#invoke:Country alias|main|alias=|flag=|games=|year=}}
Template:FlagIOC
සංස්කරණයThis module is used by {{flagIOC}} to return a formatted country flag, country name, and the number of athletes present (optional) at a given edition of the Olympic Games.
{{#invoke:Country alias|flagIOC|alias=|flag=|games=|year=|athletes=}}
Template:FlagIOC2 and variants
සංස්කරණයThis module is used by the {{flagIOC2}} family of templates (except flagIOC, described above) to return various formatted combinations of country flag, country name, the number of athletes present and/or names of athletes present at a given Games.
{{#invoke:Country alias|flagXYZ|alias=|flag=|games=|year=|athletes=|type=}}