Template:Country info: Difference between revisions

From OLPC
Jump to navigation Jump to search
(eliminated two extra columns in area zone)
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>For a quick copy paste [[#Usage|usage of the template (scroll to)]] see below or see the [[Template talk:Country info|documentation]] in the discussion tab.
<br clear="all"></noinclude>
{| class="country infobox" style="width:23em; line-height: 1.1em; background-color:#ccffcc; text-align:left" border="1px" align="right" cellspacing="0"
{| class="country infobox" style="width:23em; line-height: 1.1em; background-color:#ccffcc; text-align:left" border="1px" align="right" cellspacing="0"
|-


<!----------Name/s---------->
|- <!----------Name/s---------->
|colspan="2" class="mergedtoprow" align="center" style="line-height:1.2em; font-size:1.2em;"| '''{{{native_name}}}'''<br/>'''{{{conventional_long_name}}}'''
|colspan="2" class="mergedtoprow" align="center" style="line-height:1.2em; font-size:1.2em;"| '''{{{native_name}}}'''<br/>'''{{{conventional_long_name}}}'''
|-


<!---------- Map ---------->
|- <!---------- Map ---------->
|colspan="2" style="text-align:center; padding:0.4em 1em 0.4em 1em;"| [[Image:{{{image_map}}}|250px|center|Location of {{{common_name}}}]]
|colspan="2" style="text-align:center; padding:0.4em 1em 0.4em 1em;"| {{{image_map}}}
|- class="mergedtoprow"


<!------ Capital city ------>
|- class="mergedtoprow" <!------ Capital city ------>
!'''Capital'''
!'''Capital'''
| {{{capital}}}
| {{{capital}}}
|-


<!----------Official language/s ---------->
|- <!----------Official language/s ---------->
! <span style="white-space: nowrap;">[[Official language|Official&nbsp;languages]]</span>
! <span style="white-space: nowrap;">[[Official language|Official&nbsp;languages]]</span>
| {{{official_languages}}}
| {{{official_languages}}}
|- class="mergedtoprow"


|- class="mergedtoprow" <!-----------Area----------->

!'''Area'''
<!-----------Area----------->
!colspan="2"| Area
|- class="mergedrow"
| &nbsp;- Total
| {{{area}}} km²
| {{{area}}} km²
|- class="mergedrow"


<!-----------Percentage water----------->
| &nbsp;- Water (%)
| {{{percent_water}}}
|- class="mergedrow"



<!-----------Population----------->
|- class="mergedrow" <!-----------Population----------->
!colspan="2"| Population
!colspan="2"| Population
|- class="mergedrow"
|- class="mergedrow"
Line 48: Line 34:
| &nbsp;- Density
| &nbsp;- Density
| {{{population_density}}}/km²
| {{{population_density}}}/km²
|- class="mergedtoprow"


<!-----------Education----------->
|- class="mergedtoprow" <!-----------Education----------->
!colspan="2"| Education
!colspan="2"| Education
|- class="mergedrow"
|- class="mergedrow"
Line 58: Line 43:


|- class="mergedrow"
|- class="mergedrow"
| &nbsp;- Mandatory Years
| &nbsp;- Compulsory Years
| {{{mandatory_school_years}}}
| {{{mandatory_school_years}}}
|- class="mergedtoprow"
|- class="mergedtoprow"


|- class="mergedrow"
|- class="mergedrow"
| &nbsp;- Mandatory Age
| &nbsp;- Compulsory Age
| {{{mandatory_school_age}}}
| {{{mandatory_school_age}}}
|- class="mergedtoprow"
|- class="mergedtoprow"
Line 75: Line 60:
| &nbsp;- Pop. in School
| &nbsp;- Pop. in School
| {{{population_in_mandatory_school}}}
| {{{population_in_mandatory_school}}}
|- class="mergedtoprow"


|- class="mergedtoprow" <!-----------GDP----------->

! GDP (PPP)<font size="1">&nbsp;{{{GDP_PPP_year}}} est.</font>
<!-----------GDP----------->
| {{{GDP_PPP}}}
! GDP (PPP)
| {{{GDP_PPP_year}}} estimate
|- class="mergedrow"
| &nbsp;- Total
| {{{GDP_PPP}}}&nbsp;
|- class="mergedbottomrow"
|- class="mergedbottomrow"
| &nbsp;- Per capita
| &nbsp;- Per capita
| {{{GDP_PPP_per_capita}}}&nbsp;
| {{{GDP_PPP_per_capita}}}
|-
|-
! GDP (nominal)
! GDP (nominal)<font size="1">&nbsp;{{{GDP_nominal_year}}} est.</font>
| {{{GDP_nominal_year}}} estimate
| {{{GDP_nominal}}}
|- class="mergedrow"
| &nbsp;- Total
| {{{GDP_nominal}}}&nbsp;
|- class="mergedbottomrow"
|- class="mergedbottomrow"
| &nbsp;- Per capita
| &nbsp;- Per capita
| {{{GDP_nominal_per_capita}}}
| {{{GDP_nominal_per_capita}}}
|-


<!-----------HDI----------->
|- <!-----------HDI----------->
! '''HDI'''&nbsp;&nbsp;({{{HDI_year}}})
! [http://en.wikipedia.org/wiki/Human_Development_Index '''HDI''']<font size="1">&nbsp;&nbsp;({{{HDI_year}}})</font>
| {{{HDI}}}&nbsp;({{{HDI_category}}})
| {{{HDI}}}&nbsp;({{{HDI_category}}})
|-


<!-----------Time zone----------->
|- <!-----------Gini Index----------->
! [http://en.wikipedia.org/wiki/Gini_coefficient '''Gini Index''']<font size="1">&nbsp;&nbsp;({{{Gini_year}}})</font>
| {{{Gini_index}}}

|- <!-----------Time zone----------->
! Time zone
! Time zone
| {{{time_zone}}} (UTC{{{utc_offset}}})
| {{{time_zone}}} (UTC{{{utc_offset}}})
|- {{#if:{{{DST_note<includeonly>|</includeonly>}}}|<!--then:-->class="mergedrow"|<!--else:-->class="mergedbottomrow"}}
|- {{#if:{{{DST_note<includeonly>|</includeonly>}}}|<!--then:-->class="mergedrow"|<!--else:-->class="mergedbottomrow"}}
|- class="mergedtoprow"



<!-----------Internet TLD----------->
|- class="mergedtoprow" <!-----------Internet TLD----------->
! Internet TLD
! Internet TLD
| {{{cctld}}}
| {{{cctld}}}
|- class="mergedbottomrow"


|- class="mergedbottomrow" <!-----------Calling code---------->

<!-----------Calling code---------->
! Calling code
! Calling code
| +{{{calling_code}}}
| +{{{calling_code}}}
|-


|- <!----------Stats---------->
|colspan="2" class="mergedtoprow" align="center"| <font size="1">[[OLPC country statistics|More statistics...]]</font>


|}<noinclude>
|}<noinclude>
<br clear="all">
</noinclude>

== Usage ==

See also the [[Template talk:Country info|documentation]]:
<nowiki>{{Country info
|Nigeria = <!-- República Argentina - value from Wikipedia -->
|Nigeria = <!-- Argentina - value from Wikipedia -->
|image_map = <!-- [[Image:CountryMapArgentina.png]] -->
|conventional_long_name = <!-- Argentine Republic - value from Wikipedia -->
|capital = <!-- Buenos Aires - value from Wikipedia -->
|official_languages = <!-- [[Spanish language|Spanish]] -->
|area = <!-- 2,766,890 - value from [[OLPC Country Statistics]] -->
|population_estimate_year = <!-- 2005 - value from [[OLPC Country Statistics]] -->
|population_estimate = <!-- 39,537,943 - value from [[OLPC Country Statistics]] -->
|population_census_year = <!-- 2001 - value from Wikipedia -->
|population_census = <!-- 36,260,130 - value from [[OLPC Country Statistics]] -->
|population_density = <!-- 14 - value from Wikipedia -->
|population_literacy = <!-- 97.5 - value from [[OLPC Country Statistics]] -->
|mandatory_school_years = <!-- 9 - value datamined from local sources -->
|mandatory_school_age = <!-- 6-15 - value datamined from local sources -->
|population_in_mandatory_age = <!-- ~6,800,000 - value datamined from local sources -->
|population_in_mandatory_school = <!-- ~6,200,000 - value datamined from local sources -->
|GDP_PPP_year = <!-- 2005 - value from [[OLPC Country Statistics]] -->
|GDP_PPP = <!-- USD 543 billion - value from [[OLPC Country Statistics]] -->
|GDP_PPP_per_capita = <!-- USD 13,700 - value from [[OLPC Country Statistics]] -->
|GDP_nominal_year = <!-- 2005 - value from [[OLPC Country Statistics]] -->
|GDP_nominal = <!-- USD 182 billion - value from [[OLPC Country Statistics]] -->
|GDP_nominal_per_capita = <!-- USD 4,600 - value from [[OLPC Country Statistics]] -->
|HDI_year = <!-- 2006 - value from Wikipedia -->
|HDI = <!-- 0.863 - value from Wikipedia -->
|HDI_category = <!-- high | medium | low - value from Wikipedia -->
|Gini_year = <!-- 2001 - value from [[OLPC Country Statistics]] -->
|Gini_index = <!-- 52.2 - value from [[OLPC Country Statistics]] -->
|time_zone = <!-- ART - value from Wikipedia -->
|utc_offset = <!-- -3 - value from Wikipedia -->
|cctld = <!-- .ar - value from Wikipedia -->
|calling_code = <!-- 54 - value from Wikipedia -->
}}</nowiki>

[[Category:Template]]</noinclude>

Latest revision as of 09:33, 24 July 2009

For a quick copy paste usage of the template (scroll to) see below or see the documentation in the discussion tab.

{{{native_name}}}
{{{conventional_long_name}}}
{{{image_map}}}
Capital {{{capital}}}
Official languages {{{official_languages}}}
Area {{{area}}} km²
Population
 - {{{population_estimate_year}}} estimate {{{population_estimate}}}
 - {{{population_census_year}}} census {{{population_census}}}
 - Density {{{population_density}}}/km²
Education
 - Literacy (%) {{{population_literacy}}}
 - Compulsory Years {{{mandatory_school_years}}}
 - Compulsory Age {{{mandatory_school_age}}}
 - Pop. in School Age {{{population_in_mandatory_age}}}
 - Pop. in School {{{population_in_mandatory_school}}}
GDP (PPP) {{{GDP_PPP_year}}} est. {{{GDP_PPP}}}
 - Per capita {{{GDP_PPP_per_capita}}}
GDP (nominal) {{{GDP_nominal_year}}} est. {{{GDP_nominal}}}
 - Per capita {{{GDP_nominal_per_capita}}}
HDI  ({{{HDI_year}}}) {{{HDI}}} ({{{HDI_category}}})
Gini Index  ({{{Gini_year}}}) {{{Gini_index}}}
Time zone {{{time_zone}}} (UTC{{{utc_offset}}})
Internet TLD {{{cctld}}}
Calling code +{{{calling_code}}}
More statistics...


Usage

See also the documentation:

{{Country info
 |Nigeria                     =   <!-- República Argentina - value from Wikipedia -->
 |Nigeria                     =   <!-- Argentina           - value from Wikipedia -->
 |image_map                       =   <!-- [[Image:CountryMapArgentina.png]] -->
 |conventional_long_name          =   <!-- Argentine Republic  - value from Wikipedia -->
 |capital                         =   <!-- Buenos Aires        - value from Wikipedia -->
 |official_languages              =   <!-- [[Spanish language|Spanish]] -->
 |area                            =   <!-- 2,766,890  - value from [[OLPC Country Statistics]] -->
 |population_estimate_year        =   <!-- 2005       - value from [[OLPC Country Statistics]] -->
 |population_estimate             =   <!-- 39,537,943 - value from [[OLPC Country Statistics]] -->
 |population_census_year          =   <!-- 2001       - value from Wikipedia -->
 |population_census               =   <!-- 36,260,130 - value from [[OLPC Country Statistics]] -->
 |population_density              =   <!-- 14         - value from Wikipedia -->
 |population_literacy             =   <!-- 97.5       - value from [[OLPC Country Statistics]] -->
 |mandatory_school_years          =   <!-- 9          - value datamined from local sources -->
 |mandatory_school_age            =   <!-- 6-15       - value datamined from local sources -->
 |population_in_mandatory_age     =   <!-- ~6,800,000 - value datamined from local sources -->
 |population_in_mandatory_school  =   <!-- ~6,200,000 - value datamined from local sources -->
 |GDP_PPP_year                    =   <!-- 2005            - value from [[OLPC Country Statistics]] -->
 |GDP_PPP                         =   <!-- USD 543 billion - value from [[OLPC Country Statistics]] -->
 |GDP_PPP_per_capita              =   <!-- USD 13,700      - value from [[OLPC Country Statistics]] -->
 |GDP_nominal_year                =   <!-- 2005            - value from [[OLPC Country Statistics]] -->
 |GDP_nominal                     =   <!-- USD 182 billion - value from [[OLPC Country Statistics]] -->
 |GDP_nominal_per_capita          =   <!-- USD 4,600       - value from [[OLPC Country Statistics]] -->
 |HDI_year                        =   <!-- 2006                - value from Wikipedia -->
 |HDI                             =   <!-- 0.863               - value from Wikipedia -->
 |HDI_category                    =   <!-- high | medium | low - value from Wikipedia -->
 |Gini_year                       =   <!-- 2001       - value from [[OLPC Country Statistics]] -->
 |Gini_index                      =   <!-- 52.2       - value from [[OLPC Country Statistics]] -->
 |time_zone                       =   <!-- ART        - value from Wikipedia -->
 |utc_offset                      =   <!-- -3         - value from Wikipedia -->
 |cctld                           =   <!-- .ar        - value from Wikipedia -->
 |calling_code                    =   <!-- 54         - value from Wikipedia -->
 }}