Difference between revisions of "Template:Country"
(center) |
|||
| (40 intermediate revisions by 14 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{| class="infobox bordered" style="border-collapse:collapse; border:1px solid black;background:#CCFFCC; float:right; font-size:85%; width:46ex" cellpadding="4" | <includeonly>{| class="infobox bordered" style="border-collapse:collapse; border:1px solid black;background:#CCFFCC; float:right; font-size:85%; width:46ex" cellpadding="4" | ||
! colspan="2"|<big>{{{name|{{PAGENAME}}}}}</big> | ! colspan="2"|<big>{{{name|{{PAGENAME}}}}}</big> | ||
| + | <!--DATES & Recognition | ||
| + | --> | ||
| + | {{#if:{{{established|}}}| | ||
| + | {{!-}} | ||
| + | {{!}}colspan="2" style="font-size:92%;text-align:center"{{!}}{{#if:{{{dissolved|}}}||Established in }}{{{established}}}{{#if:{{{dissolved|}}}| - {{{dissolved}}}}}}}{{#switch:{{{recognized}}}|y=<br/>Recognized{{#if:{{{recognitionyears|}}}|<nowiki>:</nowiki> {{{recognitionyears}}}}}|n=<br/>Unrecognized state}} | ||
<!-- | <!-- | ||
MAPS | MAPS | ||
| Line 11: | Line 16: | ||
|{{!}}- | |{{!}}- | ||
{{!}}colspan="2" style="border-top:0px"{{!}}[[image:{{{map2}}}{{!}}200px{{!}}center]] | {{!}}colspan="2" style="border-top:0px"{{!}}[[image:{{{map2}}}{{!}}200px{{!}}center]] | ||
| − | | | + | |}} |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
<!-- | <!-- | ||
FLAG | FLAG | ||
| Line 47: | Line 48: | ||
{{t row if|Government|{{{government|}}}|link=yes|col2txt={{{government-raw|}}}}} | {{t row if|Government|{{{government|}}}|link=yes|col2txt={{{government-raw|}}}}} | ||
<!-- | <!-- | ||
| − | (un) OFFICIAL LANGUAGE | + | (un) OFFICIAL LANGUAGE(S) |
--> | --> | ||
{{#if:{{{language|}}} | {{#if:{{{language|}}} | ||
|{{!}}- | |{{!}}- | ||
| − | {{!}}Language{{!}}{{!}}[[{{{language}}}]]{{#ifeq:{{{official|y}}}|y|<small> (official)</small>|<small> (unofficial)</small>}} | + | {{!}}[[List of languages by number of speakers|Language]]{{#if:{{{language2|}}}|s|}}{{!}}{{!}}[[{{{language}}}]]{{#ifeq:{{{official|y}}}|y|<small> (official)</small>|<small> (unofficial)</small>}} |
| + | <!-- | ||
| + | SECONDARY LANGUAGE | ||
| + | --> | ||
| + | {{#if:{{{language2|}}}|{{{language2}}}|}} | ||
|}} | |}} | ||
<!-- | <!-- | ||
| Line 68: | Line 73: | ||
--> | --> | ||
{{t row if|President|{{{president|}}}|link=yes|col2txt={{{president-raw|}}}}} | {{t row if|President|{{{president|}}}|link=yes|col2txt={{{president-raw|}}}}} | ||
| + | <!-- | ||
| + | Vice President | ||
| + | --> | ||
| + | {{t row if|Vice President|{{{vice-president|}}}|link=yes|col2txt={{{vice-president-raw|}}}}} | ||
<!-- | <!-- | ||
CHANCELLOR | CHANCELLOR | ||
| Line 76: | Line 85: | ||
--> | --> | ||
{{t row if|Prime minister|{{{pm|}}}|link=yes|col2txt={{{pm-raw|}}}}} | {{t row if|Prime minister|{{{pm|}}}|link=yes|col2txt={{{pm-raw|}}}}} | ||
| + | <!-- | ||
| + | FIRST MINISTER | ||
| + | --> | ||
| + | {{t row if|First minister|{{{fm|}}}|link=yes|col2txt={{{fm-raw|}}}}} | ||
<!-- | <!-- | ||
CHAIRMAN | CHAIRMAN | ||
| Line 92: | Line 105: | ||
--> | --> | ||
{{t row if|Premier|{{{premier|}}}|link=yes|col2txt={{{premier-raw|}}}}} | {{t row if|Premier|{{{premier|}}}|link=yes|col2txt={{{premier-raw|}}}}} | ||
| + | <!-- | ||
| + | CONSERVATIVE LEADER | ||
| + | --> | ||
| + | {{t row if|Current Conservative Leader|{{{conservative-leader|}}}|link=yes|col2txt={{{conservative-leader-raw|}}}}} | ||
| + | <!-- | ||
| + | BORDERS | ||
| + | --> | ||
| + | {{t row if|Borders|{{{borders|}}}|link=no|col2txt={{{borders-raw|}}}}} | ||
<!-- | <!-- | ||
AREA | AREA | ||
--> | --> | ||
| − | {{t row if|Area|{{{area|}}}}} | + | {{t row if|[[List of countries by area|Area]]|{{{area|}}}}} |
<!-- | <!-- | ||
POPULATION | POPULATION | ||
--> | --> | ||
| − | {{t row if|Population {{{pop-basis|}}}|{{{pop|}}}}} | + | {{t row if|[[List of countries by population|Population]] {{{pop-basis|}}}|{{{pop|}}}}} |
<!-- | <!-- | ||
GDP | GDP | ||
--> | --> | ||
| − | {{t row if|GDP {{{gdp-year}}}|{{{gdp|}}}}} | + | {{t row if|[[List of countries by GDP|GDP]] {{{gdp-year}}}|{{{gdp|}}}}} |
<!-- | <!-- | ||
GDP PER CAPITA | GDP PER CAPITA | ||
--> | --> | ||
| − | {{t row if|GDP per capita|{{{gdp-pc|}}}}} | + | {{t row if|[[List of countries by GDP per capita|GDP per capita]]|{{{gdp-pc|}}}}} |
<!-- | <!-- | ||
CURRENCY | CURRENCY | ||
| Line 128: | Line 149: | ||
{{Parm|map|map image|no|}} | {{Parm|map|map image|no|}} | ||
{{Parm|map2|map2 image|no|}} | {{Parm|map2|map2 image|no|}} | ||
| − | {{Parm|established|When | + | {{Parm|established|When was independence declared |no|}} |
{{Parm|dissolved|When the country dissolved|no|}} | {{Parm|dissolved|When the country dissolved|no|}} | ||
| + | {{Parm|recognized|Is the country recognized (y or n)|no|}} | ||
| + | {{Parm|recognitionyears|When was the country recognized (include "present" (example:1783-present))|no|}} | ||
{{Parm|flag|flag image|no|}} | {{Parm|flag|flag image|no|}} | ||
{{Parm|arms|Coat of arms|no|}} | {{Parm|arms|Coat of arms|no|}} | ||
| Line 145: | Line 168: | ||
{{Parm|president|President|no|Is automatically linked}} | {{Parm|president|President|no|Is automatically linked}} | ||
{{Parm|president-raw|President|no|See note A}} | {{Parm|president-raw|President|no|See note A}} | ||
| + | {{Parm|vice-president|Vice President|no|Is automatically linked}} | ||
| + | {{Parm|vice-president-raw|Vice President|no|See note A}} | ||
{{Parm|chancellor|Chancellor|no|Is automatically linked}} | {{Parm|chancellor|Chancellor|no|Is automatically linked}} | ||
{{Parm|chancellor-raw|Chancellor|no|See note A}} | {{Parm|chancellor-raw|Chancellor|no|See note A}} | ||
{{Parm|pm|Prime Minister|no|Is automatically linked}} | {{Parm|pm|Prime Minister|no|Is automatically linked}} | ||
| + | {{Parm|fm|First Minister|no|Is automatically linked}} | ||
{{Parm|pm-raw|Prime Minister|no|See note A}} | {{Parm|pm-raw|Prime Minister|no|See note A}} | ||
{{Parm|chairman|Chairman|no|Is automatically linked}} | {{Parm|chairman|Chairman|no|Is automatically linked}} | ||
| Line 155: | Line 181: | ||
{{Parm|premier|Premier|no|Is automatically linked}} | {{Parm|premier|Premier|no|Is automatically linked}} | ||
{{Parm|premier-raw|Premier|no|See note A}} | {{Parm|premier-raw|Premier|no|See note A}} | ||
| + | {{Parm|conservative leader|Conservative Leader|no|}} | ||
{{Parm|area|Area of country|no|}} | {{Parm|area|Area of country|no|}} | ||
| + | {{Parm|borders|Borders|no|}} | ||
{{Parm|pop|Population|no|}} | {{Parm|pop|Population|no|}} | ||
{{Parm|pop-basis|Basis of population (e.g. "2004 census")|yes|Only required if pop is supplied}} | {{Parm|pop-basis|Basis of population (e.g. "2004 census")|yes|Only required if pop is supplied}} | ||
| Line 207: | Line 235: | ||
|president = | |president = | ||
|president-raw = | |president-raw = | ||
| + | |vice-president = | ||
| + | |vice-president-raw= | ||
| + | |conservative-leader= | ||
| + | |conservative-leader-raw= | ||
|chancellor = | |chancellor = | ||
|chancellor-raw = | |chancellor-raw = | ||
| Line 218: | Line 250: | ||
|premier-raw = | |premier-raw = | ||
|area = | |area = | ||
| + | |borders = | ||
|pop = | |pop = | ||
|pop-basis = | |pop-basis = | ||
Latest revision as of 23:30, December 26, 2024
Note: .gif images do not work with this template.
| Template: Country | |
|---|---|
| Use on | Articles about countries, states, or territories |
| Use for | Info box |
| Category template applies to page | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| name | name of country, state, or territory | no | Defaults to page name |
| map | map image | no | |
| map2 | map2 image | no | |
| established | When was independence declared | no | |
| dissolved | When the country dissolved | no | |
| recognized | Is the country recognized (y or n) | no | |
| recognitionyears | When was the country recognized (include "present" (example:1783-present)) | no | |
| flag | flag image | no | |
| arms | Coat of arms | no | |
| capital | Capital | no | Is automatically linked |
| capital-raw | Capital | no | See note A |
| government | Type of government | no | Is automatically linked |
| government-raw | Type of government | no | See note A |
| language | Language | no | Is automatically linked (see note B) |
| official | Official language | no | Is the language official? (either y or n) |
| king | King | no | Is automatically linked. See note C |
| queen | Queen | no | Is automatically linked. See note C |
| monarch-raw | Monarch | no | See notes A and C |
| governor general | Governor General | no | Is automatically linked |
| governor general-raw | Governor General | no | See note A |
| president | President | no | Is automatically linked |
| president-raw | President | no | See note A |
| vice-president | Vice President | no | Is automatically linked |
| vice-president-raw | Vice President | no | See note A |
| chancellor | Chancellor | no | Is automatically linked |
| chancellor-raw | Chancellor | no | See note A |
| pm | Prime Minister | no | Is automatically linked |
| fm | First Minister | no | Is automatically linked |
| pm-raw | Prime Minister | no | See note A |
| chairman | Chairman | no | Is automatically linked |
| general secretary | General Secretary | no | Is automatically linked |
| governor | Governor | no | Is automatically linked |
| governor-raw | Governor | no | See note A |
| premier | Premier | no | Is automatically linked |
| premier-raw | Premier | no | See note A |
| conservative leader | Conservative Leader | no | |
| area | Area of country | no | |
| borders | Borders | no | |
| pop | Population | no | |
| pop-basis | Basis of population (e.g. "2004 census") | yes | Only required if pop is supplied |
| gdp | GDP | no | |
| gdp-year | GDP year | yes | Only required if gdp is supplied |
| gdp-pc | GDP per capita | no | |
| currency | Currency | no | |
| idd | International dialing code | no | |
| tld | Internet top-level domain | no | |
The country infobox template is currently used for countries, states, and territories (the {{state}} template redirects to this template). However, it is possible that {{state}} may be an independent template in the future, so {{state}}, not this template, should be used for a state infobox.
The template is not especially complex (but is reasonably so), but includes a large list of optional parameters.
Many of the parameters have two alternative forms, which are explained below in note A.
Notes
A: Parameters of the form xxxx-raw are alternatives to the non-raw form. These should be used instead of the non-raw form to (a) provide links where the article name is different to the displayed name, or (b) where a link is not wanted.
For example, if the capital of a country is Washington, but the page name for that capital is Washington D.C., then you would type capital-raw=[[Washington D.C.|Washington]].
If, instead, the page name is simply Washington, then capital=Washington is all that is needed, and will automatically be linked.
If both non-raw and raw forms are supplied, the non-raw form will be ignored.
B: The language field is automatically linked to an article named "<language> language".
C: Both the king and queen parameters display as a Monarch row, but prepend "King" or "Queen" to the name of the monarch. If neither is required, use the monarch-raw parameter.
Full code
{{Country
|name =
|map =
|flag =
|arms =
|capital =
|capital-raw =
|government =
|government-raw =
|language =
|king =
|queen =
|monarch-raw =
|governor general=
|governor general-raw=
|president =
|president-raw =
|vice-president =
|vice-president-raw=
|conservative-leader=
|conservative-leader-raw=
|chancellor =
|chancellor-raw =
|pm =
|pm-raw =
|chairman =
|general secretary=
|governor =
|governor-raw =
|premier =
|premier-raw =
|area =
|borders =
|pop =
|pop-basis =
|gdp =
|gdp-year =
|gdp-pc =
|currency =
|idd =
|tld =
}}