Difference between revisions of "Template:Country"
Jump to navigation
Jump to search
m (typo) |
(Make language into a link and add chancellor fields) |
||
| Line 27: | Line 27: | ||
OFFICIAL LANGUAGE | OFFICIAL LANGUAGE | ||
--> | --> | ||
| − | {{ | + | {{#if:{{{language|}}} |
| + | |{{!}}- | ||
| + | {{!}}Official language{{!}}{{!}}[[{{{language}}} Language{{!}}{{{language}}}]] | ||
| + | |}} | ||
<!-- | <!-- | ||
MONARCH | MONARCH | ||
| Line 36: | Line 39: | ||
--> | --> | ||
{{t row if|President|{{{president|}}}|link=yes|link-name={{{president-link|}}}}} | {{t row if|President|{{{president|}}}|link=yes|link-name={{{president-link|}}}}} | ||
| + | <!-- | ||
| + | CHANCELLOR | ||
| + | --> | ||
| + | {{t row if|Chancellor|{{{chancellor|}}}|link=yes|link-name={{{chancellor-link|}}}}} | ||
<!-- | <!-- | ||
PRIME MINISTER | PRIME MINISTER | ||
| Line 68: | Line 75: | ||
{{Parm|government|Type of government|no|Is automatically linked}} | {{Parm|government|Type of government|no|Is automatically linked}} | ||
{{Parm|government-link|Link to type-of-government article|no|See note A}} | {{Parm|government-link|Link to type-of-government article|no|See note A}} | ||
| − | {{Parm|language|Official language|no|}} | + | {{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-link|Link to monarch article|no|See note A}} | {{Parm|monarch-link|Link to monarch article|no|See note A}} | ||
{{Parm|president|President|no|Is automatically linked}} | {{Parm|president|President|no|Is automatically linked}} | ||
{{Parm|president-link|Link to president article|no|See note A}} | {{Parm|president-link|Link to president article|no|See note A}} | ||
| + | {{Parm|chancellor|Chancellor|no|Is automatically linked}} | ||
| + | {{Parm|chancellor-link|Link to Chancellor|no|See note A}} | ||
{{Parm|pm|Prime Minister|no|Is automatically linked}} | {{Parm|pm|Prime Minister|no|Is automatically linked}} | ||
{{Parm|pm-link|Link to Prime Minister article|no|See note A}} | {{Parm|pm-link|Link to Prime Minister article|no|See note A}} | ||
| Line 82: | Line 91: | ||
{{Parm|gdp-pc|GDP per capita|no|}} | {{Parm|gdp-pc|GDP per capita|no|}} | ||
<!--{{Parm||||}} | <!--{{Parm||||}} | ||
| − | |||
| − | |||
{{Parm||||}} | {{Parm||||}} | ||
{{Parm||||}}--> | {{Parm||||}}--> | ||
}} | }} | ||
| − | '''NOTE A:''' | + | '''NOTE A:''' Parameters of the form xxxx-link are ''optional'' page names for the previous parameter to link to. If they are not provided, then the link will be to a page with the same name as the parameter value. 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=Washington</nowiki>}} and {{tt|<nowiki>capital-link=Washington D.C.</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. |
| − | |||
| + | '''NOTE B:''' The language field is automatically linked to an article named "''<language>'' language". | ||
</noinclude> | </noinclude> | ||
Revision as of 06:27, June 18, 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-link | Link to capital article | no | See note A |
| government | Type of government | no | Is automatically linked |
| government-link | Link to type-of-government article | no | See note A |
| language | Official language | no | Is automatically linked (see note B) |
| monarch | Monarch | no | Is automatically linked |
| monarch-link | Link to monarch article | no | See note A |
| president | President | no | Is automatically linked |
| president-link | Link to president article | no | See note A |
| chancellor | Chancellor | no | Is automatically linked |
| chancellor-link | Link to Chancellor | no | See note A |
| pm | Prime Minister | no | Is automatically linked |
| pm-link | Link to Prime Minister article | 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 | |
NOTE A: Parameters of the form xxxx-link are optional page names for the previous parameter to link to. If they are not provided, then the link will be to a page with the same name as the parameter value. 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=Washington and capital-link=Washington D.C.. If, instead, the page name is simply Washington, then capital=Washington is all that is needed, and will automatically be linked.
NOTE B: The language field is automatically linked to an article named "<language> language".