Difference between revisions of "Template:Infobox Country"
From FenWiki
(test) |
|||
Line 1: | Line 1: | ||
− | <table class="infobox geography vcard" style="width: | + | <noinclude><!-- |
+ | |||
+ | Please note: Throughout this template, code used to define | ||
+ | table rows and cells is HTML, not wikicode. This allows the | ||
+ | pipe character ("|") to be used by variable syntax (e.g. | ||
+ | {{{variable|}}}) without risk of being parsed as wikicode | ||
+ | indicating the start of a new cell. It also makes adding | ||
+ | annotations easier and less prone to formatting errors. | ||
+ | |||
+ | This does not mean that using wikicode to define tables is to | ||
+ | be avoided elsewhere - in many situations it may be preferred | ||
+ | as a simpler and more visual means to define tables. Use | ||
+ | template {{!}} to denote vertical-tab "|" in wikitables. | ||
+ | |||
+ | COMMENT style: Please limit "======" to fit 800x600 screens, | ||
+ | such as 65 wide, otherwise comments will wrap onto 9 lines. | ||
+ | |||
+ | --></noinclude><includeonly><!-- | ||
+ | --><table class="infobox geography vcard" style="width:46ex; margin-top:0.75em;"><!-- | ||
================================================================ | ================================================================ | ||
Line 6: | Line 24: | ||
-->{{#if:{{{conventional_long_name|}}}{{{native_name|}}}{{{name|}}} |<!--then: | -->{{#if:{{{conventional_long_name|}}}{{{native_name|}}}{{{name|}}} |<!--then: | ||
--><tr class="adr"> | --><tr class="adr"> | ||
− | <th colspan="3" align="center" class="mergedtoprow" | + | <th colspan="3" align="center" class="mergedtoprow fn org country-name" |
style="line-height:1.2em; padding:0.25em 0.33em 0.33em; font-size:1.25em;"><!-- | style="line-height:1.2em; padding:0.25em 0.33em 0.33em; font-size:1.25em;"><!-- | ||
− | -->{{#if:{{{conventional_long_name|}}} |<!--then:-- | + | -->{{#if:{{{conventional_long_name|}}} |<!--then:-->{{{conventional_long_name|}}} }}<!-- |
-->{{#if:{{{native_name|}}}{{{name|}}} | -->{{#if:{{{native_name|}}}{{{name|}}} | ||
|<!--then:--><div style="padding-top:0.25em;"><!-- | |<!--then:--><div style="padding-top:0.25em;"><!-- | ||
− | -->{{{native_name|}}} | + | -->{{{native_name|}}}{{{name|}}}</div><!-- |
-->}}<!-- | -->}}<!-- | ||
--></th> | --></th> | ||
Line 43: | Line 61: | ||
-->}} | -->}} | ||
}} vertical-align:middle;"><!-- | }} vertical-align:middle;"><!-- | ||
− | -->[[ | + | -->[[Image:{{{image_flag}}}|125px|border|Flag of {{{common_name|{{{linking_name|{{{name|{{PAGENAME}}}}}}}}}}}]]<!--end border:--><!-- |
--></td> | --></td> | ||
{{#if:{{{image_coat|}}}{{{image_symbol|}}} | {{#if:{{{image_coat|}}}{{{image_symbol|}}} | ||
|<!--then:--><td align="center" style="width:auto; vertical-align:middle;"><!-- | |<!--then:--><td align="center" style="width:auto; vertical-align:middle;"><!-- | ||
− | -->[[ | + | -->[[Image:{{{image_coat|}}}{{{image_symbol|}}} |{{{symbol_width|85px}}} |{{{symbol_type|Coat of arms}}} of {{{common_name|{{{linking_name|{{{name|{{PAGENAME}}}}}}}}}}}]]<!-- |
--></td> | --></td> | ||
}} | }} | ||
Line 83: | Line 101: | ||
<td align="center" | <td align="center" | ||
style="width:auto; vertical-align:middle;"><!-- | style="width:auto; vertical-align:middle;"><!-- | ||
− | -->[[ | + | -->[[Image:{{{image_coat|}}}{{{image_symbol|}}} |{{{symbol_width|100px}}} |{{{symbol_type|Coat of arms}}} of {{{common_name|{{{linking_name|{{{name|{{PAGENAME}}}}}}}}}}}]]</td> |
</tr><!-- | </tr><!-- | ||
----------Caption---------- | ----------Caption---------- | ||
Line 112: | Line 130: | ||
-->{{#if:{{{national_anthem|}}}{{{royal_anthem|}}}{{{anthem|}}} |<!--then: | -->{{#if:{{{national_anthem|}}}{{{royal_anthem|}}}{{{anthem|}}} |<!--then: | ||
--><tr> | --><tr> | ||
− | <td | + | <td colspan="3" style="line-height:1.2em; text-align:center;"><!-- |
-->{{#if:{{{national_anthem|}}} | -->{{#if:{{{national_anthem|}}} | ||
|<!--then:-->'''Anthem: '''{{{national_anthem}}}<br/> | |<!--then:-->'''Anthem: '''{{{national_anthem}}}<br/> | ||
Line 143: | Line 161: | ||
-->{{#if:{{{image_map|}}} |<!--then: | -->{{#if:{{{image_map|}}} |<!--then: | ||
--><tr> | --><tr> | ||
− | <td colspan="3" style="text-align:center; padding:0.6em 0em;">[[ | + | <td colspan="3" style="text-align:center; padding:0.6em 0em;">[[Image:{{{image_map}}} |{{{map_width|250px}}} |center |Location of {{{common_name|{{{linking_name|{{PAGENAME}}}}}}}}]] <div style="position:relative; top:0.3em;"><small>{{{map_caption|}}}</small></div> |
</td> | </td> | ||
</tr><!-- | </tr><!-- | ||
Line 149: | Line 167: | ||
-->{{#if:{{{image_map2|}}} |<!--then: | -->{{#if:{{{image_map2|}}} |<!--then: | ||
--><tr class="mergedtoprow"> | --><tr class="mergedtoprow"> | ||
− | <td colspan="3" style="text-align:center; padding:0.6em 0em;"> [[ | + | <td colspan="3" style="text-align:center; padding:0.6em 0em;"> [[Image:{{{image_map2}}} |{{{map2_width|280px}}} |center |Location of {{{common_name|{{{linking_name|{{PAGENAME}}}}}}}}]] <div style="position:relative; top:0.3em;"><small>{{{map_caption2|}}}</small></div> |
</td> | </td> | ||
</tr><!-- | </tr><!-- | ||
Line 190: | Line 208: | ||
capital is largest_city or largest_settlement: | capital is largest_city or largest_settlement: | ||
----------------------------------------------- | ----------------------------------------------- | ||
− | --><br/> | + | --><br/>(and {{{largest_settlement_type|largest city}}})]] |
− | + | </td><!-- | |
− | + | ||
− | + | ||
--------Add capital:-------- | --------Add capital:-------- | ||
--><td>{{{capital}}}<!-- | --><td>{{{capital}}}<!-- | ||
Line 200: | Line 216: | ||
|<!--then:--><br/><small><span style="white-space:nowrap;"><!-- | |<!--then:--><br/><small><span style="white-space:nowrap;"><!-- | ||
-->{{coord|{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}<!-- | -->{{coord|{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}<!-- | ||
− | -->|{{{longm}}}|{{{longEW}}}|type:country<!-- | + | -->|{{{longm}}}|{{{longEW}}}|type:country({{{area_km2|}}})<!-- |
-->}}</span></small><!-- | -->}}</span></small><!-- | ||
-->}} | -->}} | ||
Line 215: | Line 231: | ||
|<!--then:--><br/><small><span style="white-space:nowrap;"><!-- | |<!--then:--><br/><small><span style="white-space:nowrap;"><!-- | ||
-->{{coord|{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}<!-- | -->{{coord|{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}<!-- | ||
− | -->|{{{longm}}}|{{{longEW}}}|type:country<!-- | + | -->|{{{longm}}}|{{{longEW}}}|type:country({{{area_km2|}}})<!-- |
-->}}</span></small><!-- | -->}}</span></small><!-- | ||
-->}} | -->}} | ||
</td><!-- | </td><!-- | ||
+ | --></tr><!-- | ||
--------Add largest_city or largest_settlement (if provided):-------- | --------Add largest_city or largest_settlement (if provided):-------- | ||
-->{{#if:{{{largest_city|}}}{{{largest_settlement|}}} |<!--then5: | -->{{#if:{{{largest_city|}}}{{{largest_settlement|}}} |<!--then5: | ||
− | --> | + | --><tr class="mergedbottomrow"> |
− | + | ||
<th colspan="2"><!-- | <th colspan="2"><!-- | ||
-->{{#if:{{{common_name|}}} | -->{{#if:{{{common_name|}}} | ||
− | |<!--then:--> | + | |<!--then:-->Largest {{{largest_settlement_type|city}}}<!-- |
− | + | -->|<!--else:-->Largest {{{largest_settlement_type|city}}}<!-- | |
− | + | ||
− | + | ||
− | + | ||
-->}}<!-- | -->}}<!-- | ||
--></th> | --></th> | ||
− | <td>{{{largest_city|}}}{{{largest_settlement|}}}</td><!-- | + | <td>{{{largest_city|}}}{{{largest_settlement|}}}</td> |
+ | </tr><!-- | ||
-->}}<!--(end5) | -->}}<!--(end5) | ||
-->}}<!--(end4) | -->}}<!--(end4) | ||
Line 244: | Line 258: | ||
--><th colspan="2"><!-- | --><th colspan="2"><!-- | ||
-->{{#if:{{{common_name|}}} | -->{{#if:{{{common_name|}}} | ||
− | + | |<!--then:-->Largest {{{largest_settlement_type|city}}}<!-- | |
− | + | -->|<!--else:-->Largest {{{largest_settlement_type|city}}}<!-- | |
− | + | ||
− | + | ||
− | + | ||
-->}}<!-- | -->}}<!-- | ||
--></th> | --></th> | ||
Line 256: | Line 267: | ||
--></tr><!-- | --></tr><!-- | ||
-->}}<!--(end1) | -->}}<!--(end1) | ||
+ | |||
================================================================ | ================================================================ | ||
Line 262: | Line 274: | ||
-->{{#if:{{{official_languages|}}} |<!--then: | -->{{#if:{{{official_languages|}}} |<!--then: | ||
--><tr> | --><tr> | ||
− | <th colspan="2" style="vertical-align:middle; white-space:nowrap;">Official | + | <th colspan="2" style="vertical-align:middle; white-space:nowrap;">Official languages</th> |
<td>{{{official_languages|}}}</td> | <td>{{{official_languages|}}}</td> | ||
</tr><!-- | </tr><!-- | ||
Line 296: | Line 308: | ||
</tr><!-- | </tr><!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | |||
================================================================ | ================================================================ | ||
Line 304: | Line 315: | ||
--><tr> | --><tr> | ||
<th colspan="2">Demonym</th> | <th colspan="2">Demonym</th> | ||
− | + | <td>{{#ifexist:{{{demonym}}} people |<!--then: | |
+ | -->{{{demonym}}} |<!--else: | ||
+ | -->{{{demonym}}}<!-- | ||
+ | -->}} | ||
+ | </td> | ||
</tr><!-- | </tr><!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 390: | Line 405: | ||
-->{{#if:{{{legislature|}}} |<!--then: | -->{{#if:{{{legislature|}}} |<!--then: | ||
--><tr> | --><tr> | ||
− | <th colspan="2"> | + | <th colspan="2">Legislature</th> |
<td>{{{legislature|}}}</td> | <td>{{{legislature|}}}</td> | ||
</tr><!-- | </tr><!-- | ||
Line 422: | Line 437: | ||
-->}}<!-- | -->}}<!-- | ||
---------Establishment---------- | ---------Establishment---------- | ||
− | -->|<!--else | + | -->|<!--else:--><th colspan="2">Establishment</th><td>{{{established|}}}</td><!-- |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
-->}}<!-- | -->}}<!-- | ||
--></tr><!-- | --></tr><!-- | ||
Line 590: | Line 601: | ||
<td style="padding-left:0em;">{{{population_census_year|}}} census</td> | <td style="padding-left:0em;">{{{population_census_year|}}} census</td> | ||
<td>{{{population_census|}}} <!-- | <td>{{{population_census|}}} <!-- | ||
− | -->{{#if:{{{population_census_rank|}}} |<!--then:-->( | + | -->{{#if:{{{population_census_rank|}}} |<!--then:-->({{{population_census_rank}}}) }}</td> |
</tr><!-- | </tr><!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 615: | Line 626: | ||
--><tr class="mergedbottomrow"> | --><tr class="mergedbottomrow"> | ||
<td style="width:1em; padding:0 0 0 0.6em;"> - </td> | <td style="width:1em; padding:0 0 0 0.6em;"> - </td> | ||
− | <td style="padding-left:0em;"> | + | <td style="padding-left:0em;">Density<!-- |
--France-related footnote:-->{{#if:{{{FR_foot5|}}} |<!--then:-->{{{FR_foot5}}} }}</td> | --France-related footnote:-->{{#if:{{{FR_foot5|}}} |<!--then:-->{{{FR_foot5}}} }}</td> | ||
<td>{{{population_density_km2|}}}/km<sup>2</sup> <!-- | <td>{{{population_density_km2|}}}/km<sup>2</sup> <!-- | ||
− | -->{{#if:{{{pop_den_footnote|}}}|{{{pop_den_footnote|}}}}}{{#if:{{{population_density_rank|}}} |<!--then:-->( | + | -->{{#if:{{{pop_den_footnote|}}}|{{{pop_den_footnote|}}}}}{{#if:{{{population_density_rank|}}} |<!--then:-->({{{population_density_rank}}}) }}<!-- |
--><br/>{{#if:{{{population_density_sq_mi|}}}|{{formatnum:{{{population_density_sq_mi|}}} }}|{{formatnum:{{#expr: {{{population_density_km2|}}} * 2.589988110336 round 1}}}} }}/sq mi</td> | --><br/>{{#if:{{{population_density_sq_mi|}}}|{{formatnum:{{{population_density_sq_mi|}}} }}|{{formatnum:{{#expr: {{{population_density_km2|}}} * 2.589988110336 round 1}}}} }}/sq mi</td> | ||
</tr><!-- | </tr><!-- | ||
Line 636: | Line 647: | ||
<td style="padding-left:0em;">Total</td> | <td style="padding-left:0em;">Total</td> | ||
<td>{{{GDP_PPP}}} <!-- | <td>{{{GDP_PPP}}} <!-- | ||
− | -->{{#if:{{{GDP_PPP_rank|}}} |<!--then:-->( | + | -->{{#if:{{{GDP_PPP_rank|}}} |<!--then:-->({{{GDP_PPP_rank}}}) }}</td> |
</tr><!-- | </tr><!-- | ||
-------(PPP per capita)------- | -------(PPP per capita)------- | ||
Line 642: | Line 653: | ||
--><tr class="mergedbottomrow"> | --><tr class="mergedbottomrow"> | ||
<td style="width:1em; padding:0 0 0 0.6em;"> - </td> | <td style="width:1em; padding:0 0 0 0.6em;"> - </td> | ||
− | <td style="padding-left:0em;"> | + | <td style="padding-left:0em;">Per capita</td> |
<td>{{{GDP_PPP_per_capita}}} <!-- | <td>{{{GDP_PPP_per_capita}}} <!-- | ||
-->{{#if:{{{GDP_PPP_per_capita_rank|}}} |<!--then:-->({{{GDP_PPP_per_capita_rank}}}) }}</td> | -->{{#if:{{{GDP_PPP_per_capita_rank|}}} |<!--then:-->({{{GDP_PPP_per_capita_rank}}}) }}</td> | ||
Line 664: | Line 675: | ||
--><tr class="mergedbottomrow"> | --><tr class="mergedbottomrow"> | ||
<td style="width:1em; padding:0 0 0 0.6em;"> - </td> | <td style="width:1em; padding:0 0 0 0.6em;"> - </td> | ||
− | <td style="padding-left:0em;"> | + | <td style="padding-left:0em;">Per capita</td> |
<td>{{{GDP_nominal_per_capita}}} <!-- | <td>{{{GDP_nominal_per_capita}}} <!-- | ||
-->{{#if:{{{GDP_nominal_per_capita_rank|}}} |<!--then:-->({{{GDP_nominal_per_capita_rank}}}) }}</td> | -->{{#if:{{{GDP_nominal_per_capita_rank|}}} |<!--then:-->({{{GDP_nominal_per_capita_rank}}}) }}</td> | ||
Line 700: | Line 711: | ||
-->{{#if:{{{currency|}}} |<!--then: | -->{{#if:{{{currency|}}} |<!--then: | ||
--><tr> | --><tr> | ||
− | <th colspan="2" style="vertical-align:middle;"> | + | <th colspan="2" style="vertical-align:middle;">Currency</th> |
<td>{{{currency}}} <!-- | <td>{{{currency}}} <!-- | ||
-->{{#if:{{{currency_code|}}} | -->{{#if:{{{currency_code|}}} | ||
− | |<!--then:-->(<code> | + | |<!--then:-->(<code>{{{currency_code}}}</code>)}} </td> |
</tr><!-- | </tr><!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 716: | Line 727: | ||
-->{{#if:{{{utc_offset|}}} |<!--then:-->{{nowrap|(UTC{{{utc_offset}}})<!--endnowrap:-->}}<!--endif:-->}}</td> | -->{{#if:{{{utc_offset|}}} |<!--then:-->{{nowrap|(UTC{{{utc_offset}}})<!--endnowrap:-->}}<!--endif:-->}}</td> | ||
</tr><!-- | </tr><!-- | ||
− | -->{{#if: | + | -->{{#if:{{{utc_offset_DST|}}} |<!--then: |
--><tr class="{{#if:{{{DST_note|}}} |<!--then:-->mergedrow |<!--else:-->mergedbottomrow}}"> | --><tr class="{{#if:{{{DST_note|}}} |<!--then:-->mergedrow |<!--else:-->mergedbottomrow}}"> | ||
<td style="width:1em; padding:0 0 0 0.6em;"> - </td> | <td style="width:1em; padding:0 0 0 0.6em;"> - </td> | ||
Line 728: | Line 739: | ||
<td colspan="2"></td> | <td colspan="2"></td> | ||
<td>{{{DST_note}}}</td> | <td>{{{DST_note}}}</td> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</tr><!-- | </tr><!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 778: | Line 779: | ||
<th colspan="2">Stereotype</th> | <th colspan="2">Stereotype</th> | ||
<td>{{{stereotype}}}</td> | <td>{{{stereotype}}}</td> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</tr><!-- | </tr><!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 837: | Line 818: | ||
-->{{#if:{{{image_map3|}}} |<!--then: | -->{{#if:{{{image_map3|}}} |<!--then: | ||
--><tr class="mergedtoprow"> | --><tr class="mergedtoprow"> | ||
− | <td colspan="3" style="text-align:center; padding:0.6em 0em;"> [[ | + | <td colspan="3" style="text-align:center; padding:0.6em 0em;"> [[Image:{{{image_map3}}} |{{{map3_width|250px}}} |center |Location of {{{common_name|{{{linking_name|{{PAGENAME}}}}}}}}]] <div style="position:relative; top:0.3em;"><small>{{{map_caption3|}}}</small></div> |
</td> | </td> | ||
</tr><!-- | </tr><!-- | ||
Line 895: | Line 876: | ||
-->}}<!-- | -->}}<!-- | ||
− | --></table>< | + | --></table></includeonly><!-- |
− | + | --------------------------End of template---------------------- | |
− | + | --> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |