FANDOM



Template documentation

This is the documentation for Template:Country data Sri Lanka. It is automatically generated by Template:Country showdata

Template:Country data Sri Lanka is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others. For a more thorough discussion of the flag template system, including parameters not described here, please see Wikipedia:WikiProject Flag Template.

Please purge the cache after making any changes to this template.

Flag of Sri Lanka

Standard parameters

Parameter name Value Meaning
alias Sri Lanka Main article name (Sri Lanka)
flag alias Flag of Sri Lanka.svg Image name (Image:Flag of Sri Lanka.svg, shown above right)

Flag variants

LabelFlag image (40px)Image name
naval40pxNaval Ensign of Sri Lanka.svg

Naval ensign

This template includes a naval ensign flag variant that can be used with Template:Navy:

Redirect aliases

This template can also be used via an alias name (implemented as a redirect to this template):
Alias name{{flag|alias}} output{{flagcountry|alias}} output
LKA (view)Template:Country data LKATemplate:Country data LKA Template:Pp-template

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}} → Template loop detected: Template:Flagcountry
Country code example: {{flagcountry|FRA}} → Template loop detected: Template:Flagcountry
Variant flag image (optional)
Parameter 2 is used to display a different version of the flag.
Example: {{flagcountry|France|free}} → Template loop detected: Template:Flagcountry. 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}} → Template loop detected: Template:Flagcountry
Size (optional)
Use the size= parameter to change the size from the default.
Example: {{flagcountry|France|size=40px}} → Template loop detected: Template:Flagcountry.

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.

Related templates

See also

SRI (view)Template:Country data SRITemplate:Country data SRI Template:Pp-template

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}} → Template loop detected: Template:Flagcountry
Country code example: {{flagcountry|FRA}} → Template loop detected: Template:Flagcountry
Variant flag image (optional)
Parameter 2 is used to display a different version of the flag.
Example: {{flagcountry|France|free}} → Template loop detected: Template:Flagcountry. 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}} → Template loop detected: Template:Flagcountry
Size (optional)
Use the size= parameter to change the size from the default.
Example: {{flagcountry|France|size=40px}} → Template loop detected: Template:Flagcountry.

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.

Related templates

See also

Example usage

  • {{flag|Sri Lanka}}Flag of Sri Lanka Sri Lanka
  • {{flagicon|Sri Lanka}}Flag of Sri Lanka
Using a redirect alias
Template:Pp-template

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}} → Template loop detected: Template:Flagcountry
Country code example: {{flagcountry|FRA}} → Template loop detected: Template:Flagcountry
Variant flag image (optional)
Parameter 2 is used to display a different version of the flag.
Example: {{flagcountry|France|free}} → Template loop detected: Template:Flagcountry. 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}} → Template loop detected: Template:Flagcountry
Size (optional)
Use the size= parameter to change the size from the default.
Example: {{flagcountry|France|size=40px}} → Template loop detected: Template:Flagcountry.

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.

Related templates

See also

Related templates

Please see the following related country_data templates:


Community content is available under CC-BY-SA unless otherwise noted.