"साँचा:Flagcountry/doc": अवतरणों में अंतर

New page: <includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> Displays the f...
 
No edit summary
पंक्ति 6:
 
Examples:
* <nowiki>{{flagcountry|Franceफ्रांस}}</nowiki> = {{flagcountry|Franceफ्रांस}}
* <nowiki>{{flagcountry|FRA}}</nowiki> = {{flagcountry|FRA}}
 
Optional parameters:
* <nowiki>{{flagcountry|Franceफ्रांस|size=40px}}</nowiki> = {{flagcountry|Franceफ्रांस|size=40px}} — to use a non-default flag size
* <nowiki>{{flagcountry|Franceफ्रांस|name=C'est la France}}</nowiki> = {{flagcountry|Franceफ्रांस|name=C'est la France}} — to produce a non-default link-text
* <nowiki>{{flagcountry|Franceफ्रांस|free}}</nowiki> = {{flagcountry|Franceफ्रांस|free}} — 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:countryदेश dataआँकड़े Franceफ्रांस]]) and the formatter [[template:country flagcountry2]], which contains the logic '''how''' to display the countryदेश dataआँकड़े.
 
* <nowiki>{{flagcountry|Franceफ्रांस}}</nowiki> = {{flagcountry|Franceफ्रांस}} — uses [[template:countryदेश dataआँकड़े Franceफ्रांस]]
* <nowiki>{{flagcountry|FRA}}</nowiki> = {{flagcountry|FRA}} — uses [[template:countryदेश dataआँकड़े FRA]], which is a redirect to [[template:countryदेश dataआँकड़े Franceफ्रांस]]
 
=== Related templates ===
* [[template:flagicon]] — to display the flag alone
** <nowiki>{{flagicon|Franceफ्रांस}}</nowiki> = {{flagicon|Franceफ्रांस}}
** <nowiki>{{flagicon|FRA}}</nowiki> = {{flagicon|FRA}}
* [[template:flag]] — similar to [[template:flagcountry|flagcountry]], but uses the input parameter as the display text for the link
** <nowiki>{{flag|Franceफ्रांस}}</nowiki> = {{flag|Franceफ्रांस}}
** <nowiki>{{flag|FRA}}</nowiki> = {{flag|FRA}}