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. |
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 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}}
→ Error creating thumbnail: Algerian National Navy
Argentina
{{navy|Argentina}}
→Argentine Navy
Australia
{{navy|Australia|naval-1913}}
→Royal Australian Navy (1911–1967)
{{navy|Australia}}
→Royal Australian Navy (since 1967)
Belgium
{{navy|Belgium|state}}
→Belgian Navy (1831–1950)
{{navy|Belgium}}
→ Error creating thumbnail: Belgian Navy
Canada
{{navy|Canada|naval-1868|name=Naval Service of Canada}}
→ File:Canadian Blue Ensign (1868–1921).svg Naval Service of Canada (1910–1911){{navy|Canada|naval-1911}}
→Royal Canadian Navy (1911–1965)
{{navy|Canada|naval-1965}}
→ File:Flag of Canada (Pantone).svg Royal Canadian Navy (1965–1968 and 2011–2013){{navy|Canada|naval-1965|name=Canadian Maritime Command}}
→ File:Flag of Canada (Pantone).svg Canadian Maritime Command (1968–2011){{navy|Canada}}
→ File:Naval ensign of Canada; Naval jack of Canada (1968–2013).svg Royal Canadian Navy (since 2013)
China
{{navy|Qing dynasty}}
→ Error creating thumbnail: Imperial Chinese Navy{{navy|China}}
→ File:Naval ensign of China.svg People's Liberation Army Navy
France
{{navy|Kingdom of France}}
→French Navy
{{navy|France|naval-1790}}
→ Error creating thumbnail: French Navy (1790–1794){{navy|France}}
→ File:Civil and Naval Ensign of France.svg French Navy{{navy|France|name=Marine nationale}}
→ 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
{{naval|Georgia (country)|naval-1997}}
→ Error creating thumbnail: Georgian Navy (1997 to 2004){{naval|Georgia (country)}}
→ File:Naval Ensign of Georgia.svg Georgian Navy (2004 to 2009){{navy|Georgia (country)|coast guard}}
→ File:Battle ensign of the Coast Guard of Georgia.svg Border Police of Georgia{{coast guard|Georgia (country)}}
→ File:Battle ensign of the Coast Guard of Georgia.svg Coast Guard of Georgia
Germany
{{navy|German Empire}}
→ File:War Ensign of Germany 1903-1918.svg Imperial German Navy{{navy|Weimar Republic}}
→ File:War Ensign of Germany (1921–1933).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|West Germany}}
→ Error creating thumbnail: German Navy{{navy|Germany}}
→ Error creating thumbnail: German Navy{{navy|DEU|name=Deutsche Marine}}
→ Error creating thumbnail: Deutsche Marine
Iceland
{{navy|Iceland}}
→Icelandic Coast Guard
India
{{navy|British Raj|name=Her Majesty's Indian Marine}}
→ Error creating thumbnail: Her Majesty's Indian Marine (1879 to 1892){{navy|British Raj|name=Royal Indian Marine}}
→ Error creating thumbnail: Royal Indian Marine (1892 to 1928){{navy|British Raj|naval-1928|name=Royal Indian Marine}}
→Royal Indian Marine (1928 to 1934)
{{navy|British Raj|naval-1928}}
→Royal Indian Navy (1934 to 1947)
{{navy|Dominion of India}}
→Royal Indian Navy (1947 to 1950)
{{navy|India|naval-1950}}
→ File:Naval Ensign of India (1950–2001).svg Indian Navy (1950 to 2001){{navy|India|naval-2001}}
→ Error creating thumbnail: Indian Navy (2001 to 2004){{navy|India|naval-2004}}
→ File:Naval Ensign of India (2004–2014).svg Indian Navy (2004 to 2014){{navy|India|naval-2014}}
→ File:Naval Ensign of India (2014–2022).svg Indian Navy (2014 to 2022){{navy|India}}
→ Error creating thumbnail: Indian Navy (since 2022)
Italy
{{navy|Kingdom of Italy}}
→ Error creating thumbnail: Regia Marina{{navy|Italy}}
→ Error creating thumbnail: Italian Navy
Japan
{{navy|Empire of Japan}}
→ File:Naval ensign of the Empire of Japan.svg Imperial Japanese Navy{{navy|Japan}}
→ File:Naval Ensign of Japan.svg Japan Maritime Self-Defense Force
Netherlands
{{navy|Netherlands}}
→ Error creating thumbnail: Royal Netherlands Navy
New Zealand
{{navy|New Zealand|naval-1941}}
→Royal New Zealand Navy (1941 to 1968)
{{navy|New Zealand}}
→ File:Naval Ensign of New Zealand.svg Royal New Zealand Navy (since 1968)
Norway
{{navy|Norway}}
→ File:Flag of Norway, state.svg Royal Norwegian Navy{{coast guard|NOR}}
→ File:Norwegian Coast Guard Racing Stripe.svg Norwegian Coast Guard
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 (1712 to 1917){{navy|Russian Republic}}
→ File:Naval Ensign of Russia.svg Russian Navy (1917 to 1918){{navy|Russian Socialist Federative Soviet Republic|1918}}
→ Error creating thumbnail: Soviet Navy (1918 to 1920){{navy|Russian Socialist Federative Soviet Republic}}
→ File:Naval Ensign of RSFSR (1920-1923).svg Soviet Navy (1920 to 1923){{navy|Soviet Union|naval-1924}}
→ File:Naval Ensign of the Soviet Union 1923.svg Soviet Navy (1923 to 1935){{navy|Soviet Union|naval-1935}}
→ File:Naval Ensign of the Soviet Union 1935.svg Soviet Navy (1935 to 1950){{navy|Soviet Union}}
→ File:Naval Ensign of the Soviet Union (1950–1991).svg Soviet Navy (1950 to 1992){{navy|Russia|navy-1992}}
→ File:Naval ensign of Russia (1992).svg Russian Navy (1992 to 2000){{navy|Russia}}
→ File:Naval Ensign of Russia.svg Russian Navy (since January 1, 2001)
South Africa
{{navy|Union of South Africa|naval-1922|name=South African Naval Service}}
→South African Naval Service (1922 to 1940)
{{navy|Union of South Africa|naval-1922|name=South African Seaward Defence Force}}
→South African Seaward Defence Force (1940 to 1942)
{{navy|Union of South Africa|naval-1922|name=South African Naval Forces}}
→South African Naval Forces (1942 to 1946)
{{navy|Union of South Africa|naval-1946|name=South African Naval Forces}}
→ File:Naval Ensign of South Africa (1946–1951).svg South African Naval Forces (1946 to 1951){{navy|Union of South Africa|naval-1946}}
→ File:Naval Ensign of South Africa (1946–1951).svg South African Navy (1951 to 1952){{navy|Union of South Africa|naval}}
→ File:Naval Ensign of South Africa (1952–1959).svg South African Navy (1952 to 1961){{navy|South Africa|naval-1952}}
→ File:Naval Ensign of South Africa (1952-1981).svg South African Navy (1961 to 1981){{navy|South Africa|naval-1981}}
→ File:Naval Ensign of South Africa (1981-1994).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}}
→ Error creating thumbnail: Spanish Navy (1506 to 1701){{navy|Spain|1701}}
→Spanish Navy (1701 to 1748)
{{navy|Spain|1748}}
→ Error creating thumbnail: Spanish Navy (1748 to 1785){{navy|Spain|1785}}
→Spanish Navy (1785 to 1873)
{{navy|Spain|1873}}
→Spanish Navy (1873 to 1931)
{{navy|Spanish Republic}}
→Spanish Republican Navy (1931 to 1938)
{{navy|Spain|1938}}
→ Error creating thumbnail: Spanish Navy (1938 to 1945){{navy|Spain|1945}}
→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|naval}}
→ File:Naval Ensign of Thailand.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}}
→Royal Navy (since 1801)
{{navy|United Kingdom|naval-RFA}}
→ Error creating thumbnail: Royal Fleet Auxiliary{{navy|United Kingdom|naval-RMAS}}
→ Error creating thumbnail: Royal Maritime Auxiliary Service
United States
{{navy|USA}}
→United States Navy
{{navy|USA|1912}}
→ Error creating thumbnail: United States Navy{{coast guard|USA|coast guard-1953}}
→ Error creating thumbnail: 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}}
→ China{{flagicon|Japan|naval}}
→ Japan{{flagicon|Nazi Germany|naval}}
→ Nazi Germany
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.
- {{Air force}}
- {{Army}}