Difference between revisions of "Template:Country"
("Fix" flag size) |
(Add in chairman and premier) |
||
| Line 51: | Line 51: | ||
--> | --> | ||
{{t row if|Prime minister|{{{pm|}}}|link=yes|col2txt={{{pm-raw|}}}}} | {{t row if|Prime minister|{{{pm|}}}|link=yes|col2txt={{{pm-raw|}}}}} | ||
| + | <!-- | ||
| + | CHAIRMAN | ||
| + | --> | ||
| + | {{t row if|Chairman|{{{chairman|}}}|link=yes}} | ||
| + | <!-- | ||
| + | PREMIER | ||
| + | --> | ||
| + | {{t row if|Premier|{{{premier|}}}|link=yes}} | ||
<!-- | <!-- | ||
AREA | AREA | ||
| Line 101: | Line 109: | ||
{{Parm|pm|Prime Minister|no|Is automatically linked}} | {{Parm|pm|Prime 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|premier|Premier|no|Is automatically linked}} | ||
{{Parm|area|Area of country|no|}} | {{Parm|area|Area of country|no|}} | ||
{{Parm|pop|Population|no|}} | {{Parm|pop|Population|no|}} | ||
| Line 141: | Line 151: | ||
|pm = | |pm = | ||
|pm-raw = | |pm-raw = | ||
| + | |chairman = | ||
| + | |premier = | ||
|area = | |area = | ||
|pop = | |pop = | ||
Revision as of 02:57, October 3, 2007
| Template: Country | |
|---|---|
| Use on | Country articles |
| Use for | Info box |
| Category template applies to page | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| name | name of country | no | Defaults to page name |
| map | map image | 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 | Official language | no | Is automatically linked (see note B) |
| king | King | no | Is automatically linked. See note C |
| queen | Queen | no | Is automatically linked. See note C |
| monarch-raw | Monarch | no | See note A |
| president | President | no | Is automatically linked |
| president-raw | 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 |
| pm-raw | Prime Minister | no | See note A |
| chairman | Chairman | no | Is automatically linked |
| premier | Premier | no | Is automatically linked |
| area | Area of country | 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 | |
NOTE 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.
NOTE B: The language field is automatically linked to an article named "<language> language".
NOTE 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 field.
Full code
{{Country
|name =
|map =
|flag =
|arms =
|capital =
|capital-raw =
|government =
|government-raw =
|language =
|king =
|queen =
|monarch-raw =
|president =
|president-raw =
|chancellor =
|chancellor-raw =
|pm =
|pm-raw =
|chairman =
|premier =
|area =
|pop =
|pop-basis =
|gdp =
|gdp-year =
|gdp-pc =
|currency =
|idd =
|tld =
}}