Template:Country data United States
Template:Country data United States is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.
Contents
Standard parameters
| Parameter name | Value | Meaning |
|---|---|---|
alias |
United States
| Main article name (United States) |
flag alias |
Flag of the United States.svg |
Image name (File:Flag of the United States.svg, shown on right) |
Flag variants
| Label | Flag image (40px) | Image name |
|---|---|---|
1776 | 40px | Flag of the United States (1776–1777).svg |
1777 | 40px | Flag of the United States (1777-1795).svg |
1795 | 40px | Flag of the United States (1795–1818).svg |
1818 | 40px | Flag of the United States (1818-1819).svg |
1819 | 40px | Flag of the United States (1819-1820).svg |
1820 | 40px | Flag of the United States (1820-1822).svg |
1822 | 40px | Flag of the United States (1822-1836).svg |
1836 | 40px | Flag of the United States (1836-1837).svg |
1837 | 40px | Flag of the United States (1837-1845).svg |
1845 | 40px | Flag of the United States (1845-1846).svg |
1846 | 40px | Flag of the United States (1846-1847).svg |
1847 | 40px | Flag of the United States (1847-1848).svg |
1848 | 40px | Flag of the United States (1848-1851).svg |
1851 | 40px | Flag of the United States (1851-1858).svg |
1858 | 40px | Flag of the United States (1858-1859).svg |
1859 | 40px | Flag of the United States (1859-1861).svg |
1861 | 40px | Flag of the United States (1861-1863).svg |
1863 | 40px | Flag of the United States (1863-1865).svg |
1865 | 40px | Flag of the United States (1865-1867).svg |
1867 | 40px | Flag of the United States (1867-1877).svg |
1877 | 40px | Flag of the United States (1877-1890).svg |
1890 | 40px | Flag of the United States (1890-1891).svg |
1891 | 40px | Flag of the United States (1891-1896).svg |
1896 | 40px | Flag of the United States (1896-1908).svg |
1908 | 40px | Flag of the United States (1908-1912).svg |
1912 | 40px | Flag of the United States (1912-1959).svg |
1959 | 40px | Flag of the United States (1959-1960).svg |
1960 | 40px | Flag of the United States (Pantone).svg |
coast guard-1915 | 40px | Ensign of the United States Coast Guard (1915-1953).png |
marines-1914 | 40px | Flag of the United States Marine Corps (1914-1939).png |
marines | 40px | Flag of the United States Marine Corps.svg |
coast guard | 40px | Ensign of the United States Coast Guard.svg |
navy | 40px | Flag of the United States Navy (official).svg |
air force | 40px | Flag of the United States Air Force.svg |
space force | 40px | Flag of the United States Space Force.svg |
army | 40px | Flag of the United States Army.svg |
Military ensigns
This nation's naval ensign is the same as its national flag, so Template:Navy produces the following:
-
{{navy|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ Template:NavyTemplate:Break
This template includes an air force ensign flag variant that can be used with Template:Air force:
-
{{air force|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ Template:Air force -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|air force}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=air force|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}Template:Break
This template includes a space force ensign flag variant that can be used with Template:Space force:
-
{{space force|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ Template:Space force -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|space force}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=space force|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}Template:Break
This template includes a marine ensign flag variant that can be used with Template:Marines:
-
{{marines|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ Template:Marines -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|marines}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=marines|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}Template:Break
This template includes a navy flag variant that can be used with Template:Naval:
-
{{naval|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ Template:Naval -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|navy}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=navy|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}Template:Break
This template includes a coast guard ensign flag variant that can be used with Template:Coast guard:
-
{{coast guard|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ Template:Coast guard -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|coast guard}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=coast guard|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}Template:Break
This template includes an army ensign flag variant that can be used with Template:Army:
-
{{army|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ Template:Army -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|army}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=army|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}
Redirect aliases
This template can also be used via an alias name (implemented as a redirect to this template):| Alias name | Template:Tlx output | Template:Tlx output |
|---|---|---|
USA (view) | Template:Country data USA | Template:Flagcountry |
US (view) | Template:Country data US | Template:Flagcountry |
United States of America (view) | Template:Country data United States of America | Template:Flagcountry |
U.S. (view) | Template:Country data U.S. | Template:Flagcountry |
See What links here for a full list of redirects.
Example usage
-
{{flag|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flag/core|name={{#invoke:String|replace|Country data United States|^%w+ data |||false}}|variant=|size=}} -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}
Using a flag variant
-
{{flag|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|1776}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flag/core|name={{#invoke:String|replace|Country data United States|^%w+ data |||false}}|variant=1776|size=}} -
{{flagicon|{{#invoke:String|replace|Country data United States|^%w+ data |||false}}|1776}}→ {{country data {{#invoke:String|replace|Country data United States|^%w+ data |||false}}|flagicon/core|variant=1776|size=}}Template:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}
Using a redirect alias
-
{{flagicon|USA}}→ Template:Country data USATemplate:Namespace detect showall{{safesubst:#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Flagicon with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }} -
{{flagcountry|USA}}→ Template:Flagcountry -
{{flag|USA}}→ Template:Country data USA
TemplateData
Template:TemplateData header <templatedata> {
"description": "This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.",
"params": {}
} </templatedata>