Usage

edit

Produces a flag icon attached to a wiki-linked "Xxxx National Navy" article, as appropriate for a given country.

Syntax

edit
{{navy|nation|variant|size=optional|name=optional}}

Parameters

edit
  • |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) naval 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 naval 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.

Examples

edit

Algeria

edit

Argentina

edit

Australia

edit

Belgium

edit

Canada

edit

China

edit

France

edit

Georgia

edit

Germany

edit

Iceland

edit

India

edit

Italy

edit

Japan

edit

Netherlands

edit

New Zealand

edit

Norway

edit

Panama

edit

Russia / Soviet Union

edit
  • {{navy|Russian Empire}} Imperial Russian Navy (1712 to 1917)
  • {{navy|Russian Republic}} Russian Navy (1917 to 1918)
  • {{navy|Soviet Russia|naval-1918}} Red Fleet (1918 to 1920)
  • {{navy|Soviet Russia}} Red Fleet (1920 to 1923)
  • {{navy|Soviet Union|naval-1924}} Soviet Navy (1923 to 1935)
  • {{navy|Soviet Union|naval-1935}} Soviet Navy (1935 to 1950)
  • {{navy|Soviet Union}} Soviet Navy (1950 to 1992)
  • {{navy|Russia|navy-1992}} Russian Navy (1992 to 2000)
  • {{navy|Russia}} Russian Navy (since January 1, 2001)

South Africa

edit

Spain

edit

Thailand

edit

United Kingdom

edit

United States

edit
edit

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

  • {{flagicon|UK|naval}}United Kingdom
  • {{flagicon|CHN|naval}}China
  • {{flagicon|Japan|naval}}Japan
  • {{flagicon|Nazi Germany|naval}}Nazi Germany

Implementation notes

edit

By default, this template shows the standard national flag for the selected country, following by a wikilink to "Country Navy". 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 naval ensign for the nation, use:

|flag alias-naval=image name of naval ensign

To use a different name for the wikilinked navy article, use:

|link alias-naval=article name

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Navy in articles based on its TemplateData.

TemplateData for Navy

Produces a flag icon attached to a wiki-linked "Xxxx National Navy" article, as appropriate for a given country.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Nationnation 1

The name of the nation or the three-letter ISO 3166-1 alpha-3 country code of the nation to which the navy in question belongs

Example
USA
Stringrequired
Variantvariant 2

Specifies an alternate (historical) naval 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 naval variant if present, so there is no need to specify this variant in the template call.

Example
coast guard
Stringoptional
Sizesize

Can be used to change the flag icon size

Unknownoptional
Namename

Can be used to change the wikilink display text

Unknownoptional

See also

edit