Template:Infobox country: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{{#invoke:Infobox|infobox | ||
| | | titlestyle = background-color: #eaecf0; | ||
| subheaderstyle = background-color: #eaecf0; | |||
| | | imagestyle = border-top: 1px solid #a2a9b1; | ||
| imagestyle2 = border-top: 1px solid #a2a9b1; | |||
| title = {{{common_name|{{PAGENAME}}}}} | |||
<table style="width: 100%; border-collapse: collapse; background: transparent;"> | | subheader = {{{conventional_long_name|}}} | ||
<tr> | |||
<td style="text-align: center; vertical-align: middle; padding: 0.2em; | | image = {{#if:{{{image_flag|}}}{{{image_coat|}}}| | ||
<td style="text-align: center; vertical-align: middle; padding: 0.2em; | <table style="width:100%; border-collapse:collapse; background:transparent;"> | ||
<tr>{{#if:{{{image_flag|}}}| | |||
<td style="text-align:center; vertical-align:middle; padding:0.2em;">[[File:{{{image_flag}}}|125px|border|{{{alt_flag|Flag}}}]]<br/><small>Flag</small></td>}}{{#if:{{{image_coat|}}}| | |||
<td style="text-align:center; vertical-align:middle; padding:0.2em;">[[File:{{{image_coat}}}|85px|{{{symbol_type|Coat of arms}}}]]<br/><small>{{{symbol_type|Coat of arms}}}</small></td>}} | |||
</tr> | </tr> | ||
</table> | </table>}} | ||
| | | rowstyle1 = border-top: 1px solid #a2a9b1; | ||
| data1 = {{#if:{{{national_motto|}}}|'''Motto:''' {{{national_motto}}}}} | |||
| | |||
| | | rowstyle2 = border-top: 1px solid #a2a9b1; | ||
| data2 = {{#if:{{{national_anthem|}}}|'''Anthem:''' {{{national_anthem}}}}} | |||
| | |||
| image2 = {{#if:{{{image_map|}}}|[[File:{{{image_map}}}|250px|{{{alt_map|Map}}}]]}} | |||
| | | caption2 = {{{map_caption|}}} | ||
| | |||
| rowstyle3 = border-top: 1px solid #a2a9b1; | |||
| | | label3 = Capital | ||
| | | data3 = {{{capital|}}} | ||
| | | rowstyle4 = border-top: 1px solid #a2a9b1; | ||
| | | label4 = Largest city | ||
| data4 = {{{largest_city|}}} | |||
| | |||
| | | rowstyle5 = border-top: 1px solid #a2a9b1; | ||
| label5 = Official languages | |||
| | | data5 = {{{official_languages|}}} | ||
| | |||
| rowstyle6 = border-top: 1px solid #a2a9b1; | |||
| | | label6 = Demonym(s) | ||
| | | data6 = {{{demonym|}}} | ||
| | | rowstyle7 = border-top: 1px solid #a2a9b1; | ||
| | | label7 = Government | ||
| data7 = {{{government_type|}}} | |||
| | |||
| | | rowstyle8 = border-top: 1px solid #a2a9b1; | ||
| label8 = Ideologies | |||
| | | data8 = {{{ideologies|{{{ideology|}}}}}} | ||
| | |||
| rowstyle9 = border-top: 1px solid #a2a9b1; | |||
| | | label9 = {{#if:{{{leader_title1|}}}|<span style="font-weight:normal;">• {{{leader_title1}}}</span>}} | ||
| | | data9 = {{#if:{{{leader_title1|}}}{{{leader_name1|}}}|{{{leader_name1| }}}}} | ||
| | | labelstyle10 = padding: 0.2em 0.4em; | ||
| | | datastyle10 = padding: 0.2em 0.4em; | ||
| label10 = {{#if:{{{leader_title2|}}}|<span style="font-weight:normal;">• {{{leader_title2}}}</span>}} | |||
| | | data10 = {{#if:{{{leader_title2|}}}{{{leader_name2|}}}|{{{leader_name2| }}}}} | ||
| | |||
| rowstyle11 = border-top: 1px solid #a2a9b1; | |||
| | | label11 = Area | ||
| | | data11 = {{{area|}}} | ||
| | | rowstyle12 = border-top: 1px solid #a2a9b1; | ||
| | | label12 = Population | ||
| data12 = {{{population|}}} | |||
| | |||
| | | rowstyle13 = border-top: 1px solid #a2a9b1; | ||
| label13 = GDP (PPP) | |||
| | | data13 = {{{GDP_PPP|{{{gdp_ppp|}}}}}} | ||
| | |||
| rowstyle14 = border-top: 1px solid #a2a9b1; | |||
| | | label14 = HDI | ||
| | | data14 = {{#if:{{{HDI|{{{hdi|}}}}}}|{{#iferror:{{#expr:{{{HDI|{{{hdi}}}}}} * 1}}|{{{HDI|{{{hdi}}}}}}|{{{HDI|{{{hdi}}}}}} ({{#ifexpr:{{{HDI|{{{hdi}}}}}} >= 0.800|very high|{{#ifexpr:{{{HDI|{{{hdi}}}}}} >= 0.700|high|{{#ifexpr:{{{HDI|{{{hdi}}}}}} >= 0.550|medium|low}}}}}})}}}} | ||
| | | rowstyle15 = border-top: 1px solid #a2a9b1; | ||
| label15 = Currency | |||
<noinclude> | | data15 = {{{currency|}}} | ||
| rowstyle16 = border-top: 1px solid #a2a9b1; | |||
| label16 = Time zone | |||
| data16 = {{{time_zone|}}} | |||
| rowstyle17 = border-top: 1px solid #a2a9b1; | |||
| label17 = Date format | |||
| data17 = {{{date_format|}}} | |||
| rowstyle18 = border-top: 1px solid #a2a9b1; | |||
| label18 = Calling code | |||
| data18 = {{{calling_code|}}} | |||
| rowstyle19 = border-top: 1px solid #a2a9b1; | |||
| label19 = ISO 3166 code | |||
| data19 = {{{ISO_3166_code|{{{iso_3166_code|}}}}}} | |||
| rowstyle20 = border-top: 1px solid #a2a9b1; | |||
| label20 = Internet TLD | |||
| data20 = {{{internet_tld|}}} | |||
}}</includeonly><noinclude> | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
| Line 122: | Line 146: | ||
}, | }, | ||
"image_flag": { | "image_flag": { | ||
"description": "An | "description": "An image of a flag.", | ||
"example": " | "example": "Flag_of_France.svg", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"image_coat": { | "image_coat": { | ||
"description": "An | "description": "An image of a coat of arms, symbol, logo, or emblem.", | ||
"example": " | "example": "Coat_of_arms_of_France.svg", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"alt_flag": { | "alt_flag": { | ||
"description": "Alternative flag.", | "description": "Alternative text for the flag.", | ||
"example": "War flag | "example": "War flag", | ||
"type": " | "type": "string" | ||
}, | }, | ||
"symbol_type": { | "symbol_type": { | ||
"description": "Type of symbol, if not a coat of arms.", | "description": "Type of symbol, if not a coat of arms.", | ||
"example": "Emblem | "example": "Emblem", | ||
"type": "string" | |||
}, | }, | ||
"national_motto": { | "national_motto": { | ||
| Line 144: | Line 169: | ||
}, | }, | ||
"national_anthem": { | "national_anthem": { | ||
"type": " | "type": "string" | ||
}, | }, | ||
"image_map": { | "image_map": { | ||
| Line 150: | Line 175: | ||
}, | }, | ||
"alt_map": { | "alt_map": { | ||
"type": " | "type": "string" | ||
}, | }, | ||
"map_caption": { | "map_caption": { | ||
| Line 170: | Line 195: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"demonym": {}, | "demonym": { | ||
"government_type": {}, | "type": "string" | ||
}, | |||
"government_type": { | |||
"type": "string" | |||
}, | |||
"ideologies": { | "ideologies": { | ||
"aliases": [ | "aliases": [ | ||
| Line 179: | Line 208: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"leader_title1": {}, | "leader_title1": { | ||
"leader_name1": {}, | "type": "string" | ||
"leader_title2": {}, | }, | ||
"leader_name2": {}, | "leader_name1": { | ||
"type": "string" | |||
}, | |||
"leader_title2": { | |||
"type": "string" | |||
}, | |||
"leader_name2": { | |||
"type": "string" | |||
}, | |||
"area": { | "area": { | ||
"description": "Area of the country in square kilometers", | "description": "Area of the country in square kilometers.", | ||
"example": "551,695 km²", | "example": "551,695 km²", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"population": {}, | "population": { | ||
"GDP_PPP": {}, | "type": "string" | ||
}, | |||
"GDP_PPP": { | |||
"aliases": [ | |||
"gdp_ppp" | |||
], | |||
"type": "string" | |||
}, | |||
"HDI": { | "HDI": { | ||
"aliases": [ | |||
"hdi" | |||
], | |||
"description": "The Human Development Index number of the country.", | "description": "The Human Development Index number of the country.", | ||
"example": "0.92", | "example": "0.92", | ||
| Line 202: | Line 249: | ||
"time_zone": { | "time_zone": { | ||
"description": "The timezone of the country in UTC format.", | "description": "The timezone of the country in UTC format.", | ||
"example": "UTC+1" | "example": "UTC+1", | ||
"type": "string" | |||
}, | |||
"date_format": { | |||
"type": "string" | |||
}, | }, | ||
" | "calling_code": { | ||
" | "type": "string" | ||
}, | |||
"internet_tld": {} | "ISO_3166_code": { | ||
"aliases": [ | |||
"iso_3166_code" | |||
], | |||
"type": "string" | |||
}, | |||
"internet_tld": { | |||
"type": "string" | |||
} | |||
}, | }, | ||
"format": "block" | "format": "block" | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||