قالب:علم بلد
من ويكيبيديا، الموسوعة الحرة
[[ملف:{{{اسم علم}}}|22x20px|border|علم {{{اسم بلد}}}]] [[{{{اسم بلد}}}|{{{اسم بلد}}}]]
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}} → [[ملف:{{{اسم علم-free}}}|22x20px|border|علم فرنسا]] فرنسا. 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}} →
فرنسا
- 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: قالب:country data France) and the formatter قالب:country flagcountry2, which contains the logic how to display the country data.
- {{flagcountry|France}} =
فرنسا — uses قالب:country data France - {{flagcountry|FRA}} =
فرنسا — uses قالب:country data FRA, which is a redirect to قالب:country data France
[عدل] Related templates
- قالب:flagicon — to display the flag alone
- قالب:flag — similar to flagcountry, but uses the input parameter as the display text for the link
[عدل] See also
| التوثيق أعلاه مضمن من قالب:علم بلد/شرح. (عدل | تاريخ) يمكن لك أن تجرب أي تغيير في القالب في الملعب (أنشئ) ثم تختبر استعماله في المختبر (أنشئ). تفضل بإضافة التصانيف ووصلات الإنترويكي إلى صفحة /شرح الفرعية. صفحات القالب الفرعية. |