Displays the flag of a country with an alt text "Flag of <देश नाम>" (the alt text is displayed if you hover the mouse over the flag image. It is also read by screen reader software).
The first parameter is mandatory and identifies the name of the country.
Examples:
Optional parameters:
Implementation[सम्पादन]
This template uses the data templates listed under श्रेणी:देश आँकड़े साँचे, which contain the data what to display (Example: साँचा:देश आँकड़े इटली) and the formatter साँचा:देश पताका प्रतिरूप २, which contains the logic how to display the country data.
- {{पताका प्रतिरूप|इटली}} = — uses साँचा:देश आँकड़े इटली
- {{पताका प्रतिरूप|ITA}} = — uses साँचा:देश आँकड़े ITA, which is a redirect to साँचा:देश आँकड़े इटली
Related templates[सम्पादन]
- साँचा:पताका is used to display a wikilinked name next to the flag. The displayed name will be the same as the parameter used with the template, but the link target will be the main article for the country (in these examples, Italy).
- Template:flagcountry is also used to display a wikilinked name next to the flag. The displayed name will always be the same, regardless of whether or not a country code alias is used as the template parameter.
- {{देश पताका|इटली}} = साँचा:साँचा
- {{देश पताका|ITA}} = साँचा:साँचा
See also[सम्पादन]