সাঁচ:Flagcountry/doc
অৱয়ব
এয়া হৈছে ‘সাঁচ:Flagcountry’ শীৰ্ষক সাঁচটোৰ নথিকৰণৰ উপপৃষ্ঠা। ইয়াত সাঁচটো ব্যৱহাৰৰ তথ্য, শ্ৰেণীসমূহ, আন্তঃৱিকি সংযোগবোৰ আৰু অন্য সমল থাকে, যিবোৰ মূল সাঁচ পৃষ্ঠাটোৰ অংশ নহয়। |
This template displays the flag and the name of a country, linked to the main article of that country (flag + country).
Usage
[সম্পাদনা কৰক]- Country (mandatory)
- Parameter 1 identifies the country by name or three-letter code (ISO 3166-1 alpha-3)
- Name example: {{flagcountry|France}} → ফ্ৰান্স
- Country code example: {{flagcountry|FRA}} → ফ্ৰান্স
- Variant flag image (optional)
- Parameter 2 is used to display a different version of the flag.
- Example: {{flagcountry|France|free}} → ফ্ৰান্স. 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.
- Link text (optional)
- Use the name= parameter to change the link text.
- Example: {{flagcountry|France|name=C'est la France}} → C'est la France
- Size (optional)
- Use the size= parameter to change the size from the default.
- Example: {{flagcountry|France|size=40px}} → ফ্ৰান্স.
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.
- {{flagcountry|France}} = ফ্ৰান্স — uses template:country data France
- {{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
- template:flag — similar to flagcountry, but uses the input parameter as the display text for the link
See also
[সম্পাদনা কৰক]