Template:Infobox Country: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>
==Usage==
 
===Example 1===
<pre>
 
{{Infobox Country
| conventional_long_name = Republic of Singapore<br/>Republik Singapura<br/>新加坡共和国<br/>சிங்கப்பூர் குடியரசு
| common_name = Singapore
| image_flag = Flag_of_Singapore.svg
| image_coat = State_Crest_of_Singapore.png
| national_anthem = Majulah Singapura
| image_map = Singapore_on_the_globe_(Southeast_Asia_centered)_zoom.svg
| capital = Singapore
| largest_city = Bedok
| official_languages = [[English language|English]], Malay, Mandarin, Tamil
| government_type = Unitary parliamentary republic
| leader_title1 = President
| leader_name1 = [[Tharman Shanmugaratnam]]
| leader_title2 = Prime Minister
| leader_name2 = [[Lawrence Wong]]
| area = 
| areami² =
| population_estimate =
| population_estimate_rank =
| population_estimate_year =
| population_density =
| population_density_rank =
| population_densitymi²=
| currency = Singapore Dollar
| currency_code= SGD
| HDI =
| HDI_category =
| HDI_rank =
| HDI_year =
| time_zone = UTC
| utc_offset = +8
| time_zone_DST =
| utc_offset_DST =
| cctld = .sg
| calling_code = 65
}}
</pre>
 
===Example 2===
 
<pre>
{{Infobox
{{Infobox
| title    = {{{name|{{{conventional_long_name|{{{native_name|{{PAGETITLE}} }}} }}} }}}
| title    = {{{name|{{{conventional_long_name|{{{native_name|{{PAGETITLE}} }}} }}} }}}
Line 77: Line 122:


}}
}}
</includeonly><noinclude>{{TlDoc}}</noinclude>
</pre>

Revision as of 23:46, 8 September 2024

Usage

Example 1


{{Infobox Country
| conventional_long_name = Republic of Singapore<br/>Republik Singapura<br/>新加坡共和国<br/>சிங்கப்பூர் குடியரசு
| common_name = Singapore
| image_flag = Flag_of_Singapore.svg
| image_coat = State_Crest_of_Singapore.png
| national_anthem = Majulah Singapura
| image_map = Singapore_on_the_globe_(Southeast_Asia_centered)_zoom.svg
| capital = Singapore
| largest_city = Bedok
| official_languages = [[English language|English]], Malay, Mandarin, Tamil
| government_type = Unitary parliamentary republic
| leader_title1 = President
| leader_name1 = [[Tharman Shanmugaratnam]]
| leader_title2 = Prime Minister
| leader_name2 = [[Lawrence Wong]]
| area =  
| areami² = 
| population_estimate = 
| population_estimate_rank = 
| population_estimate_year =
| population_density = 
| population_density_rank = 
| population_densitymi²= 
| currency = Singapore Dollar
| currency_code= SGD
| HDI = 
| HDI_category = 
| HDI_rank =
| HDI_year = 
| time_zone = UTC
| utc_offset = +8
| time_zone_DST =
| utc_offset_DST =
| cctld = .sg
| calling_code = 65
}}

Example 2

{{Infobox
| title    = {{{name|{{{conventional_long_name|{{{native_name|{{PAGETITLE}} }}} }}} }}}
| subtitle = {{#ifeq:{{{name|{{{conventional_long_name|{{{native_name|{{PAGETITLE}} }}} }}} }}}|{{{native_name|}}}||{{{native_name|}}} }}

| 1_data   = {{#if: {{{image_map|}}} | [[Image:{{{image_map}}}|300px]] }}
| 1_datastyle = text-align:center; padding:0.5em;

| 2_data   = {{#if:{{{image_flag|}}}|[[Image:{{{image_flag}}}|200x90px]]}} {{#if:{{{image_flag|}}}|{{#if:{{{image_coat|}}}|   }} }} {{#if:{{{image_coat|}}}|[[Image:{{{image_coat}}}|100x100px]]}}
| 2_datastyle = text-align:center; padding:1em;

| 3_label  = Motto
| 3_data   = {{{national_motto|}}}

| 4_label  = National anthem
| 4_data   = {{{national_anthem|}}}

| 6_label  = Capital {{#ifeq:{{{capital|}}}|{{{largest_city|}}}|(and largest city)}}
| 6_data   = {{{capital|}}}

| 7_label  = Largest city
| 7_data   = {{#ifeq:{{{capital|}}}|{{{largest_city|}}}||{{{largest_city|}}} }}<!-- if same as capital, don't show -->

| 8_label  = Official language
| 8_data   = {{{official_languages|}}}

| 9_label  = Ethnic group
| 9_data   = {{{ethnic_groups|}}}

| 10_label = Government type
| 10_data  = {{{government_type|}}}

| 11_label = {{{leader_title1|}}}
| 11_data  = {{{leader_name1|}}}

| 12_label = {{{leader_title2|}}}
| 12_data  = {{{leader_name2|}}}

| 13_label = {{{leader_title3|}}}
| 13_data  = {{{leader_name3|}}}

| 14_label = {{{leader_title4|}}}
| 14_data  = {{{leader_name4|}}}

| 15_label = {{{leader_title5|}}}
| 15_data  = {{{leader_name5|}}}

| 16_label = Accession to EU
| 16_data  = {{{accessionEUdate|}}}

| 17_label = Area
| 17_data  = {{#if:{{{area|}}}|{{{area}}} km²}} {{#if:{{{areami²|}}}|<br/>{{{areami²}}} mi²}} {{#if:{{{area_rank|}}}|({{{area_rank}}})}} {{#if:{{{percent_water|}}}|<br />({{{percent_water}}} % water)}}

| 18_label = Population
| 18_data  = {{{population_estimate|}}} {{#if:{{{population_estimate_rank|}}}|({{{population_estimate_rank}}})}} {{#if:{{{population_estimate_year|}}}|<br />({{{population_estimate_year}}} estimate)}} {{{population_census|}}} {{#if:{{{population_census_rank|}}}|({{{population_census_rank}}})}} {{#if:{{{population_census_year|}}}|<br />({{{population_census_year}}} census)}}

| 19_label = Population density
| 19_data  = {{#if:{{{population_density|}}}|{{{population_density}}}/km²}} {{#if:{{{population_density_rank|}}}|({{{population_density_rank}}})}} {{#if:{{{population_densitymi²|}}}|<br />{{{population_densitymi²}}} mi²}} 

| 20_label = [[Gross domestic product|GDP]] ([[Purchasing power parity|PPP]])
| 20_data  = {{#if:{{{GDP_PPP|}}}|Total:{{{GDP_PPP}}} {{#if:{{{GDP_PPP_rank|}}}|({{{GDP_PPP_rank}}})}} {{#if:{{{GDP_PPP_per_capita|}}}|<br />Per capita:{{{GDP_PPP_per_capita}}} {{#if:{{{GDP_PPP_per_capita_rank|}}}|({{{GDP_PPP_per_capita_rank}}})}} }} {{#if:{{{GDP_PPP_year|}}}|<br />({{{GDP_PPP_year}}} estimate)}} }}

| 21_label = [[Gross domestic product|GDP]] (nominal)
| 21_data  = {{#if:{{{GDP_nominal|}}}|Total:{{{GDP_nominal}}} {{#if:{{{GDP_nominal_rank|}}}|({{{GDP_nominal_rank}}})}} }} {{#if:{{{GDP_nominal_per_capita|}}}|<br />Per capita:{{{GDP_nominal_per_capita}}} {{#if:{{{GDP_nominal_per_capita_rank|}}}|({{{GDP_nominal_per_capita_rank}}})}} }}

| 22_label = [[Human Development Index|HDI]]
| 22_data  = {{{HDI|}}} {{#if:{{{HDI_category|}}}|({{{HDI_category}}})}} {{#if:{{{HDI_rank|}}}|({{{HDI_rank}}})}} {{#if:{{{HDI_year|}}}|({{{HDI_year}}})}}

| 23_label = Currency
| 23_data  = {{{currency|}}} {{#if:{{{currency_code|}}}|({{{currency_code}}})}}

| 24_label = Time zone
| 24_data  = {{{time_zone|}}} {{#if:{{{utc_offset|}}}|([[UTC]]{{{utc_offset}}})}} {{#if:{{{time_zone_DST|}}}|<br />Summer:{{{time_zone_DST}}} {{#if:{{{utc_offset_DST|}}}|([[UTC]]{{{utc_offset_DST}}})}} }}

| 25_label = Country codes
| 25_data  = {{#if:{{{cctld|}}}|Internet TLD : {{{cctld}}} }} {{#if:{{{calling_code|}}}|{{#if:{{{cctld|}}}|<br />}}Calling code : +{{{calling_code}}} }}

}}