साँचा:Flagcountry/doc

विकिपीडिया, एक मुक्त ज्ञानकोष से

This is the template documentation page for साँचा:Flagcountry.

This page is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.

Displays the flag and the name of a country, linked to the main article of that country (flag + country).

The first parameter is mandatory and identifies the name of the country.

Examples:

  • {{flagcountry|France}} = साँचा:Country data France
  • {{flagcountry|FRA}} = साँचा:Country data FRA

Optional parameters:

  • {{flagcountry|France|size=40px}} = साँचा:Country data France — to use a non-default flag size
  • {{flagcountry|France|name=C'est la France}} = साँचा:Country data France — to produce a non-default link-text
  • {{flagcountry|France|free}} = साँचा:Country data France — 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.

  • {{flagcountry|France}} = साँचा:Country data France — uses template:country data France
  • {{flagcountry|FRA}} = साँचा:Country data FRA — uses template:country data FRA, which is a redirect to template:country data France

[संपादित करें] Related templates

  • template:flagicon — to display the flag alone
    • {{flagicon|France}} = साँचा:Country data France
    • {{flagicon|FRA}} = साँचा:Country data FRA
  • template:flag — similar to flagcountry, but uses the input parameter as the display text for the link
    • {{flag|France}} = साँचा:Flag
    • {{flag|FRA}} = साँचा:Flag

[संपादित करें] See also