Template:Infobox country: Difference between revisions

Nota (talk | contribs)
No edit summary
Nota (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width: 22em; float: right; clear: right; margin: 0.5em 0 1em 1em; border: 1px solid #a2a9b1; background-color: #f8f9fa; color: black; font-size: 88%; line-height: 1.5em; border-collapse: collapse;"
<includeonly><templatestyles src="Infobox country/styles.css" />{{#invoke:Infobox|infobox
|-
| bodyclass      = infobox-country
! colspan="2" style="text-align: center; font-size: 125%; font-weight: bold; padding: 0.4em; background-color: #eaecf0;" | {{{common_name|{{PAGENAME}}}}}
| titleclass    = infobox-title
|- style="{{{conventional_long_name|display:none;}}}"
| subheaderclass = infobox-subtitle
! colspan="2" style="text-align: center; font-size: 100%; font-weight: normal; padding: 0.2em 0.4em; background-color: #eaecf0;" | {{{conventional_long_name|}}}
| imagestyle    = border-top: 1px solid #a2a9b1;
|- style="{{{image_flag|{{{image_coat|display:none;}}}}}}"
| imagestyle2    = border-top: 1px solid #a2a9b1;
| colspan="2" style="text-align: center; padding: 0.5em; border-top: 1px solid #a2a9b1;" |
 
<table style="width: 100%; border-collapse: collapse; background: transparent;">
| title          = {{{common_name|{{PAGENAME}}}}}
<tr>
| subheader      = {{{conventional_long_name|}}}
<td style="text-align: center; vertical-align: middle; padding: 0.2em; {{{image_flag|display:none;}}}">[[File:{{{image_flag|}}}|125px|border|{{{alt_flag|Flag}}}]]<br/><small>Flag</small></td>
 
<td style="text-align: center; vertical-align: middle; padding: 0.2em; {{{image_coat|display:none;}}}">[[File:{{{image_coat|}}}|85px|{{{symbol_type|Coat of arms}}}]]<br/><small>{{{symbol_type|Coat of arms}}}</small></td>
| image          = {{#if:{{{image_flag|}}}{{{image_coat|}}}|
<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>}}
|- style="{{{national_motto|display:none;}}}"
 
| colspan="2" style="text-align: center; padding: 0.4em; border-top: 1px solid #a2a9b1;" | '''Motto:''' {{{national_motto|}}}
| rowstyle1      = border-top: 1px solid #a2a9b1;
|- style="{{{national_anthem|display:none;}}}"
| data1          = {{#if:{{{national_motto|}}}|'''Motto:''' {{{national_motto}}}}}
| colspan="2" style="text-align: center; padding: 0.4em; border-top: 1px solid #a2a9b1;" | '''Anthem:''' {{{national_anthem|}}}
 
|- style="{{{image_map|display:none;}}}"
| rowstyle2      = border-top: 1px solid #a2a9b1;
| colspan="2" style="text-align: center; padding: 0.5em; border-top: 1px solid #a2a9b1;" | [[File:{{{image_map|}}}|250px|{{{alt_map|Map}}}]]<br/><small>{{{map_caption|}}}</small>
| data2          = {{#if:{{{national_anthem|}}}|'''Anthem:''' {{{national_anthem}}}}}
|- style="border-top: 1px solid #a2a9b1; {{{capital|display:none;}}}"
 
! style="text-align: left; vertical-align: top; padding: 0.4em; width: 40%;" | Capital
| image2        = {{#if:{{{image_map|}}}|[[File:{{{image_map}}}|250px|{{{alt_map|Map}}}]]}}
| style="vertical-align: top; padding: 0.4em;" | {{{capital|}}}
| caption2      = {{{map_caption|}}}
|- style="border-top: 1px solid #a2a9b1; {{{largest_city|display:none;}}}"
 
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Largest city
| rowstyle3      = border-top: 1px solid #a2a9b1;
| style="vertical-align: top; padding: 0.4em;" | {{{largest_city|}}}
| label3        = Capital
|- style="border-top: 1px solid #a2a9b1; {{{official_languages|display:none;}}}"
| data3          = {{{capital|}}}
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Official languages
 
| style="vertical-align: top; padding: 0.4em;" | {{{official_languages|}}}
| rowstyle4      = border-top: 1px solid #a2a9b1;
|- style="border-top: 1px solid #a2a9b1; {{{demonym|display:none;}}}"
| label4        = Largest city
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Demonym(s)
| data4          = {{{largest_city|}}}
| style="vertical-align: top; padding: 0.4em;" | {{{demonym|}}}
 
|- style="border-top: 1px solid #a2a9b1; {{{government_type|display:none;}}}"
| rowstyle5      = border-top: 1px solid #a2a9b1;
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Government
| label5        = Official languages
| style="vertical-align: top; padding: 0.4em;" | {{{government_type|}}}
| data5          = {{{official_languages|}}}
|- style="border-top: 1px solid #a2a9b1; {{{ideologies|{{{ideology|display:none;}}}}}}"
 
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Ideologies
| rowstyle6      = border-top: 1px solid #a2a9b1;
| style="vertical-align: top; padding: 0.4em;" | {{{ideologies|{{{ideology|}}}}}}
| label6        = Demonym(s)
|- style="{{{leader_title1|display:none;}}}"
| data6          = {{{demonym|}}}
! style="text-align: left; vertical-align: top; padding: 0.2em 0.4em; font-weight: normal;" | • {{{leader_title1|}}}
 
| style="vertical-align: top; padding: 0.2em 0.4em;" | {{{leader_name1|}}}
| rowstyle7      = border-top: 1px solid #a2a9b1;
|- style="{{{leader_title2|display:none;}}}"
| label7        = Government
! style="text-align: left; vertical-align: top; padding: 0.2em 0.4em; font-weight: normal;" | • {{{leader_title2|}}}
| data7          = {{{government_type|}}}
| style="vertical-align: top; padding: 0.2em 0.4em;" | {{{leader_name2|}}}
 
|- style="border-top: 1px solid #a2a9b1; {{{area|display:none;}}}"
| rowstyle8      = border-top: 1px solid #a2a9b1;
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Area
| label8        = Ideologies
| style="vertical-align: top; padding: 0.4em;" | {{{area|}}}
| data8          = {{{ideologies|{{{ideology|}}}}}}
|- style="border-top: 1px solid #a2a9b1; {{{population|display:none;}}}"
 
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Population
| rowstyle9      = border-top: 1px solid #a2a9b1;
| style="vertical-align: top; padding: 0.4em;" | {{{population|}}}
| label9        = {{#if:{{{leader_title1|}}}|<span style="font-weight:normal;">• {{{leader_title1}}}</span>}}
|- style="border-top: 1px solid #a2a9b1; {{{GDP_PPP|display:none;}}}"
| data9          = {{#if:{{{leader_title1|}}}{{{leader_name1|}}}|{{{leader_name1|&nbsp;}}}}}
! style="text-align: left; vertical-align: top; padding: 0.4em;" | GDP (PPP)
 
| style="vertical-align: top; padding: 0.4em;" | {{{GDP_PPP|}}}
| labelstyle10  = padding: 0.2em 0.4em;
|- style="border-top: 1px solid #a2a9b1; {{{HDI|{{{hdi|display:none;}}}}}}"
| datastyle10    = padding: 0.2em 0.4em;
! style="text-align: left; vertical-align: top; padding: 0.4em;" | HDI
| label10        = {{#if:{{{leader_title2|}}}|<span style="font-weight:normal;">• {{{leader_title2}}}</span>}}
| style="vertical-align: top; padding: 0.4em;" | {{{HDI|{{{hdi|}}}}}}
| data10        = {{#if:{{{leader_title2|}}}{{{leader_name2|}}}|{{{leader_name2|&nbsp;}}}}}
|- style="border-top: 1px solid #a2a9b1; {{{currency|display:none;}}}"
 
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Currency
| rowstyle11    = border-top: 1px solid #a2a9b1;
| style="vertical-align: top; padding: 0.4em;" | {{{currency|}}}
| label11        = Area
|- style="border-top: 1px solid #a2a9b1; {{{time_zone|display:none;}}}"
| data11        = {{{area|}}}
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Time zone
 
| style="vertical-align: top; padding: 0.4em;" | {{{time_zone|}}}
| rowstyle12    = border-top: 1px solid #a2a9b1;
|- style="border-top: 1px solid #a2a9b1; {{{date_format|display:none;}}}"
| label12        = Population
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Date format
| data12        = {{{population|}}}
| style="vertical-align: top; padding: 0.4em;" | {{{date_format|}}}
 
|- style="border-top: 1px solid #a2a9b1; {{{calling_code|display:none;}}}"
| rowstyle13    = border-top: 1px solid #a2a9b1;
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Calling code
| label13        = GDP (PPP)
| style="vertical-align: top; padding: 0.4em;" | {{{calling_code|}}}
| data13        = {{{GDP_PPP|{{{gdp_ppp|}}}}}}
|- style="border-top: 1px solid #a2a9b1; {{{ISO_3166_code|display:none;}}}"
 
! style="text-align: left; vertical-align: top; padding: 0.4em;" | ISO 3166 code
| rowstyle14    = border-top: 1px solid #a2a9b1;
| style="vertical-align: top; padding: 0.4em;" | {{{ISO_3166_code|}}}
| label14        = HDI
|- style="border-top: 1px solid #a2a9b1; {{{internet_tld|display:none;}}}"
| 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}}}}}})}}}}
! style="text-align: left; vertical-align: top; padding: 0.4em;" | Internet TLD
 
| style="vertical-align: top; padding: 0.4em;" | {{{internet_tld|}}}
| rowstyle15    = border-top: 1px solid #a2a9b1;
|}</includeonly>
| 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 147:
},
},
"image_flag": {
"image_flag": {
"description": "An Image of a flag.",
"description": "An image of a flag.",
"example": "An Image of a flag.",
"example": "Flag_of_France.svg",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"image_coat": {
"image_coat": {
"description": "An Image of a coat of arms, symbol, logo or emblem.",
"description": "An image of a coat of arms, symbol, logo, or emblem.",
"example": "An Image of a coat of arms, symbol, logo or emblem.",
"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": "wiki-file-name"
"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 170:
},
},
"national_anthem": {
"national_anthem": {
"type": "wiki-file-name"
"type": "string"
},
},
"image_map": {
"image_map": {
Line 150: Line 176:
},
},
"alt_map": {
"alt_map": {
"type": "wiki-file-name"
"type": "string"
},
},
"map_caption": {
"map_caption": {
Line 170: Line 196:
"type": "string"
"type": "string"
},
},
"demonym": {},
"demonym": {
"government_type": {},
"type": "string"
},
"government_type": {
"type": "string"
},
"ideologies": {
"ideologies": {
"aliases": [
"aliases": [
Line 179: Line 209:
"type": "string"
"type": "string"
},
},
"leader_title1": {},
"leader_title1": {
"leader_name1": {},
"type": "string"
"leader_title2": {},
},
"leader_name2": {},
"leader_name1": {
"area": {},
"type": "string"
"population": {},
},
"GDP_PPP": {},
"leader_title2": {
"HDI": {},
"type": "string"
"currency": {},
},
"time_zone": {},
"leader_name2": {
"date_format": {},
"type": "string"
"calling_code": {},
},
"ISO_3166_code": {},
"area": {
"internet_tld": {}
"description": "Area of the country in square kilometers.",
"example": "551,695 km²",
"type": "string"
},
"population": {
"type": "string"
},
"GDP_PPP": {
"aliases": [
"gdp_ppp"
],
"type": "string"
},
"HDI": {
"aliases": [
"hdi"
],
"description": "The Human Development Index number of the country.",
"example": "0.92",
"type": "number"
},
"currency": {
"description": "The currency used in the country.",
"example": "Euro",
"type": "string"
},
"time_zone": {
"description": "The timezone of the country in UTC format.",
"example": "UTC+1",
"type": "string"
},
"date_format": {
"type": "string"
},
"calling_code": {
"type": "string"
},
"ISO_3166_code": {
"aliases": [
"iso_3166_code"
],
"type": "string"
},
"internet_tld": {
"type": "string"
}
},
},
"format": "block"
"format": "block"
}
}
</templatedata></noinclude>
</templatedata></noinclude>