Template:Flagicon

From OpenStreetMap Wiki
Jump to: navigation, search
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

To display the flag of a country or territory along with its name linked to a relevant page:

  • First parameter (mandatory): name of the country for the flag icon itself, also used by default as the target page name to link, and the country name to display. Some flag icons use a leading article which must be specified here, even if it is not displayed in the link, so in that case you must specify the following optional parameters.
  • Second parameter (optional): alternative name for the target page name of the country. Otherwise use the same name as set in the first parameter. May be needed to show a completely different place name that has no icon by otself but reuses the same flag of a parent country or territory (specified in the first parameter).
  • Third parameter (optional): alternative name to display for the country (may be needed for formatting, or for additional precisions to display) Otherwise use the same name as set in the second parameter, or in the first parameter if the second parameter is not set. This parameter may contain formatting options (but not links), and may need to be numbered explicitly if the specified value includes an equal sign (see the second example below).

Examples

{{Flag|the United States|United States|United States of America}}

The code above should return: Flag of United States United States of America

{{Flag|Finland|Åland Islands|3=Åland Islands <small>(Finland)</small>}}

The code above should return: Flag of Åland Islands Åland Islands (Finland)

{{Flag|Quebec|Québec}}

The code above should return: Flag of Québec Québec

{{Flag|Quebec}}

The code above should return: Flag of Quebec Quebec

See also