Difference between revisions of "Template:Country"

From Conservapedia
Jump to navigation Jump to search
(Add in chairman and premier)
(Added Governor General and Governor (both linked and raw forms) and premier-raw)
Line 39: Line 39:
 
   {{t row if|Monarch|col2txt={{2if1|{{{king|}}}|[[{{{king}}}{{!}}King {{{king}}}]]}}}}
 
   {{t row if|Monarch|col2txt={{2if1|{{{king|}}}|[[{{{king}}}{{!}}King {{{king}}}]]}}}}
 
}}
 
}}
 +
<!--
 +
    GOVERNOR GENERAL
 +
-->
 +
{{t row if|Governor General|{{{governor general|}}}|link=yes|col2txt={{{governor general-raw|}}}}}
 
<!--
 
<!--
 
     PRESIDENT
 
     PRESIDENT
Line 55: Line 59:
 
-->
 
-->
 
{{t row if|Chairman|{{{chairman|}}}|link=yes}}
 
{{t row if|Chairman|{{{chairman|}}}|link=yes}}
 +
<!--
 +
    GOVERNOR
 +
-->
 +
{{t row if|Governor|{{{governor|}}}|link=yes|col2txt={{{governor-raw|}}}}}
 
<!--
 
<!--
 
     PREMIER
 
     PREMIER
 
-->
 
-->
−
{{t row if|Premier|{{{premier|}}}|link=yes}}
+
{{t row if|Premier|{{{premier|}}}|link=yes|col2txt={{{premier-raw|}}}}}
 
<!--
 
<!--
 
     AREA
 
     AREA
Line 103: Line 111:
 
  {{Parm|queen|Queen|no|Is automatically linked.  See note C}}
 
  {{Parm|queen|Queen|no|Is automatically linked.  See note C}}
 
  {{Parm|monarch-raw|Monarch|no|See note A}}
 
  {{Parm|monarch-raw|Monarch|no|See note A}}
 +
{{Parm|governor general|Governor General|no|Is automatically linked}}
 +
{{Parm|governor general-raw|Governor General|no|See note A}}
 
  {{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}}
Line 110: Line 120:
 
  {{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}}
 +
{{Parm|governor|Governor|no|Is automatically linked}}
 +
{{Parm|governor-raw|Governor|no|See note A}}
 
  {{Parm|premier|Premier|no|Is automatically linked}}
 
  {{Parm|premier|Premier|no|Is automatically linked}}
 +
{{Parm|premier-raw|Premier|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 145: Line 158:
 
|queen         =
 
|queen         =
 
|monarch-raw =
 
|monarch-raw =
 +
|governor general=
 +
|governor general-raw=
 
|president =
 
|president =
 
|president-raw =
 
|president-raw =
Line 152: Line 167:
 
|pm-raw         =
 
|pm-raw         =
 
|chairman      =
 
|chairman      =
 +
|governor      =
 +
|governor-raw  =
 
|premier        =
 
|premier        =
 +
|premier-raw    =
 
|area         =
 
|area         =
 
|pop         =
 
|pop         =

Revision as of 02:19, October 17, 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
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
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
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
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	=
|governor general=
|governor general-raw=
|president	=
|president-raw	=
|chancellor	=
|chancellor-raw	=
|pm	        =
|pm-raw	        =
|chairman       =
|governor       =
|governor-raw   =
|premier        =
|premier-raw    =
|area	        =
|pop	        =
|pop-basis	=
|gdp	        =
|gdp-year	=
|gdp-pc	        =
|currency	=
|idd		=
|tld            =
}}