Difference between revisions of "Template:Country"
Jump to navigation
Jump to search
(Test change by just changing monarch-link) |
(Change xxxx-link parameters to xxxx-raw parameters, with consequent change in meaning.) |
||
| Line 19: | Line 19: | ||
CAPITAL | CAPITAL | ||
--> | --> | ||
| − | {{t row if|Capital|{{{capital|}}}|link=yes| | + | {{t row if|Capital|{{{capital|}}}|link=yes|col2txt={{{capital-raw|}}}}} |
<!-- | <!-- | ||
GOVERNMENT | GOVERNMENT | ||
--> | --> | ||
| − | {{t row if|Government|{{{government|}}}|link=yes| | + | {{t row if|Government|{{{government|}}}|link=yes|col2txt={{{government-raw|}}}}} |
<!-- | <!-- | ||
OFFICIAL LANGUAGE | OFFICIAL LANGUAGE | ||
| Line 34: | Line 34: | ||
MONARCH | MONARCH | ||
--> | --> | ||
| − | {{t row if|Monarch|{{{monarch|}}}|link=yes|col2txt={{{monarch- | + | {{t row if|Monarch|{{{monarch|}}}|link=yes|col2txt={{{monarch-raw|}}}}} |
<!-- | <!-- | ||
PRESIDENT | PRESIDENT | ||
--> | --> | ||
| − | {{t row if|President|{{{president|}}}|link=yes| | + | {{t row if|President|{{{president|}}}|link=yes|col2txt={{{president-raw|}}}}} |
<!-- | <!-- | ||
CHANCELLOR | CHANCELLOR | ||
--> | --> | ||
| − | {{t row if|Chancellor|{{{chancellor|}}}|link=yes| | + | {{t row if|Chancellor|{{{chancellor|}}}|link=yes|col2txt={{{chancellor-raw|}}}}} |
<!-- | <!-- | ||
PRIME MINISTER | PRIME MINISTER | ||
--> | --> | ||
| − | {{t row if|Prime minister|{{{pm|}}}|link=yes| | + | {{t row if|Prime minister|{{{pm|}}}|link=yes|col2txt={{{pm-raw|}}}}} |
<!-- | <!-- | ||
AREA | AREA | ||
| Line 84: | Line 84: | ||
{{Parm|arms|Coat of arms|no|}} | {{Parm|arms|Coat of arms|no|}} | ||
{{Parm|capital|Capital|no|Is automatically linked}} | {{Parm|capital|Capital|no|Is automatically linked}} | ||
| − | {{Parm|capital- | + | {{Parm|capital-raw|Capital|no|See note A}} |
{{Parm|government|Type of government|no|Is automatically linked}} | {{Parm|government|Type of government|no|Is automatically linked}} | ||
| − | {{Parm|government- | + | {{Parm|government-raw|Type-of-government|no|See note A}} |
{{Parm|language|Official language|no|Is automatically linked (see note B)}} | {{Parm|language|Official language|no|Is automatically linked (see note B)}} | ||
{{Parm|monarch|Monarch|no|Is automatically linked}} | {{Parm|monarch|Monarch|no|Is automatically linked}} | ||
| − | {{Parm|monarch- | + | {{Parm|monarch-raw|Monarch|no|See note A}} |
{{Parm|president|President|no|Is automatically linked}} | {{Parm|president|President|no|Is automatically linked}} | ||
| − | {{Parm|president- | + | {{Parm|president-raw|President|no|See note A}} |
{{Parm|chancellor|Chancellor|no|Is automatically linked}} | {{Parm|chancellor|Chancellor|no|Is automatically linked}} | ||
| − | {{Parm|chancellor- | + | {{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|pm- | + | {{Parm|pm-raw|Prime Minister|no|See note A}} |
{{Parm|area|Area of country|no|}} | {{Parm|area|Area of country|no|}} | ||
{{Parm|pop|Population|no|}} | {{Parm|pop|Population|no|}} | ||
| Line 109: | Line 109: | ||
{{Parm||||}}--> | {{Parm||||}}--> | ||
}} | }} | ||
| − | '''NOTE A:''' Parameters of the form xxxx- | + | '''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 {{tt|<nowiki>capital-raw=[[Washington D.C.|Washington]]</nowiki>}}. If, instead, the page name is simply ''Washington'', then {{tt|<nowiki>capital=Washington</nowiki>}} 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 B:''' The language field is automatically linked to an article named "''<language>'' language". | ||
</noinclude> | </noinclude> | ||
Revision as of 15:30, July 8, 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) |
| monarch | Monarch | no | Is automatically linked |
| 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 |
| 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".