साँचा:पताका प्रतिरूप/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 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).
- {{पताका|इटली}} = साँचा:flag/core
- {{पताका|ITA}} = साँचा:flag/core
- 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