This high-risk template has been protected from editing to prevent vandalism. (protection log).
Please discuss changes on the talk page or request unprotection. You may use {{editprotected}} on the talk page to ask for an administrator to make an edit for you.

Template documentation

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

Template:Country data Canada 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 Canada.svg.png

Standard parameters

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

Flag variants

LabelFlag image (40px)Image name
1868Flag of Canada-1868-Red.pngFlag of Canada-1868-Red.png
1921Canadian Red Ensign 1921.pngCanadian Red Ensign 1921.png
1957Canadian Red Ensign.pngCanadian Red Ensign.png
naval-1921Canadian Blue Ensign 1921.pngCanadian Blue Ensign 1921.png
naval-1957Canadian Blue Ensign.pngCanadian Blue Ensign.png
air force-1924Ensign of the Royal Canadian Air Force.pngEnsign of the Royal Canadian Air Force.png
navalNaval Jack of Canada.pngNaval Jack of Canada.png
air forceCanadian Air Command flag.pngCanadian Air Command flag.png

Naval ensign

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

Air force ensign

This template includes an air force ensign flag variant that can be used with Template:Air force:

  • {{air force|Canada}}


{{air force|nation|variant|size=optional|name=optional}}

Produces a flag icon attached to a wikilinked national air force article.

  • nation — Use either the name of the nation or the three-letter ISO 3166-1 alpha-3 country code
  • variant (optional) — Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates. Note that the standard behaviour of this template is to use the air force variant if present, so there is no need to specify this variant in the template call.
  • size (optional) — Can be used to change the flag icon size
  • name (optional) — Can be used to change the wikilink display text


Other related templates

The {{flagicon}} template can be used to display the air force flag by itself, using the air force variant as a template parameter:

  • {{flagicon|UK|air force}}Flag of the United Kingdom

Implementation notes

By default, this template shows the standard national flag for the selected country, following by a wikilink to "Country Air Force". Both of these items can be changed by adding specific parameters to the appropriate country_data template (complete set found in Category:Country data templates).

To use a different flag, such as the air force ensign for the nation, use:

flag alias-air force = image name of air force ensign

To use a different name for the wikilinked air force article, use:

link alias-air force = article name

  • {{flagicon|Canada|air force}}Flag of Canada

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
CAN (view)Flag of Canada CANFlag of Canada Canada

Example usage

  • {{flag|Canada}}Flag of Canada Canada
  • {{flagicon|Canada}}Flag of Canada
Using a flag variant
  • {{flag|Canada|1868}}Flag of Canada Canada
  • {{flagicon|Canada|1868}}Flag of Canada
Using a redirect alias
  • {{flagicon|CAN}}Flag of Canada
  • {{flagcountry|CAN}}Flag of Canada Canada
  • {{flag|CAN}}Flag of Canada CAN

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