User:David Kernow/Template:Infobox Country or territory

|}}{{#if:{{{national_motto|}}}{{{motto|}}} | Motto {{{national_motto|}}}{{{motto|}}} {{#if:{{{motto_language|}}} | ({{{motto_language}}}) "{{{motto_translation}}}" }}{{#if:{{{national_anthem|}}}{{{royal_anthem|}}}{{{anthem|}}} | {{#if:{{{national_anthem|}}} |Anthem {{{national_anthem}}} {{#if:{{{national_anthem_language|}}} | {{#ifeq:{{{national_anthem_language}}} |{{{motto_language|}}} |({{{national_anthem_language}}})|({{{national_anthem_language}}})}} {{{national_anthem_translation|}}} | }}}}{{#if:{{{anthem|}}} |Anthem {{{anthem}}} }}{{#if:{{{royal_anthem|}}} |Royal anthem {{{royal_anthem}}} }}        }}{{#if:{{{other_symbol|}}}{{{text_symbol|}}} | {{#if:{{{other_symbol_type|}}}{{{text_symbol_type|}}} |{{{other_symbol_type|}}}{{{text_symbol_type|}}} }}{{{other_symbol|}}}{{{text_symbol|}}} }}{{#if:{{{image_map|}}} |  {{{map_caption|}}} }}{{#if:{{{image_map2|}}} |  {{{map_caption2|}}} }}{{#if:{{{capital|}}}{{{admin_center|}}}{{{largest_city|}}}{{{largest_settlement|}}} |{{#if:{{{capital|}}}{{{admin_center|}}} | {{#if:{{{admin_center_type|}}}{{{admin_center|}}} |{{{admin_center_type|Administrative center}}}|{{#if:{{{capital_type|}}} |{{{capital_type}}}|Capital}}}}{{#ifeq: {{#ifeq:{{{largest_city|}}}{{{largest_settlement|}}} |capital |capital|{{#switch:{{{capital}}} | }}}{{{largest_settlement|}}} = capital | {{{largest_city|}}}{{{largest_settlement|}}}    = capital | not capital }}}}               |capital | (and {{{largest_settlement_type|largest city}}}) {{{capital}}}{{#if:{{{latd|}}} | {{coor dm |{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longEW}}}|type:country({{{area}}})}} }} | {{{capital|}}}{{{admin_center|}}}{{#if:{{{latd|}}} | {{coor dm |{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longEW}}}|type:country({{{area}}})}} }} {{#if:{{{largest_city|}}}{{{largest_settlement|}}} | {{#if:{{{common_name|}}} |Largest {{{largest_settlement_type|city}}}|Largest {{{largest_settlement_type|city}}}}} {{{largest_city|}}}{{{largest_settlement|}}} }}}}|{{#if:{{{largest_city|}}}{{{largest_settlement|}}} | {{#if:{{{common_name|}}} |Largest {{{largest_settlement_type|city}}}|Largest {{{largest_settlement_type|city}}}}} {{{largest_city|}}}{{{largest_settlement|}}} }}}} }}{{#if:{{{official_languages|}}}{{{languages|}}} | {{{languages_type|Official languages}}} {{{official_languages|}}}{{{languages|}}} {{#if:{{{regional_languages|}}} | Recognised regional languages {{{regional_languages|}}} }}}}{{#if:{{{ethnic_groups|}}} | Ethnic groups {{#if:{{{ethnic_groups_year|}}} |({{{ethnic_groups_year}}}) }} {{{ethnic_groups}}} }}{{#if:{{{demonym|}}} | Demonym {{{demonym}}} }}{{#if:{{{org_type|}}} | Type {{{org_type}}} }}{{#if:{{{membership|}}} |  {{{membership_type|Membership}}} {{{membership}}} }}{{#if:{{{government_type|}}} | Government {{{government_type|}}} |{{#if:{{{leader_title1|}}}{{{leader_name1|}}} |{{#if:{{{name|}}}{{{membership|}}} | Leaders | Government  }}}}}}{{#if:{{{leader_title1|}}} |  - {{{leader_title1}}} {{{leader_name1}}} }}{{#if:{{{leader_title2|}}} | <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{leader_title2}}} {{{leader_name2}}} }}{{#if:{{{leader_title3|}}} |<tr class="{{#if:{{{leader_title4|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{leader_title3}}} {{{leader_name3}}} }}{{#if:{{{leader_title4|}}} |<tr class="{{#if:{{{leader_title5|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{leader_title4}}} {{{leader_name4}}} }}{{#if:{{{leader_title5|}}} |<tr class="mergedbottomrow"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{leader_title5}}} {{{leader_name5}}} }}{{#if:{{{established_event1|}}}{{{sovereignty_type|}}}{{{established|}}} |<tr {{#if:{{{established_event1|}}} |class="mergedtoprow"}}>{{#if:{{{sovereignty_type|}}} |{{#if:{{{sovereignty_note|}}} | {{{sovereignty_type}}} {{{sovereignty_note}}} | {{{sovereignty_type}}} }}| Establishment {{{established|}}} }} }}{{#if:{{{established_event1|}}} |<tr class="{{#if:{{{established_event2|}}}                   |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event1}}} {{{established_date1|}}} }}{{#if:{{{established_event2|}}} |<tr class="{{#if:{{{established_event3|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event2}}} {{{established_date2|}}} }}{{#if:{{{established_event3|}}} |<tr class="{{#if:{{{established_event4|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event3}}} {{{established_date3|}}} }}{{#if:{{{established_event4|}}} |<tr class="{{#if:{{{established_event5|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event4}}} {{{established_date4|}}} }}{{#if:{{{established_event5|}}} |<tr class="{{#if:{{{established_event6|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event5}}} {{{established_date5|}}} }}{{#if:{{{established_event6|}}} |<tr class="{{#if:{{{established_event7|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event6}}} {{{established_date6|}}} }}{{#if:{{{established_event7|}}} |<tr class="{{#if:{{{established_event8|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event7}}} {{{established_date7|}}} }}{{#if:{{{established_event8|}}} |<tr class="{{#if:{{{established_event9|}}}                  |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event8}}} {{{established_date8|}}} }}{{#if:{{{established_event9|}}} | --><tr class="mergedbottomrow"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{established_event9}}} {{{established_date9|}}} }}{{#if:{{{accessionEUdate|}}} | Accession to the {{nowrap|European Union}} <td style="vertical-align:middle;">{{{accessionEUdate}}} }}{{#if:{{{area|}}} |<tr class="mergedtoprow"> Area <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Total{{#if:{{{FR_foot4|}}} |{{{FR_foot4}}} }} }}} {{#if:{{{area_magnitude|}}} |m² |Square metre}} | {{{area|}}} km² {{#if:{{{area_rank|}}} |({{{area_rank}}}) }} {{{areami²|}}} sq mi }}{{#if:{{{percent_water|}}} | <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Water (%) {{{percent_water|}}} }}{{#if:{{{FR_metropole|}}} | <td style="width:1em; padding:0 0 0 0.6em;"> - <td colspan="2" style="padding-left:0em;">{{{FR_metropole}}} <td style="width:1em; padding:0 0 0 0.6em;"> <td style="padding-left:1em;">- IGN{{{FR_foot2|}}} }}} {{#if:{{{FR_IGN_area_magnitude|}}} |m² |Square metre}} | {{{FR_IGN_area}}} km² ({{{FR_IGN_area_rank|}}}) {{{FR_IGN_areami²|}}} sq mi          <td style="width:1em; padding:0 0 0 0.6em;"> <td style="padding-left:1em;">- Cadastre{{{FR_foot3|}}} }}} {{#if:{{{FR_cadastre_area_magnitude|}}} |m² |Square metre}} | {{{FR_cadastre_area}}} km² ({{{FR_cadastre_area_rank|}}}) {{{FR_cadastre_areami²|}}} sq mi        }}{{#if:{{{population_estimate|}}}{{{population_census|}}}{{{FR_metropole_population|}}} |<tr class="mergedtoprow"> Population {{#if:{{{population_estimate|}}} | <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{population_estimate_year|}}} estimate {{{population_estimate|}}} {{#if:{{{population_estimate_rank|}}} |({{{population_estimate_rank}}}) }} }}{{#if:{{{population_census|}}} | <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{population_census_year|}}} census {{{population_census|}}} {{#if:{{{population_census_rank|}}} |<--then:-->({{{population_census_rank}}}) }} }}}}{{#if:{{{FR_metropole_population|}}} | <td style="width:1em; padding:0 0 0 0.6em;"> <td colspan="2" style="padding-left:0em;">({{{FR_total_population_estimate_year}}}) <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Total{{{FR_foot}}} {{{FR_total_population_estimate}}} ({{{FR_total_population_estimate_rank}}}) <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">{{{FR_metropole}}} {{{FR_metropole_population}}} ({{{FR_metropole_population_estimate_rank}}}) }}{{#if:{{{population_density|}}} |<tr class="mergedbottomrow"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Density{{#if:{{{FR_foot5|}}} |{{{FR_foot5}}} }} {{{population_density|}}} /km² {{#if:{{{population_density_rank|}}} |({{{population_density_rank}}}) }} {{{population_densitymi²|}}} /sq mi        }}{{#if:{{{GDP_PPP|}}} |<tr class="mergedtoprow"> GDP (PPP) {{{GDP_PPP_year|}}} estimate <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Total {{{GDP_PPP}}} {{#if:{{{GDP_PPP_rank|}}} |({{{GDP_PPP_rank}}}) }} {{#if:{{{GDP_PPP_per_capita|}}} |<tr class="mergedbottomrow"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Per capita {{{GDP_PPP_per_capita}}} {{#if:{{{GDP_PPP_per_capita_rank|}}} |({{{GDP_PPP_per_capita_rank}}}) }} }}}}{{#if:{{{GDP_nominal|}}} |<tr class="mergedtoprow"> GDP (nominal) {{{GDP_nominal_year|}}} estimate <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Total {{{GDP_nominal}}} {{#if:{{{GDP_nominal_rank|}}} |({{{GDP_nominal_rank}}}) }} {{#if:{{{GDP_nominal_per_capita|}}} |<tr class="mergedbottomrow"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Per capita {{{GDP_nominal_per_capita}}} {{#if:{{{GDP_nominal_per_capita_rank|}}} |({{{GDP_nominal_per_capita_rank}}}) }} }}}}{{#if:{{{Gini|}}} | Gini<sup style="cursor:help">{{tooltip|2=A Gini index of 0 represents perfect economic equality, and 100 perfect inequality|?}} {{#if:{{{Gini_year|}}} |({{{Gini_year|}}}) }} {{{Gini}}} {{#if:{{{Gini_category|}}} |({{{Gini_category|}}}) }}{{#if:{{{Gini_rank|}}}    |({{{Gini_rank}}}) }} }}{{#if:{{{HDI|}}} | HDI {{#if:{{{HDI_year|}}} |({{{HDI_year|}}}) }} {{{HDI}}} {{#if:{{{HDI_category|}}} |({{{HDI_category|}}}) }}{{#if:{{{HDI_rank|}}}    |({{{HDI_rank}}}) }} }}{{#if:{{{currency|}}} | <th colspan="2" style="vertical-align:middle;">Currency {{{currency}}} {{#if:{{{currency_code|}}} |}}        }}{{#if:{{{time_zone|}}}{{{utc_offset|}}} |<tr {{#if:{{{utc_offset_DST|}}}{{{DST_note|}}} |class="mergedtoprow"}}> Time zone {{{time_zone|}}} {{#if:{{{utc_offset|}}} |{{nowrap|(UTC{{{utc_offset}}})}}}} {{#if:{{{utc_offset_DST|}}} |<tr class="{{#if:{{{DST_note|}}} |mergedrow |mergedbottomrow}}"> <td style="width:1em; padding:0 0 0 0.6em;"> - <td style="padding-left:0em;">Summer (DST) {{{DST|{{{time_zone_DST|}}}}}} (UTC{{{utc_offset_DST}}}) }}}}{{#if:{{{DST_note|}}} |<tr class="mergedbottomrow"> {{{DST_note}}} }}{{#if:{{{cctld|}}} | Internet TLD {{{cctld}}} }}{{#if:{{{official_website|}}} | <td colspan="3" style="line-height:11pt; text-align:center;">Website {{{official_website}}} }}{{#if:{{{calling_code|}}} | Calling code +{{{calling_code}}} }}{{#if:{{{patron_saint|}}} | Patron saint {{{patron_saint}}} }}{{#if:{{{footnotes|}}} | {{{footnotes}}} }}{{#if:{{{footnote1|}}} |<tr style="font-size:80%;"> {{lower|0.3em|{{sup|1}}}} <td colspan="2" style="padding-left:0em;">{{{footnote1}}} }}{{#if:{{{footnote2|}}} |<tr class="{{#if:{{{footnote3|}}} |mergedrow |mergedbottomrow}}" style="font-size:80%;"> {{lower|0.3em|{{sup|2}}}} <td colspan="2" style="padding-left:0em;">{{{footnote2}}} }}{{#if:{{{footnote3|}}} |<tr class="{{#if:{{{footnote4|}}} |mergedrow |mergedbottomrow}}" style="font-size:80%;"> {{lower|0.3em|{{sup|3}}}} <td colspan="2" style="padding-left:0em;">{{{footnote3}}} }}{{#if:{{{footnote4|}}} |<tr class="{{#if:{{{footnote5|}}} |mergedrow |mergedbottomrow}}" style="font-size:80%;"> {{lower|0.3em|{{sup|4}}}} <td colspan="2" style="padding-left:0em;">{{{footnote4}}} }}{{#if:{{{footnote5|}}} |<tr class="{{#if:{{{footnote6|}}} |mergedrow |mergedbottomrow}}" style="font-size:80%;"> {{lower|0.3em|{{sup|5}}}} <td colspan="2" style="padding-left:0em;">{{{footnote5}}} }}{{#if:{{{footnote6|}}} |<tr class="{{#if:{{{footnote7|}}} |mergedrow |mergedbottomrow}}" style="font-size:80%;"> {{lower|0.3em|{{sup|6}}}} <td colspan="2" style="padding-left:0em;">{{{footnote6}}} }}{{#if:{{{footnote7|}}} |<tr class="mergedbottomrow" style="font-size:80%;"> {{lower|0.3em|{{sup|7}}}} <td colspan="2" style="padding-left:0em;">{{{footnote7}}} }}