Template:Navy/sandbox
Jump to navigation
Jump to search
{{country data {{{1}}}
| navy/core/sandbox | variant = | size = | name =
}}
This is the template sandbox page for Template:Navy (diff). |
Usage[edit source]
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[edit source]
- Algeria
{{navy|Algeria}}
→ File:Naval Ensign of Algeria.svg Algerian National Navy
- Australia
{{navy|Argentina}}
→ Argentine Navy{{navy|Argentina|coast guard}}
→ Argentine Naval Prefecture
- Australia
{{navy|Australia|1913}}
→ File:Naval Ensign of the United Kingdom.svg Royal Australian Navy{{navy|Australia}}
→ File:Naval Ensign of Australia.svg Royal Australian Navy
- Belgium
{{navy|Belgium|state}}
→ Belgian Navy (1831-1950){{navy|Belgium}}
→ File:Naval Ensign of Belgium.svg Belgian Navy
- Canada
{{navy|Canada}}
→ File:Naval Jack of Canada.svg Royal Canadian Navy{{navy|Canada|1921}}
→ File:Canadian Blue Ensign 1921-1957.svg Royal Canadian Navy
- China
{{navy|Qing dynasty}}
→ File:China Qing Dynasty Flag 1889.svg Imperial Chinese Navy{{navy|CHN}}
→ File:Naval Ensign of the People's Republic of China.svg People's Liberation Army Navy
- France
{{navy|Kingdom of France}}
→ File:Naval Ensign of the Kingdom of France.svg French Navy{{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}}
→ File:Naval Ensign of Georgia.svg Georgian Navy{{navy|Georgia|coast guard}}
→ File:Naval Ensign of Georgia.svg Coast Guard of Georgia
- Germany
{{Navy|German Empire}}
→ File:War Ensign of Germany 1903-1918.svg Kaiserliche Marine{{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
- India
{{navy|British India}}
→ 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 Marina Militare
- Japan
{{navy|Japan}}
→ File:Naval Ensign of Japan.svg Japan Maritime Self-Defense Force{{navy|Empire of Japan}}
→ File:Naval Ensign of Japan.svg Imperial Japanese Navy
- Netherlands
{{navy|Netherlands}}
→ Royal Netherlands Navy
- New Zealand
{{navy|New Zealand|1941}}
→ File:Naval Ensign of the United Kingdom.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}}
→ Panamanian National Guard{{navy|Panama|1984}}
→ Panamanian Defense Forces{{navy|Panama}}
→ 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.svg Soviet Navy{{navy|Russia}}
→ File:Naval Ensign of Russia.svg Russian Navy
- South Africa
{{navy|South Africa|1922}}
→ File:Naval Ensign of the United Kingdom.svg South African Navy (1922 to 1946){{navy|South Africa|1946}}
→ File:Naval ensign of South Africa (1946-1951).svg South African Navy (1946 to 1952){{navy|South Africa|1952}}
→ File:Naval Ensign of South Africa (1952-1981)-2.svg South African Navy (1952 to 1981){{navy|South Africa|1981}}
→ File:Naval Ensign of South Africa (1981-1994).png 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 and 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}}
→ Spanish Navy (from 1981)
- Thailand
{{navy|Thailand}}
→ 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)- {{flagicon|Kingdom of Great Britain|white}} [[Royal Navy]] → File:British-White-Ensign-1707.svg Royal Navy (1707-1801) – DO NOT USE {{navy|Kingdom of Great Britain}}, which would produce File:British-Red-Ensign-1707.svg Royal Navy!
{{navy|United Kingdom}}
→ File:Naval Ensign of the United Kingdom.svg Royal Navy{{navy|United Kingdom|RFA}}
→ File:British-Royal-Fleet-Auxiliary-Ensign.svg Royal Fleet Auxiliary{{navy|United Kingdom|RMAS}}
→ File:British Royal Maritime Auxiliary Ensign.svg Royal Maritime Auxiliary Service
- United States
{{navy|USA}}
→ United States Navy{{navy|USA|1912}}
→ File:U.S. flag, 48 stars.svg United States Navy{{navy|USA|coast guard}}
→ File:Ensign of the United States Coast Guard.svg United States Coast Guard
[edit source]
The {{flagicon}} template can be used to display the naval flag by itself, using the
variant as a template parameter:
naval
{{flagicon|UK|naval}}
→ File:Naval Ensign of the United Kingdom.svg{{flagicon|CHN|naval}}
→ File:Naval Ensign of the People's Republic 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[edit source]
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
template (complete set found in Category:Country data templates).
country_data
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
See also[edit source]
- Wikipedia:WikiProject Ships/Ensigns
- {{Shipboxflag}}
- {{USN flag}} – U.S. Navy flags for any given year