Difference between revisions of "Template:Country"
(Add font size 85%) |
(ADDING example code) |
||
| Line 119: | Line 119: | ||
'''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. | '''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== | ||
| + | <pre> | ||
| + | {{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 = | ||
| + | |area = | ||
| + | |pop = | ||
| + | |pop-basis = | ||
| + | |gdp = | ||
| + | |gdp-year = | ||
| + | |gdp-pc = | ||
| + | |currency = | ||
| + | |idd = | ||
| + | |tld = | ||
| + | }} | ||
| + | </pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 01:13, July 22, 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 |
| 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 =
|area =
|pop =
|pop-basis =
|gdp =
|gdp-year =
|gdp-pc =
|currency =
|idd =
|tld =
}}