Templat:Infobox country/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan Tag: Suntingan visualeditor-wikitext |
k →Syntax Tag: halaman dengan galat skrip |
||
(4 revisi perantara oleh 3 pengguna tidak ditampilkan) | |||
Baris 1:
{{#ifeq:{{{nested|no}}}|no|{{documentation subpage}}{{intricate template}}{{hatnote|{{tl|Infobox geopolitical organisation}} and {{tl|Infobox former country}} redirect here; related parameters and examples are included below.}}}}
This infobox template is used to generate an infobox for the right-hand side of two specific types of article: on a country or territory, or on a geopolitical organisation. Parameter syntax and examples are detailed in the collapsed sections immediately below.
__FORCETOC__
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Coordinates|Module:Check for unknown parameters}}
== Sintaks ==
<!---------------------- Country/territory use ---------------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title=Country or territory}}
<pre style="overflow:auto;">
{{Infobox country
|micronation = <!--yes if a micronation-->
Baris 33 ⟶ 24:
|alt_coat = <!--alt text for coat of arms-->
|symbol_type = <!--emblem, seal, etc (if not a coat of arms)-->
|national_motto = <!--in inverted commas and wikilinked if link exists-->
|englishmotto = <!--English language version of motto-->
Baris 63 ⟶ 53:
|ethnic_groups = <!--List/breakdown of ethnic groups within the country/territory-->
|ethnic_groups_year = <!--Year of ethnic groups data (if provided)-->
|ethnic_groups_ref = <!--(for any ref/s to associate with ethnic groups data)-->
|religion = <!--Religion-->
|religion_year = <!--Year of religion data (if provided)-->
|religion_ref = <!--(for any ref/s to associate with religion data)-->
|demonym = <!--Term/s describing those associated with the country/territory (e.g. "Belgian" for the country Belgium)-->
|government_type = <!--(often a compound multi-wikilinked term, e.g. "Federal semi-presidential constitutional republic", etc)-->
Baris 106 ⟶ 96:
|population_density_rank =
|nummembers = <!--An alternative to population for micronation-->
|GDP_PPP =
|GDP_PPP_rank =
|GDP_PPP_year =
Baris 116 ⟶ 106:
|GDP_nominal_per_capita =
|GDP_nominal_per_capita_rank =
|Gini =
|Gini_ref =
|Gini_rank =
|Gini_year =
Baris 133 ⟶ 123:
|DST_note = <!--Optional note regarding DST use-->
|antipodes = <!--Place/s exactly on the opposite side of the world to country/territory-->
|date_format = <!--all-numeric
|electricity = <!--e.g. "230 V–50 Hz"-->
|drives_on = <!--"right" or "left" (side of road)-->
|cctld = <!--Internet country code top-level domain identifier (e.g. [[.br]], [[.de]], etc)
Baris 148 ⟶ 139:
}}
</pre>
{{hidden begin |toggle=leftlink |title=France-specific parameters}}
Note: Now redundant.
Baris 166 ⟶ 158:
{{hidden end}}<!--(France-specific parameters)-->
{{smaller|* If, on a particular page, the default widths provided for the flag and coat-of-arms/symbol images produce an unsatisfactory result, use ''flag_width'' (as % or px) to specify the width to be used for the flag image; the remaining width is then assigned to the coat-of-arms/symbol (if included).}}
{{hidden end}}
<!------------------------- Geopolitical use -------------------------->
<pre style="overflow:auto;">
{{Infobox geopolitical organization
|name = <!-- (in English) -->
Baris 250 ⟶ 242:
}}
</pre>
{{hidden end}}
<!-------------------- Former country use ---------------------->
<pre style="overflow:auto;">
{{Infobox former country
|native_name = <!-- Name in a modern syntax of native language(s). Leave blank if name is only in English.
Baris 349 ⟶ 338:
|leader3 =
|leader4 =
<!--......-->
|leader21 = <!--(up to 21 distinct leaders may be included)-->
|year_leader1 = <!-- Years served -->
|year_leader2 =
|year_leader3 =
|year_leader4 =
<!--......-->
|year_leader21 =
|title_leader = <!-- Default: "King" for monarchy, otherwise "President" -->
|representative1 = <!-- Name of representative of head of state (e.g. colonial governor) -->
Baris 358 ⟶ 351:
|representative3 =
|representative4 =
|representative5 =
|year_representative1 = <!-- Years served -->
|year_representative2 =
|year_representative3 =
|year_representative4 =
|year_representative5 =
|title_representative = <!-- Default: "Governor" -->
|deputy1 = <!-- Name of prime minister -->
Baris 394 ⟶ 389:
|stat_area5 =
|stat_pop5 =
|today = <!--
|footnote_a = <!-- Accepts wikilinks -->
|footnote_b = <!-- Accepts wikilinks -->
Baris 402 ⟶ 397:
}}</pre>
{{hidden end}}<!----(Former country)---->
== Contoh ==
<!------------------ Country/territory example ------------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title = Negara/wilayah}}
{{Infobox country
|conventional_long_name =
|native_name = {{lang|fr|République du Cameroun}}
|common_name = Cameroon
Baris 435 ⟶ 426:
| <1% non-African
}}
|capital = [[Yaoundé]]
|coordinates = {{coord|3|52|N|11|31|E}}
|largest_city = [[Douala]]
|government_type = [[
|leader_title1 = [[List of heads of state of Cameroon|President]]
|leader_name1 = [[Paul Biya]]
|leader_title2 = [[
|leader_name2 = [[Philémon Yang]]
|legislature = [[National Assembly (Cameroon)|National Assembly]]
Baris 448 ⟶ 439:
|area_sq_mi = 183,568 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 1.3 <!--CIA World Factbook-->
|population_estimate = 20,129,878
|population_estimate_rank = 58th <!--UN World Population Prospects-->
|population_estimate_year = July 2012
|population_census = 17,463,836
|population_census_year = 2005
|population_density_km2 = 39.7
|population_density_sq_mi = 102.8 <!--Do not remove per [[WP:MOSNUM]]-->
|population_density_rank = 167th <!--UN World Population Prospects-->
|GDP_PPP = $47.251 billion
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $2,257
|GDP_PPP_per_capita_rank =
|GDP_nominal = $25.759 billion
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $1,230
|sovereignty_type = Independence {{nobold|from [[France]]}}
|established_event1 = Declared
Baris 471 ⟶ 462:
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.482 <!--number only-->
|HDI_ref =
|HDI_rank = 150th
|Gini_year = 2001
|Gini_change = <!--increase/decrease/steady-->
|Gini = 44.6 <!--number only-->
|Gini_ref =
|Gini_rank =
|currency = [[Central African CFA franc]]
Baris 484 ⟶ 475:
|time_zone_DST =
|utc_offset_DST =
|electricity =
|drives_on = right
|calling_code = [[+237]]
|cctld = [[.cm]]
|footnote_a =
}}
<pre style="font-size:95%;overflow:auto;">
{{Infobox country
|conventional_long_name =
|native_name = {{lang|fr|République du Cameroun}}
|common_name = Cameroon
Baris 516 ⟶ 508:
| <1% non-African
}}
|capital = [[Yaoundé]]
|coordinates = {{coord|3|52|N|11|31|E}}
|largest_city = [[Douala]]
|government_type = [[
|leader_title1 = [[List of heads of state of Cameroon|President]]
|leader_name1 = [[Paul Biya]]
|leader_title2 = [[
|leader_name2 = [[Philémon Yang]]
|legislature = [[National Assembly (Cameroon)|National Assembly]]
Baris 529 ⟶ 521:
|area_sq_mi = 183,568 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 1.3 <!--CIA World Factbook-->
|population_estimate = 20,129,878
|population_estimate_rank = 58th <!--UN World Population Prospects-->
|population_estimate_year = July 2012
|population_census = 17,463,836
|population_census_year = 2005
|population_density_km2 = 39.7
|population_density_sq_mi = 102,8 <!--Do not remove per [[WP:MOSNUM]]-->
|population_density_rank = 167th <!--UN World Population Prospects-->
|GDP_PPP = $47.251 billion
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $2,257
|GDP_PPP_per_capita_rank =
|GDP_nominal = $25.759 billion
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $1,230
|sovereignty_type = Independence {{nobold|from [[France]]}}
|established_event1 = Declared
Baris 552 ⟶ 544:
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.482 <!--number only-->
|HDI_ref =
|HDI_rank = 150th
|Gini_year = 2001
|Gini_change = <!--increase/decrease/steady-->
|Gini = 44.6 <!--number only-->
|Gini_ref =
|Gini_rank =
|currency = [[Central African CFA franc]]
Baris 565 ⟶ 557:
|time_zone_DST = not observed
|utc_offset_DST = +1
|electricity =
|drives_on = right
|calling_code = [[+237]]
|cctld = [[.cm]]
|footnote_a =
}}
</pre>
{{hidden end}}
<!-------------- Contoh organisasi geopolitik --------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title= Organsasi geopolitik}}
{{Infobox geopolitical organization
|name =
{{collapsible list
|titlestyle = background:transparent;text-align:center;font-size:85%;
|title = {{resize|130%|European Union}}
|liststyle = text-align:center;
Baris 612 ⟶ 602:
|image_flag = Flag of Europe.svg
|alt_flag = Circle of 12 gold stars on a blue background
|motto = "[[Motto of the European Union|United in diversity]]"
|anthem = <div style="padding-bottom:0.2em;">"[[Anthem of Europe|Ode to Joy]]" {{small|(orchestral)}}</div>[[File:Anthem of Europe (US Navy instrumental short version).ogg|center]]
|image_map = EU Globe No Borders.svg
|map_caption = An [[Orthographic projection (cartography)|orthographic projection]] of the world, highlighting the European Union and its Member States (green).
|map_width = 220px
|admin_center_type = Political centres
|admin_center = {{unbulleted list |[[Brussels]] ([[Brussels and the European Union|de facto capital]])
|largest_city = [[London]]
|official_languages =
Baris 629 ⟶ 616:
| {{hlist |[[Bulgarian language|Bulgarian]] |[[Croatian language|Croatian]] |[[Czech language|Czech]] |[[Danish language|Danish]] |[[Dutch language|Dutch]] |[[English language|English]] |[[Estonian language|Estonian]] |[[Finnish language|Finnish]] |[[French language|French]] |[[German language|German]] |[[Greek language|Greek]] |[[Hungarian language|Hungarian]] |[[Irish language|Irish]] |[[Italian language|Italian]] |[[Latvian language|Latvian]] |[[Lithuanian language|Lithuanian]] |[[Maltese language|Maltese]] |[[Polish language|Polish]] |[[Portuguese language|Portuguese]] |[[Romanian language|Romanian]] |[[Slovak language|Slovak]] |[[Slovene language|Slovene]] |[[Spanish language|Spanish]] |[[Swedish language|Swedish]]}}
}}
|demonym = [[Citizenship of the European Union|European]]
|membership_type = [[Member state of the European Union|Member state]]s
|membership =
Baris 647 ⟶ 634:
}}
|leader_title1 = [[President of the European Council|President of the European Council]]
|leader_name1 = {{nowrap|[[
|leader_title2 = [[President of the European Commission|President of the Commission]]
|leader_name2 = {{nowrap|[[
|legislature = [[Legislature of the European Union]]
|upper_house = {{nowrap|[[Council of the European Union]]}}
Baris 664 ⟶ 651:
|area_sq_mi = 1,691,658 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 3.08
|population_estimate = 507,890,191
|population_estimate_rank = 3rd<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|population_estimate_year = 2012
Baris 671 ⟶ 658:
|population_density_rank = <!--Calculated by taking out EU members from the list-->
<!--IMF GDP data published in September 2011; so please do not use the IMF *projections* for 2011-->
|GDP_PPP = $15.821 trillion
|GDP_PPP_rank = 1st<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $31,607
|GDP_PPP_per_capita_rank = 15th<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal = $17.577 trillion
|GDP_nominal_rank = 1st<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $35,116
|GDP_nominal_per_capita_rank = 14th<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|Gini_year = 2010
|Gini_change = <!--increase/decrease/steady-->
|Gini = 30.4 <!--number only-->
|Gini_ref =
|Gini_rank =
|HDI_year = 2011
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.876 <!--number only-->
|HDI_ref =
|HDI_rank = 13th<!--Calculated by taking out EU members from the list-->{{\}}25th<sup>a</sup><!--Calculated with EU members in the list-->
|currency =
Baris 717 ⟶ 704:
|utc_offset = +0 to +2
|time_zone_DST =
|utc_offset_DST = +1 to +3
|date_format =
|cctld = [[.eu]]
|calling_code = [[Telephone numbers in the European Union|28 codes]]
|footnote_a = If considered as a single entity.
Baris 728 ⟶ 715:
|name =
{{collapsible list
|titlestyle = background:transparent;text-align:center;font-size:85%;
|title = {{resize|130%|European Union}}
|liststyle = text-align:center;
Baris 759 ⟶ 746:
|image_flag = Flag of Europe.svg
|alt_flag = Circle of 12 gold stars on a blue background
|motto = "[[Motto of the European Union|United in diversity]]"
|anthem = <div style="padding-bottom:0.2em;">''[[Anthem of Europe|Ode to Joy]]'' {{small|(orchestral)}}</div><center>[[File:Anthem of Europe (US Navy instrumental short version).ogg]]</center>
|image_map = EU Globe No Borders.svg
|map_caption = An [[Orthographic projection (cartography)|orthographic projection]] of the world, highlighting the European Union and its Member States (green).
|map_width = 220px
|admin_center_type = Political centres
|admin_center = {{unbulleted list |[[Brussels]] ([[Brussels and the European Union|de facto capital]])
|largest_city = [[London]]
|official_languages =
Baris 776 ⟶ 760:
| {{hlist |[[Bulgarian language|Bulgarian]] |[[Croatian language|Croatian]] |[[Czech language|Czech]] |[[Danish language|Danish]] |[[Dutch language|Dutch]] |[[English language|English]] |[[Estonian language|Estonian]] |[[Finnish language|Finnish]] |[[French language|French]] |[[German language|German]] |[[Greek language|Greek]] |[[Hungarian language|Hungarian]] |[[Irish language|Irish]] |[[Italian language|Italian]] |[[Latvian language|Latvian]] |[[Lithuanian language|Lithuanian]] |[[Maltese language|Maltese]] |[[Polish language|Polish]] |[[Portuguese language|Portuguese]] |[[Romanian language|Romanian]] |[[Slovak language|Slovak]] |[[Slovene language|Slovene]] |[[Spanish language|Spanish]] |[[Swedish language|Swedish]]}}
}}
|demonym = [[Citizenship of the European Union|European]]
|membership_type = [[Member state of the European Union|Member state]]s
|membership =
Baris 794 ⟶ 778:
}}
|leader_title1 = [[President of the European Council|President of the European Council]]
|leader_name1 = {{nowrap|[[
|leader_title2 = [[President of the European Commission|President of the Commission]]
|leader_name2 = {{nowrap|[[
|legislature = [[Legislature of the European Union]]
|upper_house = {{nowrap|[[Council of the European Union]]}}
Baris 811 ⟶ 795:
|area_sq_mi = 1,691,658 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 3.08
|population_estimate = 507,890,191
|population_estimate_rank = 3rd<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|population_estimate_year = 2012
Baris 818 ⟶ 802:
|population_density_rank = <!--Calculated by taking out EU members from the list-->
<!--IMF GDP data published in September 2011; so please do not use the IMF *projections* for 2011-->
|GDP_PPP = $15.821 trillion
|GDP_PPP_rank = 1st<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $31,607
|GDP_PPP_per_capita_rank = 15th<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal = $17.577 trillion
|GDP_nominal_rank = 1st<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $35,116
|GDP_nominal_per_capita_rank = 14th<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|Gini_year = 2010
|Gini_change = <!--increase/decrease/steady-->
|Gini = 30.4 <!--number only-->
|Gini_ref =
|Gini_rank =
|HDI_year = 2011
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.876 <!--number only-->
|HDI_ref =
|HDI_rank = 13th<!--Calculated by taking out EU members from the list-->{{\}}25th<sup>a</sup><!--Calculated with EU members in the list-->
|currency =
Baris 864 ⟶ 848:
|utc_offset = +0 to +2
|time_zone_DST =
|utc_offset_DST = +1 to +3
|date_format =
|cctld = [[.eu]]
|calling_code = [[Telephone numbers in the European Union|28 codes]]
|footnote_a = If considered as a single entity.
}}
</pre>
{{
<!----(Contoh organisasi geopolitik )---->
<!------------------ Contoh bekas negara ------------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title= Bekas negara}}
Contoh dari [[German Empire|Kekaisaran Jerman]]:
{{Infobox former country
Baris 981 ⟶ 965:
*[[German Papiermark|Papiermark]] <small>(after 1914)</small>
}}
|footnotes = Area and population not including colonial possessions
|today =
}}
Baris 1.097 ⟶ 1.073:
*[[German Papiermark|Papiermark]] <small>(after 1914)</small>
}}
|footnotes = Area and population not including colonial possessions
|today =
}}
</pre>
{{hidden end}}
== Errors ==
If the template generates errors when calculating data for the Gini or HDI fields, it will add the article to [[:Category:Country articles requiring maintenance]]. This only happens if the page is in the [[WP:MAINSPACE|main article space]], not any other [[WP:NAMESPACE|namespaces]].
Baris 1.125 ⟶ 1.089:
* {{clc|Pages using infobox country with syntax problems}}
* {{clc|Pages using infobox country with unknown parameters}}
* {{clc|Pages using infobox country or infobox former country with the flag caption or type parameters}}
* {{clc|Pages using infobox country or infobox former country with the symbol caption or type parameters}}
* {{clc|Former country articles using status text with Colony or Exile}}
== TemplateData ==
Baris 1.511 ⟶ 1.478:
"type": "string",
"required": false,
"description": "Reference, in <ref> format, of ethnic composition"
},
"ethnic_groups_year": {
Baris 2.116 ⟶ 2.082:
"required": false,
"description": "Gross domestic product (purchasing power parity)",
"example": "$554.855 billion
"suggested": true
},
Baris 2.139 ⟶ 2.105:
"required": false,
"description": "Gross domestic product (purchasing power parity) per capita",
"example": "$98,014
},
"GDP_PPP_per_capita_rank": {
Baris 2.172 ⟶ 2.138:
"required": false,
"description": "Nominal GDP per capita in the country",
"example": "$61,766
},
"GDP_nominal_per_capita_rank": {
Baris 2.206 ⟶ 2.172:
"type": "line",
"required": false,
"description": "Reference for cited Gini index statistic"
},
"Gini_rank": {
Baris 2.243 ⟶ 2.208:
"type": "line",
"required": false,
"description": "Reference for HDI statistic"
},
"HDI_rank": {
Baris 2.306 ⟶ 2.270:
"date_format": {
"label": "Date format",
"type": "string",
"required": false
},
"electricity": {
"label": "Mains electricity",
"type": "string",
"required": false
|