Template:Country data United States

From Conservapedia
Jump to: navigation, search
Template documentation

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.

Template:Ombox

Standard parameters

Parameter nameValueMeaning
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

LabelFlag image (40px)Image name
177640pxFlag of the United States (1776–1777).svg
177740pxFlag of the United States (1777-1795).svg
179540pxFlag of the United States (1795–1818).svg
181840pxFlag of the United States (1818-1819).svg
181940pxFlag of the United States (1819-1820).svg
182040pxFlag of the United States (1820-1822).svg
182240pxFlag of the United States (1822-1836).svg
183640pxFlag of the United States (1836-1837).svg
183740pxFlag of the United States (1837-1845).svg
184540pxFlag of the United States (1845-1846).svg
184640pxFlag of the United States (1846-1847).svg
184740pxFlag of the United States (1847-1848).svg
184840pxFlag of the United States (1848-1851).svg
185140pxFlag of the United States (1851-1858).svg
185840pxFlag of the United States (1858-1859).svg
185940pxFlag of the United States (1859-1861).svg
186140pxFlag of the United States (1861-1863).svg
186340pxFlag of the United States (1863-1865).svg
186540pxFlag of the United States (1865-1867).svg
186740pxFlag of the United States (1867-1877).svg
187740pxFlag of the United States (1877-1890).svg
189040pxFlag of the United States (1890-1891).svg
189140pxFlag of the United States (1891-1896).svg
189640pxFlag of the United States (1896-1908).svg
190840pxFlag of the United States (1908-1912).svg
191240pxFlag of the United States (1912-1959).svg
195940pxFlag of the United States (1959-1960).svg
196040pxFlag of the United States (Pantone).svg
coast guard-191540pxEnsign of the United States Coast Guard (1915-1953).png
marines-191440pxFlag of the United States Marine Corps (1914-1939).png
marines40pxFlag of the United States Marine Corps.svg
coast guard40pxEnsign of the United States Coast Guard.svg
navy40pxFlag of the United States Navy (official).svg
air force40pxFlag of the United States Air Force.svg
space force40pxFlag of the United States Space Force.svg
army40pxFlag 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:

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 nameTemplate:Tlx outputTemplate:Tlx output
USA (view)Template:Country data USATemplate:Flagcountry
US (view)Template:Country data USTemplate:Flagcountry
United States of America (view)Template:Country data United States of AmericaTemplate: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


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>