Format:Drapelțară/doc
Aceasta este pagina de documentație pentru Format:Drapelțară. Pagina descrie modul de folosire al formatului și conține categoriile de care acesta aparține, precum și orice altceva ce nu face parte din formatul propriu-zis. |
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|France|size=40px}} = Franța — to use a non-default flag size
- {{flagcountry|France|name=C'est la France}} = C'est la France — to produce a non-default link-text
- {{flagcountry|France|free}} = Franța — 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
modificareThis template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:country data France) and the formatter template:country flagcountry2, which contains the logic how to display the country data.
- {{flagcountry|France}} = Franța — uses template:country data France
- {{flagcountry|FRA}} = Franța — uses template:country data FRA, which is a redirect to template:country data France
Related templates
modificare- 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
modificare