Module:Country alias/doc
This is the documentation page for Module:Country alias
This Lua module is used on approximately 52,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module implements Ta̱mpi̱let:T and the Ta̱mpi̱let:T 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 • does not exist
Usage
[jhyuk a̱tyin ka]Template:Country alias
[jhyuk a̱tyin ka]This module is used by Ta̱mpi̱let:T 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
[jhyuk a̱tyin ka]This module is used by Ta̱mpi̱let:T 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
[jhyuk a̱tyin ka]This module is used by the Ta̱mpi̱let:T 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=}}