Jump to content

Templet:Flagcountry/doc

Long Wikipedia

This is the documentation page for Templet:Flagcountry.
This page is not intended to be viewed directly. Links using variables may appear broken; do not replace these with w:en:hardcoded page names or URLs.

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

Country (mandatory)
Parameter 1 identifies the country by name or three-letter code (ISO 3166-1 alpha-3)
Name example: {{flagcountry|Pranis}} → Plak bilong Pranis Pranis
Country code example: {{flagcountry|FRA}} → Plak bilong Pranis Pranis
Variant flag image (optional)
Parameter 2 is used to display a different version of the flag.
Example: {{flagcountry|Pranis|free}} → Plak bilong Pranis Pranis. 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|Pranis|name=C'est la France}} → Plak bilong Pranis C'est la France
Size (optional)
Use the size= parameter to change the size from the default.
Example: {{flagcountry|Pranis|size=40px}} → Plak bilong Pranis Pranis.

Implementation

[edit source]

This template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:country data Pranis) and the formatter template:country flagcountry2, which contains the logic how to display the country data.

[edit source]

See also

[edit source]