Template:Navy/doc
| This is a documentation subpage for Template:Navy. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
Produces a flag icon attached to a wiki-linked "Xxxx 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 thenavalvariant 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}}→Algerian National Navy
- Argentina
{{navy|Argentina}}→Argentine Navy
{{navy|Argentina|coast guard}}→Argentine Navy
- Australia
{{navy|Australia|1913}}→Royal Australian Navy
{{navy|Australia}}→Royal Australian Navy
- Belgium
{{navy|Belgium|state}}→Belgian Navy (1831-1950)
{{navy|Belgium}}→Belgian Navy
- Canada
{{navy|Canada}}→Royal Canadian Navy
{{navy|Canada|1921}}→ Error creating thumbnail: Royal Canadian Navy
- China
{{navy|Qing dynasty}}→ Error creating thumbnail: Imperial Chinese Navy{{navy|CHN}}→People's Liberation Army Navy
- France
{{navy|Kingdom of France}}→French Navy
{{navy|France|naval-1790}}→ Error creating thumbnail: French Navy (1790-94){{navy|France}}→ Error creating thumbnail: French Navy{{navy|France}}→ Error creating thumbnail: Marine Nationale{{navy|Free French}}→ Error creating thumbnail: Free French Naval Forces
- Georgia
{{Navy|Georgia}}→ Error creating thumbnail: Border Police of Georgia{{navy|Georgia|coast guard}}→ Error creating thumbnail: Border Police of Georgia
- Germany
{{Navy|German Empire}}→ Error creating thumbnail: Imperial German Navy{{navy|Weimar Republic}}→Reichsmarine
{{Navy|Nazi Germany}}→ Error creating thumbnail: Kriegsmarine{{navy|East Germany}}→ Error creating thumbnail: Volksmarine{{navy|DEU}}→ Error creating thumbnail: German Navy{{navy|DEU}}→ Error creating thumbnail: Deutsche Marine
- Iceland
{{navy|Iceland}}→ Error creating thumbnail: Icelandic Coast Guard
- India
{{navy|British Raj}}→ Error creating thumbnail: Royal Indian Navy{{navy|India}}→ Error creating thumbnail: Indian Navy
- Italy
{{navy|Kingdom of Italy}}→ Error creating thumbnail: Regia Marina{{navy|Italy}}→ Error creating thumbnail: Italian Navy
- Japan
{{navy|Japan}}→Japan Maritime Self-Defense Force
{{navy|Empire of Japan}}→ Error creating thumbnail: Imperial Japanese Navy
- Netherlands
{{navy|Netherlands}}→ Error creating thumbnail: Royal Netherlands Navy
- New Zealand
{{navy|New Zealand|1941}}→Royal New Zealand Navy
{{navy|New Zealand}}→Royal New Zealand Navy
- Norway
{{navy|NOR}}→ Error creating thumbnail: Royal Norwegian Navy
- Panama
{{navy|Panama|1958}}→ Error creating thumbnail: Panamanian National Guard{{navy|Panama|1984}}→ Error creating thumbnail: Panamanian Defense Forces{{navy|Panama}}→ Error creating thumbnail: Panamanian Public Forces
- Russia/Soviet Union
{{navy|Russian Empire}}→ Error creating thumbnail: Imperial Russian Navy{{navy|Soviet Union}}→ Error creating thumbnail: Soviet Navy{{navy|Soviet Union|1935}}→ Error creating thumbnail: Soviet Navy{{navy|Russia}}→ Error creating thumbnail: Russian Navy
- South Africa
{{navy|South Africa|1922}}→ Error creating thumbnail: South African Navy (1922 to 1946){{navy|South Africa|1946}}→ Error creating thumbnail: South African Navy (1946 to 1952){{navy|South Africa|1952}}→ Error creating thumbnail: South African Navy (1952 to 1981){{navy|South Africa|1981}}→ Error creating thumbnail: South African Navy (1981 to 1994){{navy|South Africa}}→ Error creating thumbnail: South African Navy (since 1994)
- Spain
{{navy|Spain|1506}}→ Error creating thumbnail: Spanish Navy (1506 to 1701){{navy|Spain|1701}}→ Error creating thumbnail: Spanish Navy (1701 to 1748){{navy|Spain|1748}}→ Error creating thumbnail: Spanish Navy (1748 to 1785){{navy|Spain|1785}}→ Error creating thumbnail: Spanish Navy (1785 to 1873){{navy|Spain|1873}}→ Error creating thumbnail: Spanish Navy (1873 to 1931){{navy|Spanish Republic}}→ Error creating thumbnail: Spanish Republican Navy (1931 to 1938){{navy|Spain|1938}}→ Error creating thumbnail: Spanish Navy (1938 to 1945){{navy|Spain|1945}}→ Error creating thumbnail: Spanish Navy (1945 to 1977){{navy|Spain|1977}}→ Error creating thumbnail: Spanish Navy (1977 to 1981){{navy|Spain}}→Spanish Navy (from 1981)
- Thailand
{{navy|Thailand}}→ Error creating thumbnail: Royal Thai Navy
- United Kingdom
{{navy|England}}→Royal Navy (16th century to 1706)
{{navy|Kingdom of Great Britain}}→ Error creating thumbnail: Royal Navy (1707-1800){{navy|United Kingdom}}→Royal Navy (since 1801)
{{navy|United Kingdom|RFA}}→ Error creating thumbnail: Royal Fleet Auxiliary{{navy|United Kingdom|RMAS}}→ Error creating thumbnail: Royal Maritime Auxiliary Service
- United States
{{navy|USA|navy}}→United States Navy
{{navy|USA|1912}}→United States Navy
{{coast guard|USA|coast guard}}→United States Coast Guard
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}}→{{flagicon|Japan|naval}}→{{flagicon|Nazi Germany|naval}}→ Error creating thumbnail:
Implementation notes
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
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.