Difference between revisions of "Template:Country"

From Conservapedia
Jump to: navigation, search
(woops)
(Undo revision 1710718 by United States (talk): okay, i don't want to waste my time editing 250 countries ALL OVER.)
(21 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<includeonly>{| class="infobox bordered" style="border-collapse:collapse; border:1px solid black;background:#CCFFCC; float:right; font-size:85%; width:46ex" cellpadding="4"
 
<includeonly>{| class="infobox bordered" style="border-collapse:collapse; border:1px solid black;background:#CCFFCC; float:right; font-size:85%; width:46ex" cellpadding="4"
 
! colspan="2"|<big>{{{name|{{PAGENAME}}}}}</big>
 
! colspan="2"|<big>{{{name|{{PAGENAME}}}}}</big>
 +
<!--DATES & Recognition
 +
-->
 +
{{#if:{{{established|}}}|
 +
{{!-}}
 +
{{!}}colspan="2" style="font-size:92%;text-align:center"{{!}}{{#if:{{{dissolved|}}}||Established in&nbsp;}}{{{established}}}{{#if:{{{dissolved|}}}| - {{{dissolved}}}}}}}{{#switch:{{{recognized}}}|y=<br/>Recognized{{#if:{{{recognitionyears|}}}|<nowiki>:</nowiki>&nbsp;{{{recognitionyears}}}}}|n=<br/>Unrecognized state}}
 
<!--
 
<!--
 
     MAPS
 
     MAPS
Line 11: Line 16:
 
  |{{!}}-
 
  |{{!}}-
 
  {{!}}colspan="2" style="border-top:0px"{{!}}[[image:{{{map2}}}{{!}}200px{{!}}center]]
 
  {{!}}colspan="2" style="border-top:0px"{{!}}[[image:{{{map2}}}{{!}}200px{{!}}center]]
|}}<!--DATES
+
|}}
-->
+
{{#if:{{{established|}}}|
+
{{!-}}
+
{{!}}colspan="2" style="font-size:92%;text-align:center"{{!}}{{#if:{{{dissolved|}}}||Established in&nbsp;}}{{{established}}}{{#if:{{{dissolved|}}}| - {{{dissolved}}}}}}}
+
 
<!--
 
<!--
 
     FLAG
 
     FLAG
Line 47: Line 48:
 
{{t row if|Government|{{{government|}}}|link=yes|col2txt={{{government-raw|}}}}}
 
{{t row if|Government|{{{government|}}}|link=yes|col2txt={{{government-raw|}}}}}
 
<!--
 
<!--
     (un) OFFICIAL LANGUAGE
+
     (un) OFFICIAL LANGUAGE(S)
 
-->
 
-->
 
{{#if:{{{language|}}}
 
{{#if:{{{language|}}}
 
  |{{!}}-
 
  |{{!}}-
  {{!}}Language{{!}}{{!}}[[{{{language}}}]]{{#ifeq:{{{official|y}}}|y|<small> (official)</small>|<small> (unofficial)</small>}}
+
  {{!}}[[List of languages by number of speakers|Language]]{{#if:{{{language2|}}}|s|}}{{!}}{{!}}[[{{{language}}}]]{{#ifeq:{{{official|y}}}|y|<small> (official)</small>|<small> (unofficial)</small>}}
 +
<!--
 +
    SECONDARY LANGUAGE
 +
-->
 +
{{#if:{{{language2|}}}|{{{language2}}}|}}
 
|}}
 
|}}
 
<!--
 
<!--
Line 95: Line 100:
 
     AREA
 
     AREA
 
-->
 
-->
{{t row if|Area|{{{area|}}}}}
+
{{t row if|[[List of countries by area|Area]]|{{{area|}}}}}
 
<!--
 
<!--
 
     POPULATION
 
     POPULATION
 
-->
 
-->
{{t row if|Population {{{pop-basis|}}}|{{{pop|}}}}}
+
{{t row if|[[List of countries by population|Population]] {{{pop-basis|}}}|{{{pop|}}}}}
 
<!--
 
<!--
 
     GDP
 
     GDP
 
-->
 
-->
{{t row if|GDP {{{gdp-year}}}|{{{gdp|}}}}}
+
{{t row if|[[List of countries by GDP|GDP]] {{{gdp-year}}}|{{{gdp|}}}}}
 
<!--
 
<!--
 
     GDP PER CAPITA
 
     GDP PER CAPITA
 
-->
 
-->
{{t row if|GDP per capita|{{{gdp-pc|}}}}}
+
{{t row if|[[List of countries by GDP per capita|GDP per capita]]|{{{gdp-pc|}}}}}
 
<!--
 
<!--
 
     CURRENCY
 
     CURRENCY
Line 128: Line 133:
 
  {{Parm|map|map image|no|}}
 
  {{Parm|map|map image|no|}}
 
  {{Parm|map2|map2 image|no|}}
 
  {{Parm|map2|map2 image|no|}}
  {{Parm|established|When the country was established (in most caseswhen its sovereignty was recognized) |no|}}
+
  {{Parm|established|When was independence declared |no|}}
 
  {{Parm|dissolved|When the country dissolved|no|}}
 
  {{Parm|dissolved|When the country dissolved|no|}}
 +
{{Parm|recognized|Is the country recognized (y or n)|no|}}
 +
{{Parm|recognitionyears|When was the country recognized (include "present" (example:1783-present))|no|}}
 
  {{Parm|flag|flag image|no|}}
 
  {{Parm|flag|flag image|no|}}
 
  {{Parm|arms|Coat of arms|no|}}
 
  {{Parm|arms|Coat of arms|no|}}

Revision as of 00:12, December 5, 2020

Note: .gif images do not work with this template.


Template: Country
Use on Articles about countries, states, or territories
Use for Info box
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
name name of country, state, or territory no Defaults to page name
map map image no
map2 map2 image no
established When was independence declared no
dissolved When the country dissolved no
recognized Is the country recognized (y or n) no
recognitionyears When was the country recognized (include "present" (example:1783-present)) 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 Language no Is automatically linked (see note B)
official Official language no Is the language official? (either y or n)
king King no Is automatically linked. See note C
queen Queen no Is automatically linked. See note C
monarch-raw Monarch no See notes A and C
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
general secretary General Secretary 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

The country infobox template is currently used for countries, states, and territories (the {{state}} template redirects to this template). However, it is possible that {{state}} may be an independent template in the future, so {{state}}, not this template, should be used for a state infobox.

The template is not especially complex (but is reasonably so), but includes a large list of optional parameters.

Many of the parameters have two alternative forms, which are explained below in note A.

Notes

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.

B: The language field is automatically linked to an article named "<language> language".

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 parameter.

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       =
|general secretary=
|governor       =
|governor-raw   =
|premier        =
|premier-raw    =
|area	        =
|pop	        =
|pop-basis	=
|gdp	        =
|gdp-year	=
|gdp-pc	        =
|currency	=
|idd		=
|tld            =
}}