Template:Country data China

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
Template documentation
Error creating thumbnail: /bin/bash: line 1: rsvg-convert: command not found

Standard parameters

Parameter nameValueMeaning
alias People's Republic of China Main article name (People's Republic of China)
shortname alias China (optional) Display name to be used for the wikilink, if alias is a disambiguated article name, for example
flag alias Flag of the People's Republic of China.svg Image name (File:Flag of the People's Republic of China.svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
military40pxPeople's Liberation Army Flag of the People's Republic of China.svg
naval40pxNaval Ensign of the People's Republic of China.svg
military40pxPeople's Liberation Army Flag of the People's Republic of China.svg
air force40pxAir Force Flag of the People's Republic of China.svg
army40pxGround Force Flag of the People's Republic of China.svg

Redirect aliases

This template can also be used via an alias name (implemented as a redirect to this template):
Alias name{{flag|alias}} output{{flagcountry|alias}} output
CHN (view) CHNTemplate:Flagcountry
People's Republic of China (view)Template:Country data People's Republic of ChinaTemplate:Flagcountry
China, People's Republic of (view)Template:Country data China, People's Republic ofTemplate:Flagcountry
China (People's Republic of) (view)Template:Country data China (People's Republic of)Template:Flagcountry
PRC (view)Template:Country data PRCTemplate:Flagcountry

See What links here for a full list of redirects.

Example usage

  • {{flag|{{#invoke:String|replace|Country data China|^%w+ data |||false}}}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flag/core|name={{#invoke:String|replace|Country data China|^%w+ data |||false}}|variant=|size=}}
  • {{flagicon|{{#invoke:String|replace|Country data China|^%w+ data |||false}}}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flagicon/core|variant=|size=}}
  • {{flagcountry|{{#invoke:String|replace|Country data China|^%w+ data |||false}}}}Template:Flagcountry

Using a flag variant

  • {{flag|{{#invoke:String|replace|Country data China|^%w+ data |||false}}|military}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flag/core|name={{#invoke:String|replace|Country data China|^%w+ data |||false}}|variant=military|size=}}
  • {{flagicon|{{#invoke:String|replace|Country data China|^%w+ data |||false}}|military}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flagicon/core|variant=military|size=}}

Using a redirect alias

Military ensigns

This template includes a naval flag variant that can be used with Template:Naval:

  • {{naval|{{#invoke:String|replace|Country data China|^%w+ data |||false}}}}Template:Naval
  • {{flagicon|{{#invoke:String|replace|Country data China|^%w+ data |||false}}|naval}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flagicon/core|variant=naval|size=}}Template: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 China|^%w+ data |||false}}}}Template:Air force
  • {{flagicon|{{#invoke:String|replace|Country data China|^%w+ data |||false}}|air force}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flagicon/core|variant=air force|size=}}Template:Break

This template includes a marine ensign flag variant that can be used with Template:Armed forces:

  • {{Armed forces|{{#invoke:String|replace|Country data China|^%w+ data |||false}}}}Template:Armed forces
  • {{flagicon|{{#invoke:String|replace|Country data China|^%w+ data |||false}}|military}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flagicon/core|variant=military|size=}}Template:Break

This template includes an army ensign flag variant that can be used with Template:Army:

  • {{army|{{#invoke:String|replace|Country data China|^%w+ data |||false}}}}Template:Army
  • {{flagicon|{{#invoke:String|replace|Country data China|^%w+ data |||false}}|army}} → {{country data {{#invoke:String|replace|Country data China|^%w+ data |||false}}|flagicon/core|variant=army|size=}}

Related templates

Please see the following related country_data templates:


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>

af:Sjabloon:Landdata Sjina sl:Predloga:Podatki države Kitajska