Template:Navy
{{country data {{{1}}}
| naval/core | variant = | size = | name =
}}
This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
Usage
Produces a flag icon attached to a wiki-linked "Template:Varserif National Navy" article, as appropriate for a given country.
- Syntax
{{navy|nation|variant}}
- Parameters
-
|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 thenaval
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
- Algeria
{{navy|Algeria}}
→ w:Algeria Navy
- Argentina
{{navy|Argentina}}
→ w:Argentina Navy{{navy|Argentina|coast guard}}
→ w:Argentina Navy
- Australia
{{navy|Australia|1913}}
→ Australia Navy{{navy|Australia}}
→ Australia Navy
- Belgium
{{navy|Belgium|state}}
→ w:Belgium Navy (1831-1950){{navy|Belgium}}
→ w:Belgium Navy
- Canada
{{navy|Canada}}
→ Royal Canadian Navy{{navy|Canada|1921}}
→ Royal Canadian Navy
- China
{{navy|Qing dynasty}}
→ Template:Country data Qing dynasty{{navy|CHN}}
→ Template:Country data CHN
- France
{{navy|Kingdom of France}}
→ Template:Country data Kingdom of France{{navy|France|naval-1790}}
→ w:France Navy (1790-94){{navy|France}}
→ w:France Navy{{navy|France}}
→ Marine Nationale{{navy|Free French}}
→ Template:Country data Free French
- Georgia
{{Navy|Georgia (country)}}
→ Template:Country data Georgia (country){{navy|Georgia (country)|coast guard}}
→ Template:Country data Georgia (country)
- Germany
{{Navy|German Empire}}
→ Template:Country data German Empire{{navy|Weimar Republic}}
→ Template:Country data Weimar Republic{{Navy|Nazi Germany}}
→ Template:Country data Nazi Germany{{navy|East Germany}}
→ w:East Germany Navy{{navy|DEU}}
→ w:Germany Navy{{navy|DEU}}
→ Deutsche Marine
- Iceland
{{navy|Iceland}}
→ w:Iceland Navy
- India
{{navy|British Raj}}
→ Template:Country data British Raj{{navy|India}}
→ w:India Navy
- Italy
{{navy|Kingdom of Italy}}
→ Template:Country data Kingdom of Italy{{navy|Italy}}
→ w:Italy Navy
- Japan
{{navy|Japan}}
→ w:Japan Navy{{navy|Empire of Japan}}
→ Template:Country data Empire of Japan
- Netherlands
{{navy|Netherlands}}
→ w:Netherlands Navy
- New Zealand
{{navy|New Zealand|1941}}
→ w:New Zealand Navy{{navy|New Zealand}}
→ w:New Zealand Navy
- Norway
{{navy|NOR}}
→ Template:Country data NOR
- Panama
{{navy|Panama|1958}}
→ w:Panama Navy{{navy|Panama|1984}}
→ w:Panama Navy{{navy|Panama}}
→ w:Panama Navy
- Russia/Soviet Union
{{navy|Russian Empire}}
→ Template:Country data Russian Empire{{navy|Soviet Union}}
→ w:Soviet Union Navy{{navy|Soviet Union|1935}}
→ w:Soviet Union Navy{{navy|Russia}}
→ w:Russia Navy
- South Africa
{{navy|South Africa|1922}}
→ South Africa (1922 to 1946){{navy|South Africa|1946}}
→ South Africa (1946 to 1952){{navy|South Africa|1952}}
→ South Africa (1952 to 1981){{navy|South Africa|1981}}
→ South Africa (1981 to 1994){{navy|South Africa}}
→ South Africa (since 1994)
- Spain
{{navy|Spain|1506}}
→ w:Spain Navy (1506 to 1701){{navy|Spain|1701}}
→ w:Spain Navy (1701 to 1748){{navy|Spain|1748}}
→ w:Spain Navy (1748 to 1785){{navy|Spain|1785}}
→ w:Spain Navy (1785 to 1873){{navy|Spain|1873}}
→ w:Spain Navy (1873 to 1931){{navy|Spanish Republic}}
→ Template:Country data Spanish Republic (1931 to 1938){{navy|Spain|1938}}
→ w:Spain Navy (1938 to 1945){{navy|Spain|1945}}
→ w:Spain Navy (1945 to 1977){{navy|Spain|1977}}
→ w:Spain Navy (1977 to 1981){{navy|Spain}}
→ w:Spain Navy (from 1981)
- Thailand
{{navy|Thailand|navy}}
→ w:Thailand Navy
- United Kingdom
{{navy|England}}
→ w:England Navy (16th century to 1706){{navy|Kingdom of Great Britain}}
→ Template:Country data Kingdom of Great Britain (1707-1800){{navy|United Kingdom}}
→ Royal Navy (since 1801){{navy|United Kingdom|RFA}}
→ Royal Fleet Auxiliary{{navy|United Kingdom|RMAS}}
→ Royal Maritime Auxiliary Service
- United States
{{navy|USA|navy}}
→ United States{{navy|USA|1912}}
→ United States{{coast guard|USA|coast guard}}
→ United States
Related templates
The {{flagicon}} template can be used to display the naval flag by itself, using the naval
variant as a template parameter:
{{flagicon|UK|naval}}
→{{flagicon|CHN|naval}}
→ Template:Country data CHN{{flagicon|Japan|naval}}
→{{flagicon|Nazi Germany|naval}}
→ Template:Country data Nazi Germany
Implementation notes
By default, this template shows the standard national flag for the selected country, following by a wikilink to "Template:Varserif 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
TemplateData for Navy
Produces a flag icon attached to a wiki-linked "Xxxx National Navy" article, as appropriate for a given country.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Nation | nation 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
| String | required |
Variant | variant 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.
| String | optional |
Size | size | Can be used to change the flag icon size | Unknown | optional |
Name | name | Can be used to change the wikilink display text | Unknown | optional |
See also
- Wikipedia:WikiProject Ships/Ensigns
- {{Naval}}
- {{Shipboxflag}}
- {{USN flag}}, providing U.S. Navy flags for any given year.