Template:Navy/doc
| File:Edit-copy green.svg | This is a documentation subpage for Template:Navy. It contains usage information, categories and other content that is not part of the original template page. |
| File:Ambox warning yellow.svg | This template is used on approximately 19,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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}}→ File:Naval Ensign of Algeria.svg Algerian National Navy
- Argentina
{{navy|Argentina}}→ File:Flag of Argentina.svg Argentine Navy{{navy|Argentina|coast guard}}→ File:Flag of Argentina.svg Argentine Navy
- Australia
{{navy|Australia|1913}}→ File:Naval Ensign of Australia.svg Royal Australian Navy{{navy|Australia}}→ File:Naval Ensign of Australia.svg Royal Australian Navy
- Belgium
{{navy|Belgium|state}}→ File:Flag of Belgium.svg Belgian Navy (1831-1950){{navy|Belgium}}→ File:Naval Ensign of Belgium.svg Belgian Navy
- Canada
{{navy|Canada}}→ File:Naval ensign of Canada; Naval jack of Canada (1968–2013).svg Royal Canadian Navy{{navy|Canada|1921}}→ File:Canadian Red Ensign (1921–1957).svg Royal Canadian Navy
- China
{{navy|Qing dynasty}}→ Template:Country data Qing dynasty{{navy|CHN}}→ File:Naval ensign of China.svg People's Liberation Army Navy
- France
{{navy|Kingdom of France}}→ File:Flag of the Kingdom of France (1814-1830).svg French Navy{{navy|France|naval-1790}}→ File:Flag of French-Navy-Revolution.svg French Navy (1790-94){{navy|France}}→ File:Civil and Naval Ensign of France.svg French Navy{{navy|France}}→ File:Civil and Naval Ensign of France.svg Marine Nationale{{navy|Free French}}→ File:Naval Ensign of Free France.svg Free French Naval Forces
- Georgia
{{Navy|Georgia (country)}}→ File:Georgian Border Police flag.png Border Police of Georgia{{navy|Georgia (country)|coast guard}}→ File:Battle ensign of the Coast Guard of Georgia.svg Border Police of Georgia
- Germany
{{Navy|German Empire}}→ File:War Ensign of Germany 1903-1918.svg Imperial German Navy{{navy|Weimar Republic}}→ File:Flag of Weimar Republic (jack).svg Reichsmarine{{Navy|Nazi Germany}}→ File:War ensign of Germany (1938–1945).svg Kriegsmarine{{navy|East Germany}}→ File:Flag of warships of VM (East Germany).svg Volksmarine{{navy|DEU}}→ File:Naval Ensign of Germany.svg German Navy{{navy|DEU}}→ File:Naval Ensign of Germany.svg Deutsche Marine
- Iceland
{{navy|Iceland}}→ File:Flag of Iceland (state).svg Icelandic Coast Guard
- India
{{navy|British Raj}}→ File:Flag of Imperial India.svg Royal Indian Navy{{navy|India}}→ File:Naval Ensign of India.svg Indian Navy
- Italy
{{navy|Kingdom of Italy}}→ File:Flag of Italy (1861-1946) crowned.svg Regia Marina{{navy|Italy}}→ File:Naval Ensign of Italy.svg Italian Navy
- Japan
{{navy|Japan}}→ File:Naval Ensign of Japan.svg Japan Maritime Self-Defense Force{{navy|Empire of Japan}}→ File:Naval ensign of the Empire of Japan.svg Imperial Japanese Navy
- Netherlands
{{navy|Netherlands}}→ File:Naval Jack of the Netherlands.svg Royal Netherlands Navy
- New Zealand
{{navy|New Zealand|1941}}→ File:Naval Ensign of New Zealand.svg Royal New Zealand Navy{{navy|New Zealand}}→ File:Naval Ensign of New Zealand.svg Royal New Zealand Navy
- Norway
{{navy|NOR}}→ File:Flag of Norway, state.svg Royal Norwegian Navy
- Panama
{{navy|Panama|1958}}→ File:Flag of Panama.svg Panamanian National Guard{{navy|Panama|1984}}→ File:Flag of Panama.svg Panamanian Defense Forces{{navy|Panama}}→ File:Flag of Panama.svg Panamanian Public Forces
- Russia/Soviet Union
{{navy|Russian Empire}}→ File:Naval Ensign of Russia.svg Imperial Russian Navy{{navy|Soviet Union}}→ File:Naval Ensign of the Soviet Union (1950–1991).svg Soviet Navy{{navy|Soviet Union|1935}}→ File:Naval Ensign of the Soviet Union (1950–1991).svg Soviet Navy{{navy|Russia}}→ File:Naval Ensign of Russia.svg Russian Navy
- South Africa
{{navy|South Africa|1922}}→ File:Naval Ensign of South Africa.svg South African Navy (1922 to 1946){{navy|South Africa|1946}}→ File:Naval Ensign of South Africa.svg South African Navy (1946 to 1952){{navy|South Africa|1952}}→ File:Naval Ensign of South Africa.svg South African Navy (1952 to 1981){{navy|South Africa|1981}}→ File:Naval Ensign of South Africa.svg South African Navy (1981 to 1994){{navy|South Africa}}→ File:Naval Ensign of South Africa.svg South African Navy (since 1994)
- Spain
{{navy|Spain|1506}}→ File:Flag of Cross of Burgundy.svg Spanish Navy (1506 to 1701){{navy|Spain|1701}}→ File:Bandera de España 1701-1748.svg Spanish Navy (1701 to 1748){{navy|Spain|1748}}→ File:Bandera de España 1748-1785.svg Spanish Navy (1748 to 1785){{navy|Spain|1785}}→ File:Flag of Spain (1785–1873, 1875–1931).svg Spanish Navy (1785 to 1873){{navy|Spain|1873}}→ File:Flag of the First Spanish Republic.svg Spanish Navy (1873 to 1931){{navy|Spanish Republic}}→ File:Flag of Spain 1931 1939.svg Spanish Republican Navy (1931 to 1938){{navy|Spain|1938}}→ File:Flag of Spain (1938–1945).svg Spanish Navy (1938 to 1945){{navy|Spain|1945}}→ File:Flag of Spain (1945–1977).svg Spanish Navy (1945 to 1977){{navy|Spain|1977}}→ File:Flag of Spain (1977–1981).svg Spanish Navy (1977 to 1981){{navy|Spain}}→ File:Flag of Spain.svg Spanish Navy (from 1981)
- Thailand
{{navy|Thailand|navy}}→ File:Flag of the Royal Thai Navy.svg Royal Thai Navy
- United Kingdom
{{navy|England}}→ File:English White Ensign 1620.svg Royal Navy (16th century to 1706){{navy|Kingdom of Great Britain}}→ File:Naval Ensign of Great Britain (1707-1800).svg Royal Navy (1707-1800){{navy|United Kingdom}}→ File:Naval Ensign of the United Kingdom.svg Royal Navy (since 1801){{navy|United Kingdom|RFA}}→ File:Naval Ensign of the United Kingdom.svg Royal Navy{{navy|United Kingdom|RMAS}}→ File:Naval Ensign of the United Kingdom.svg Royal Navy
- United States
{{navy|USA|navy}}→ File:Flag of the United States Navy (official).svg United States Navy{{navy|USA|1912}}→ File:Flag of the United States (1912-1959).svg United States Navy{{coast guard|USA|coast guard}}→ File:Ensign of the United States Coast Guard.svg 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}}→ File:Naval Ensign of the United Kingdom.svg{{flagicon|CHN|naval}}→ File:Naval ensign of China.svg{{flagicon|Japan|naval}}→ File:Naval Ensign of Japan.svg{{flagicon|Nazi Germany|naval}}→ File:War ensign of Germany (1938–1945).svg
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.