साँचा:Flagcountry/doc
{{
साँचा:namespace detect
| type = notice
| image =
| imageright =
| class =
| style = margin-bottom:1.0em;
| textstyle =
| text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
साँचा:mbox
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:
- {{flagcountry|फ्रांस}} = साँचा:flagcountry
- {{flagcountry|FRA}} = साँचा:flagcountry
Optional parameters:
- {{flagcountry|फ्रांस|size=40px}} = साँचा:flagcountry — to use a non-default flag size
- {{flagcountry|फ्रांस|name=C'est la France}} = साँचा:flagcountry — to produce a non-default link-text
- {{flagcountry|फ्रांस|free}} = साँचा:flagcountry — 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
This template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:देश आँकड़े फ्रांस) and the formatter template:country flagcountry2, which contains the logic how to display the देश आँकड़े.
- {{flagcountry|फ्रांस}} = साँचा:flagcountry — uses template:देश आँकड़े फ्रांस
- {{flagcountry|FRA}} = साँचा:flagcountry — uses template:देश आँकड़े FRA, which is a redirect to template:देश आँकड़े फ्रांस
Related templates
- template:flagicon — to display the flag alone
- {{flagicon|फ्रांस}} = साँचा:flagicon
- {{flagicon|FRA}} = साँचा:flagicon
- template:flag — similar to flagcountry, but uses the input parameter as the display text for the link
- {{flag|फ्रांस}} = साँचा:flag
- {{flag|FRA}} = साँचा:flag
See also