Template:Infobox political division: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 857: | Line 857: | ||
<td><small>{{{population_note}}}</small></td> | <td><small>{{{population_note}}}</small></td> | ||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GVA|}}}| | ||
<tr class="mergedtoprow"> | <tr class="mergedtoprow"> | ||
< | <th>[[wikipedia:Gross value added|GVA]]</th> | ||
<td>{{{ | <td>{{#if:{{{GVA|}}}{{{GVA_per_capita|}}} | ||
|{{#if:{{{GVA_year|}}} |{{{GVA_year}}} }}estimate | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GVA|}}}| | ||
<tr class="mergedrow"> | <tr class="mergedrow"> | ||
<th> • {{{ | <th> • Total</th> | ||
<td>{{#if:{{{GVA|}}} | |||
|{{{GVA}}}<!-- | |||
-->{{#if:{{{GVA_rank|}}} | ({{{GVA_rank}}})}} | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GVA_per_capita|}}}| | ||
<tr class=" | <tr class="mergedbottomrow"> | ||
<th> • {{{ | <th> • Per capita</th> | ||
<td>{{#if:{{{GVA_per_capita|}}} | |||
| {{{GVA_per_capita}}}<!-- | |||
-->{{#if:{{{GVA_per_capita_rank|}}} | ({{{GVA_per_capita_rank}}})}} | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GDP_PPP|}}}| | ||
<tr class=" | <tr class="mergedtoprow"> | ||
<th> | <th>[[wikipedia:Gross domestic product|GDP]] {{nobold|([[wikipedia:Purchasing power parity|PPP]])}}</th> | ||
<td>{{{ | <td>{{#if:{{{GDP_PPP|}}}{{{GDP_PPP_per_capita|}}} | ||
|{{#if:{{{GDP_PPP_year|}}} |{{{GDP_PPP_year}}} }}estimate | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GDP_PPP|}}}| | ||
<tr class="mergedrow"> | <tr class="mergedrow"> | ||
<th> • {{{ | <th> • Total</th> | ||
<td>{{#if:{{{GDP_PPP|}}} | |||
|{{{GDP_PPP}}}<!-- | |||
-->{{#if:{{{GDP_PPP_rank|}}} | ([[List of countries by GDP (PPP)|{{{GDP_PPP_rank}}}]])}} | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GDP_PPP_per_capita|}}}| | ||
<tr class=" | <tr class="mergedbottomrow"> | ||
<th> • {{{ | <th> • Per capita</th> | ||
<td>{{#if:{{{GDP_PPP_per_capita|}}} | |||
|{{{GDP_PPP_per_capita}}}<!-- | |||
-->{{#if:{{{GDP_PPP_per_capita_rank|}}} | ([[List of countries by GDP (PPP) per capita|{{{GDP_PPP_per_capita_rank}}}]])}} | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GDP_nominal|}}}| | ||
<tr class=" | <tr class="mergedtoprow"> | ||
<td | <th>[[wikipedia:Gross domestic product|GDP]] {{nobold|(nominal)}}</th> | ||
<td>{{#if:{{{GDP_nominal|}}}{{{GDP_nominal_per_capita|}}} | |||
|{{#if:{{{GDP_nominal_year|}}} |{{{GDP_nominal_year}}} }}estimate | |||
}}</td> | |||
</tr> | </tr> | ||
{{#if:{{{ | }}{{#if:{{{GDP_nominal|}}}| | ||
<tr class="mergedrow"> | <tr class="mergedrow"> | ||
<th> • {{{ | <th> • Total</th> | ||
<td>{{#if:{{{GDP_nominal|}}} | |||
|{{{GDP_nominal}}}<!-- | |||
-->{{#if:{{{GDP_nominal_rank|}}} | ([[{{#if:{{{GDP_nominal_rank_link|}}}|{{{GDP_nominal_rank_link|}}}|List of countries by GDP (nominal)}}|{{{GDP_nominal_rank}}}]])}} | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{GDP_nominal_per_capita|}}}| | ||
<tr class=" | <tr class="mergedbottomrow"> | ||
<th> • {{{ | <th> • Per capita</th> | ||
<td>{{#if:{{{GDP_nominal_per_capita|}}} | |||
| {{{GDP_nominal_per_capita}}}<!-- | |||
-->{{#if:{{{GDP_nominal_per_capita_rank|}}} | ([[{{#if:{{{GDP_nominal_per_capita_rank_link|}}}|{{{GDP_nominal_per_capita_rank_link|}}}|List of countries by GDP (nominal) per capita}}|{{{GDP_nominal_per_capita_rank}}}]])}} | |||
}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{Gini|}}}| | ||
<tr class="mergedrow"> | <tr class="mergedrow"> | ||
<th> | <th>[[Gini_coefficient|Gini]]{{#if:{{{Gini_year|}}} | {{nobold|1=({{{Gini_year}}})}}}}</th> | ||
< | <td>{{#if:{{{Gini|}}} | ||
| {{#switch:{{{Gini_change|}}} | |||
|increase = {{increaseNegative}} <!-- | |||
-->|decrease = {{decreasePositive}} <!-- | |||
-->|steady = {{steady}} <!-- | |||
-->}}{{{Gini}}}{{{Gini_ref|}}}<br/><!-- | |||
---------Evaluate and add Gini category:---------- | |||
-->{{nowrap|1=<!-- | |||
-->{{#iferror:<!-- | |||
-->{{#ifexpr:{{{Gini}}}>100 <!-- | |||
-->| {{error|Error: Gini value above 100}}<!--Handled by outer #iferror, not visible to users--><!-- | |||
-->| {{#ifexpr:{{{Gini}}}>=60 |{{color|red|very high}}<!-- | |||
-->| {{#ifexpr:{{{Gini}}}>=46 <!-- | |||
-->| {{color|darkred|high}}<!-- | |||
-->| {{#ifexpr:{{{Gini}}}>=30 <!-- | |||
-->| {{color|orange|medium}}<!-- | |||
-->| {{#ifexpr:{{{Gini}}}>=0 <!-- | |||
-->| {{color|forestgreen|low}}<!-- | |||
-->| {{error|Error:Gini value below 0}}<!--Handled by outer #iferror, not visible to users--><!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->| {{error|Error: Invalid Gini value}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-----------Add Gini_rank (if supplied):---------- | |||
-->{{#if:{{{Gini_rank|}}} | |||
| · [[List of countries by income equality|{{{Gini_rank}}}]]<!-- | |||
-->}}<!-- | |||
-->}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{HDI|}}}| | ||
<tr class="mergedrow"> | <tr class="mergedrow"> | ||
<th> | <th>[[wikipedia:Human Development Index|HDI]]{{#if:{{{HDI_year|}}} | {{nobold|1=({{{HDI_year}}})}}}}</th> | ||
< | <td>{{#if:{{{HDI|}}} | ||
| {{#switch:{{{HDI_change|}}} | |||
|increase = {{increase}} <!-- | |||
-->|decrease = {{decrease}} <!-- | |||
-->|steady = {{steady}} <!-- | |||
-->}}{{{HDI}}}{{{HDI_ref|}}}<br/><!-- | |||
---------Evaluate and add HDI category:--------- | |||
-->{{nowrap|1=<!-- | |||
-->{{#iferror:<!-- | |||
-->{{#ifexpr:{{{HDI}}}>1 <!-- | |||
-->| {{error|Error: HDI value greater than 1}}<!--Handled by outer #iferror, not visible to users--><!-- | |||
-->| {{#ifexpr:{{{HDI}}}>0.799 <!-- | |||
-->| {{color|darkgreen|very high}}<!-- | |||
-->| {{#ifexpr:{{{HDI}}}>0.699 <!-- | |||
-->| {{color|forestgreen|high}}<!-- | |||
-->| {{#ifexpr:{{{HDI}}}>0.549 <!-- | |||
-->| {{color|orange|medium}}<!-- | |||
-->| {{#ifexpr:{{{HDI}}}>=0.000<!-- | |||
-->| {{color|red|low}}<!-- | |||
-->| {{error|Error: HDI value less than 0}}<!--Handled by outer #iferror, not visible to users--><!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->| {{error|Error: Invalid HDI value}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
----------Add HDI_rank (if supplied):----------- | |||
-->{{#if:{{{HDI_rank|}}} | |||
| · [[{{#if:{{{HDI_rank_link|}}}|{{{HDI_rank_link|}}}|List of countries by Human Development Index}}|{{{HDI_rank}}}]]<!-- | |||
-->}}<!-- | |||
-->}}</td> | |||
</tr> | </tr> | ||
}}{{#if:{{{ | }}{{#if:{{{currency|}}}| | ||
<tr class="mergedrow"> | <tr class="mergedrow"> | ||
<th> | <th>Currency</th> | ||
<td>{{{ | <td>{{#if:{{{currency|}}} | ||
| {{{currency}}} {{#if:{{{currency_code|}}} |([[List of circulating currencies|{{{currency_code}}}]])}} | |||
}}</td> | |||
</tr> | </tr> | ||
}}<!-- ***Time Zones*** --> | |||
{{#if:{{{timezone1|{{{timezone|}}}}}}| | {{#if:{{{timezone1|{{{timezone|}}}}}}| | ||
<tr class="mergedtoprow"> | <tr class="mergedtoprow"> | ||
Revision as of 22:05, 21 August 2022
{{#if:|
| Infobox political division | |
|---|---|
| Capital | |
| Official languages | |
| Population | |
[create]
Template documentation
| Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |