Citakan:Flagcountry/doc
Ieu téh sub kaca dokuméntasi pikeun Citakan:Flagcountry. Ngandung informasi pamakéan, katégori katut eusi lianna nu lain mangrupa bagéan tina kaca citakan nu asli. |
Displays the flag and the name of a country, linked to the main article of that country (flag + country).
The first parameter is mandatory and identifies the name of the country.
Examples:
Optional parameters:
- {{flagcountry|Prancis|size=40px}} = Prancis — to use a non-default flag size
- {{flagcountry|Prancis|name=C'est la France}} = C'est la France — to produce a non-default link-text
- {{flagcountry|Prancis|free}} = [[Image:{{{flag alias-free}}}|22x20px|border|Flag of Prancis]] Prancis — to use a flag variant. In this example, the historical flag for Free France (1940-1945) is identified by the second parameter of "free". The list of flag variants is specific for each country.
Implementation
éditThis template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:cData nagara Prancis) and the formatter template:country flagcountry2, which contains the logic how to display the country data.
- {{flagcountry|Prancis}} = Prancis — uses citakan:Data nagara Prancis
- {{flagcountry|FRA}} = Prancis — uses template:country data FRA, which is a redirect to citakan:Data nagara Prancis
Related templates
édit- template:flagicon — to display the flag alone
- template:flag — similar to flagcountry, but uses the input parameter as the display text for the link
See also
édit