Difference between revisions of "Template:Infobox UK country"

From blackwiki
Jump to navigation Jump to search
imported>Anthony Appleyard
m (Anthony Appleyard moved page Template:Infobox country UK to Template:Infobox UK country without leaving a redirect: Requested by TerraCyprus at WP:RM/TR: sovereign state first cf. Template:Infobox UK postcode area, Template:Infobox UK place and the wrappers in Category:Templates calling Infobox settlement)
 
(59 intermediate revisions by 12 users not shown)
Line 3: Line 3:
 
  | common_name = {{{common_name|{{PAGENAME}}}}}
 
  | common_name = {{{common_name|{{PAGENAME}}}}}
 
  | image_map = {{{image_map|{{{common_name|{{PAGENAME}}}}} in the UK and Europe.svg}}}
 
  | image_map = {{{image_map|{{{common_name|{{PAGENAME}}}}} in the UK and Europe.svg}}}
  | map_caption = {{{map_caption|{{map caption |location_color=dark green|country={{nobold|{{{common_name|{{PAGENAME}}}}}}} |subregion=the [[United Kingdom]] |subregion_color=green |region=Europe|region_color=dark grey}}}}}
+
  | map_caption = {{{map_caption|{{map caption |location_color=dark green |subregion=the [[United Kingdom]] |subregion_color=green |region=Europe|region_color=dark grey}}}}}
 
  | membership_type = {{unbulleted list|style=line-height:normal;white-space:nowrap;|item2_style=margin-top:3px;|{{{membership_type|[[Sovereign state]]}}}|{{#if:{{{legal_jurisdiction|}}}|[[Law of the United Kingdom#Three legal systems|Legal jurisdiction]]}}}}
 
  | membership_type = {{unbulleted list|style=line-height:normal;white-space:nowrap;|item2_style=margin-top:3px;|{{{membership_type|[[Sovereign state]]}}}|{{#if:{{{legal_jurisdiction|}}}|[[Law of the United Kingdom#Three legal systems|Legal jurisdiction]]}}}}
 
  | membership = {{unbulleted list|style=line-height:normal;|item2_style=margin-top:3px;|{{{membership|[[United Kingdom]]}}}|{{{legal_jurisdiction|}}}}}
 
  | membership = {{unbulleted list|style=line-height:normal;|item2_style=margin-top:3px;|{{{membership|[[United Kingdom]]}}}|{{{legal_jurisdiction|}}}}}
 
  | government_type = {{{government_type|}}}
 
  | government_type = {{{government_type|}}}
  | leader_title1 = {{#if:{{{monarch|}}}|[[Monarchy of the United Kingdom|Monarch]]}}
+
 
  | leader_name1 = {{#if:{{{monarch|}}}|<div>{{{monarch|}}}</div>}}
+
  | leader_title1 = [[Monarchy of the United Kingdom|Monarch]]
  {{#if:{{{first_minister|}}}{{{deputy_first_minister|}}}||{{#if:{{{prime_minister|}}}{{{secretary_of_state_dan_cuceritorul|}}}{{{number_of_mps|}}}|{{infobox|child=yes|headerstyle=text-align:left;|header1=[[Parliament of the United Kingdom]]}}}}}}
+
  | leader_title2 = [[First Minister of {{{common_name|{{PAGENAME}}}}}|First Minister]]
  | leader_title2 = {{#if:{{{first_minister|}}}|[[First Minister of {{{common_name|{{PAGENAME}}}}}|First Minister]]}}
+
  | leader_title3 = [[Deputy First Minister of {{{common_name|{{PAGENAME}}}}}|Deputy First Minister]]
| leader_name2 = {{#if:{{{first_minister|}}}|<div>{{{first_minister}}}</div>}}
+
 
  {{#if:{{{deputy_first_minister|}}}||{{#if:{{{first_minister|}}}|{{#if:{{{prime_minister|}}}{{{secretary_of_state|}}}{{{number_of_mps|}}}|{{infobox|child=yes|headerstyle=text-align:left;|header1=[[Parliament of the United Kingdom]]}}}}}}}}
+
<!-- NOTE: The IF statements below ensure the child infobox (intended to create a separate section for leaders under "Parliament of the United Kingdom") goes in the last transcluded "leader_name" field. For example on [[England]], only the monarch is shown, so the first two lines below are nullified (null1 and null2 being invalid field names). In the case of [[Northern Ireland]], all of the fields are used, so none of the lines are nullified. -->
  | leader_title3 = {{#if:{{{deputy_first_minister|}}}|[[Deputy First Minister of {{{common_name|{{PAGENAME}}}}}|Deputy First Minister]]}}
+
 
| leader_name3 = {{#if:{{{deputy_first_minister|}}}|<div>{{{deputy_first_minister}}}</div>}}
+
  | {{#if:{{{first_minister|}}}{{{deputy_first_minister|}}}|leader_name1|null1}} = {{#if:{{{first_minister|}}}{{{deputy_first_minister|}}}|{{{monarch|}}}}}
{{#if:{{{deputy_first_minister|}}}|{{#if:{{{prime_minister|}}}{{{secretary_of_state|}}}{{{number_of_mps|}}}|{{infobox|child=yes|headerstyle=text-align:left;|header1=[[Parliament of the United Kingdom]]}}}}}}
+
  | {{#if:{{{deputy_first_minister|}}}|leader_name2|null2}} = {{#if:{{{deputy_first_minister|}}}|{{{first_minister|}}}}}
| leader_title5 = {{#if:{{{prime_minister|}}}|[[Prime Minister of the United Kingdom|Prime Minister]]}}
+
  | leader_name{{#if:{{{deputy_first_minister|}}}|3|{{#if:{{{first_minister|}}}|2|1}}}} = {{{deputy_first_minister|{{{first_minister|{{{monarch|}}}}}}}}}<!--
| leader_name5 = {{{prime_minister|}}}
+
  -->{{infobox|child=yes|headerstyle=text-align:left;|labelstyle=font-weight:normal;padding-left:10px;
| leader_title6 = {{#if:{{{secretary_of_state|}}}|[[Secretary of State for {{{common_name|{{PAGENAME}}}}}|Secretary&nbsp;of&nbsp;State]]}}
+
  | header1 = {{#if:{{{secretary_of_state|}}}{{{number_of_mps|}}}|[[Parliament of the United Kingdom]]}}
| leader_name6 = {{{secretary_of_state|}}}
+
  | rowclass2 = mergedrow
| leader_title7 = {{#if:{{{number_of_mps|}}}|[[List of MPs elected in the United Kingdom general election, 2015|House of Commons]]}}
+
  | label2 = {{#if:{{{secretary_of_state|}}}|•&nbsp;[[Secretary of State for {{{common_name|{{PAGENAME}}}}}|Secretary&nbsp;of&nbsp;State]]}}
| leader_name7 = {{#if:{{{number_of_mps|}}}|[[List of MPs for constituencies in {{{common_name|{{PAGENAME}}}}} 2015–20|{{{number_of_mps|}}} MPs]] (of 650)}}
+
  | data2 = {{{secretary_of_state|}}}
 +
  | rowclass3 = mergedrow
 +
  | label3 = {{#if:{{{number_of_mps|}}}|•&nbsp;[[List of MPs elected in the 2017 United Kingdom general election|House&nbsp;of&nbsp;Commons]]}}
 +
  | data3 = {{#if:{{{number_of_mps|}}}|[[List of MPs for constituencies in {{{common_name|{{PAGENAME}}}}} (2019–present)|{{{number_of_mps|}}} MPs]] (of 650)}}
 +
  }}
 +
 
 
  | currency = {{{currency|[[Pound&nbsp;sterling]]}}}
 
  | currency = {{{currency|[[Pound&nbsp;sterling]]}}}
  | currency_code = {{{currency_code|GBP}}}
+
  | currency_code = {{{currency_code|GBP{{))!}};&nbsp;{{!((}}Pound sign{{!}}£}}}
  | time_zone = {{{time_zone|[[Greenwich Mean Time|GMT]]}}}
+
  | time_zone = {{{time_zone|[[Greenwich Mean Time]]}}}
  | utc_offset = {{{utc_offset|&#8203;}}}
+
  | utc_offset = {{{utc_offset|{{sp}}}}}
  | time_zone_DST = {{{time_zone_DST|[[British Summer Time|BST]]}}}
+
  | time_zone_DST = {{{time_zone_DST|[[British Summer Time]]}}}
 
  | utc_offset_DST = {{{utc_offset_DST|+1}}}
 
  | utc_offset_DST = {{{utc_offset_DST|+1}}}
 
  | date_format = {{{date_format|dd/mm/yyyy&nbsp;([[Anno Domini|AD]])}}}
 
  | date_format = {{{date_format|dd/mm/yyyy&nbsp;([[Anno Domini|AD]])}}}
Line 33: Line 38:
 
  | native_name = {{{native_name|}}}
 
  | native_name = {{{native_name|}}}
 
  | image_flag = {{{image_flag|}}}
 
  | image_flag = {{{image_flag|}}}
 +
| flag_caption = {{{flag_caption|Flag}}}
 
  | image_coat = {{{image_coat|{{{image_symbol|}}}}}}
 
  | image_coat = {{{image_coat|{{{image_symbol|}}}}}}
 
  | symbol_width = {{{symbol_width|}}}
 
  | symbol_width = {{{symbol_width|}}}
Line 51: Line 57:
 
  | ethnic_groups_year = {{{ethnic_groups_year|}}}
 
  | ethnic_groups_year = {{{ethnic_groups_year|}}}
 
  | religion = {{{religion|}}}
 
  | religion = {{{religion|}}}
 +
| religion_year = {{{religion_year|}}}
 
  | demonym = {{{demonym|}}}
 
  | demonym = {{{demonym|}}}
 
  | org_type = {{{type|}}}
 
  | org_type = {{{type|}}}
Line 73: Line 80:
 
  | area_footnote = {{{area_footnote|}}}
 
  | area_footnote = {{{area_footnote|}}}
 
  | area_label = {{{area_label|Total}}}
 
  | area_label = {{{area_label|Total}}}
  | area_label2 = {{{area_label2|}}}&nbsp;
+
  | area_label2 = {{{area_label2|}}}
 
  | area_data2 = {{{area_data2|}}}
 
  | area_data2 = {{{area_data2|}}}
| population_rank = {{{population_rank|}}}
 
 
  | population_estimate = {{{population_estimate|}}}
 
  | population_estimate = {{{population_estimate|}}}
 +
| population_estimate_rank = {{{population_estimate_rank|}}}
 
  | population_estimate_year = {{{population_estimate_year|}}}
 
  | population_estimate_year = {{{population_estimate_year|}}}
 
  | population_census = {{{population_census|}}}
 
  | population_census = {{{population_census|}}}
Line 82: Line 89:
 
  | population_density_km2 = {{{population_density_km2|}}}
 
  | population_density_km2 = {{{population_density_km2|}}}
 
  | population_density_sq_mi = {{{population_density_sq_mi|}}}
 
  | population_density_sq_mi = {{{population_density_sq_mi|}}}
  | population_density_rank = {{{population_density_rank|}}}
+
 
 +
<!-- NOTE: population_density_rank is shown after pop_den_footnote, so normal transclusion of the former causes issues with the child infobox below. The child infobox can't be placed under population_density_rank because the value of this field is surrounded by brackets and linked. -->
 +
 
 +
  | pop_den_footnote = {{{pop_den_footnote|}}}{{#if:{{{population_density_rank|}}}|{{sp}}([[List of countries and territories by population density|{{{population_density_rank}}}]])}}<!--
 +
  -->{{#if:{{{GVA|}}}{{{GVA_per_capita|}}}
 +
  |{{infobox|child=yes|headerstyle=text-align:left;
 +
    | label1 = [[Gross value added|GVA]]
 +
    | data1 = {{{GVA_year|}}} estimate
 +
    | label2 = {{nobold|&nbsp;• Total}}
 +
    | data2 = {{{GVA|}}}
 +
    | rowclass2 = mergedrow
 +
    | label3 = {{nobold|&nbsp;• Per capita}}
 +
    | data3 = {{{GVA_per_capita|}}}
 +
    | rowclass3 = mergedrow
 +
  }}
 +
  }}
 +
 
 
  | GDP_PPP = {{{GDP_PPP|}}}
 
  | GDP_PPP = {{{GDP_PPP|}}}
| GDP_PPP_rank = {{{GDP_PPP_rank|}}}
 
 
  | GDP_PPP_year = {{{GDP_PPP_year|}}}
 
  | GDP_PPP_year = {{{GDP_PPP_year|}}}
 
  | GDP_PPP_per_capita = {{{GDP_PPP_per_capita|}}}
 
  | GDP_PPP_per_capita = {{{GDP_PPP_per_capita|}}}
| GDP_PPP_per_capita_rank = {{{GDP_PPP_per_capita_rank|}}}
 
 
  | GDP_nominal = {{{GDP_nominal|}}}
 
  | GDP_nominal = {{{GDP_nominal|}}}
| GDP_nominal_rank = {{{GDP_nominal_rank|}}}
 
 
  | GDP_nominal_year = {{{GDP_nominal_year|}}}
 
  | GDP_nominal_year = {{{GDP_nominal_year|}}}
 
  | GDP_nominal_per_capita = {{{GDP_nominal_per_capita|}}}
 
  | GDP_nominal_per_capita = {{{GDP_nominal_per_capita|}}}
| GDP_nominal_per_capita_rank = {{{GDP_nominal_per_capita_rank|}}}
 
 
  | Gini_year = {{{Gini_year|}}}
 
  | Gini_year = {{{Gini_year|}}}
 
  | Gini_change = {{{Gini_change|}}}
 
  | Gini_change = {{{Gini_change|}}}

Latest revision as of 20:13, 21 September 2020

Template documentation[view] [edit] [history] [purge]

This infobox template is used to generate an infobox for the righthand side of a UK country article.

[[Category:Infobox templates|Template:Remove first word]]
PAGENAME
Government government_type
 -  Monarch monarch
 -  [[First Minister of PAGENAME|First Minister]] first_minister
 -  [[Deputy First Minister of PAGENAME|Deputy First Minister]] deputy_first_minister
Parliament of the United Kingdom
• [[Secretary of State for PAGENAME|Secretary of State]]secretary_of_state
• House of Commons[[List of MPs for constituencies in PAGENAME (2019–present)|number_of_mps MPs]] (of 650)
Currency Pound sterling (GBP£)
Time zone Greenwich Mean Time (UTCTemplate:Sp)
 -  Summer (DST) British Summer Time (UTC+1)
Calling code [[++44]]
{{Infobox UK country
 | conventional_long_name = <!-- defaults to page name -->
 | common_name = <!-- defaults to page name -->
 | native_name = 
 | image_flag = 
 | flag_caption = 
 | image_coat = 
 | symbol_width = 
 | symbol_type = 
 | national_motto = 
 | englishmotto = 
 | national_anthem = 
 | image_map = <!-- defaults to "common_name in the UK and Europe.svg" -->
 | map_caption = <!-- defaults to "Location of common_name (dark green) – in Europe  (green & dark grey) – in the United Kingdom  (green)" -->
 | image_map2 = <!-- Another map -->
 | status = 
 | capital = 
 | coordinates = 
 | largest_city = 
 | languages_type = 
 | languages = 
 | languages2_type = 
 | languages2 = 
 | languages2_sub = 
 | ethnic_groups = 
 | ethnic_groups_year = 
 | religion = 
 | religion_year = 
 | demonym = 
 | type = 
 | membership_type = <!-- defaults to "Sovereign state" -->
 | membership = <!-- defaults to "United Kingdom" -->
 | legal_jurisdiction = 
 | government_type = 
 | monarch =
 | first_minister =
 | deputy_first_minister =
 | secretary_of_state =
 | number_of_mps =
 | legislature = 
 | sovereignty_type = 
 | sovereignty_note = 
 | established_event1 = 
 | established_date1 = 
 | established_event2 = 
 | established_date2 = 
 | established_event3 = 
 | established_date3 = 
 | established_event4 = 
 | established_date4 = 
 | established_event5 = 
 | established_date5 = 
 | area_rank = 
 | area_magnitude = 
 | area_km2 = 
 | area_sq_mi = 
 | percent_water = 
 | population_estimate = 
 | population_estimate_rank = 
 | population_estimate_year = 
 | population_census = 
 | population_census_year = 
 | population_density_km2 = 
 | population_density_sq_mi = 
 | population_density_rank = 
 | pop_den_footnote = 
 | GVA = 
 | GVA_rank = 
 | GVA_year = 
 | GVA_per_capita =
 | GVA_per_capita_rank =
 | GDP_PPP = 
 | GDP_PPP_rank =
 | GDP_PPP_year = 
 | GDP_PPP_per_capita =
 | GDP_PPP_per_capita_rank = 
 | GDP_nominal = 
 | GDP_nominal_rank = 
 | GDP_nominal_year = 
 | GDP_nominal_per_capita =
 | GDP_nominal_per_capita_rank =
 | Gini_year = 
 | Gini_change = 
 | Gini = 
 | Gini_ref = 
 | Gini_rank = 
 | HDI_year = 
 | HDI_change = 
 | HDI = 
 | HDI_ref = 
 | HDI_rank = 
 | currency = <!-- defaults to "Pound sterling" -->
 | currency_code = <!-- defaults to "GBP" -->
 | time_zone = <!-- defaults to "GMT" -->
 | utc_offset = 
 | time_zone_DST = <!-- defaults to "BST" -->
 | utc_offset_DST = <!-- defaults to "+1" -->
 | date_format = <!-- defaults to "dd/mm/yyyy (AD)" -->
 | drives_on = <!-- defaults to "left" -->
 | calling_code = <!-- defaults to "+44" -->
 | patron_saint = 
 | cctld = 
 | official_website = 
 | footnote_a = 
 | footnote_b = 
 | footnote_c = 
 | footnote_d =
 | footnote_e =
 | footnote_f =
}}