Difference between revisions of "Template:Infobox UK country"
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 | + | | 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 = | + | |
− | | | + | | leader_title1 = [[Monarchy of the United Kingdom|Monarch]] |
− | + | | leader_title2 = [[First Minister of {{{common_name|{{PAGENAME}}}}}|First Minister]] | |
− | | | + | | leader_title3 = [[Deputy First Minister of {{{common_name|{{PAGENAME}}}}}|Deputy First Minister]] |
− | + | ||
− | {{#if:{{{deputy_first_minister|}}}|| | + | <!-- 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. --> |
− | | | + | |
− | + | | {{#if:{{{first_minister|}}}{{{deputy_first_minister|}}}|leader_name1|null1}} = {{#if:{{{first_minister|}}}{{{deputy_first_minister|}}}|{{{monarch|}}}}} | |
− | + | | {{#if:{{{deputy_first_minister|}}}|leader_name2|null2}} = {{#if:{{{deputy_first_minister|}}}|{{{first_minister|}}}}} | |
− | + | | leader_name{{#if:{{{deputy_first_minister|}}}|3|{{#if:{{{first_minister|}}}|2|1}}}} = {{{deputy_first_minister|{{{first_minister|{{{monarch|}}}}}}}}}<!-- | |
− | + | -->{{infobox|child=yes|headerstyle=text-align:left;|labelstyle=font-weight:normal;padding-left:10px; | |
− | + | | header1 = {{#if:{{{secretary_of_state|}}}{{{number_of_mps|}}}|[[Parliament of the United Kingdom]]}} | |
− | + | | rowclass2 = mergedrow | |
− | + | | label2 = {{#if:{{{secretary_of_state|}}}|• [[Secretary of State for {{{common_name|{{PAGENAME}}}}}|Secretary of State]]}} | |
− | + | | data2 = {{{secretary_of_state|}}} | |
+ | | rowclass3 = mergedrow | ||
+ | | label3 = {{#if:{{{number_of_mps|}}}|• [[List of MPs elected in the 2017 United Kingdom general election|House of 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 sterling]]}}} | | currency = {{{currency|[[Pound sterling]]}}} | ||
− | | currency_code = {{{currency_code|GBP}}} | + | | currency_code = {{{currency_code|GBP{{))!}}; {{!((}}Pound sign{{!}}£}}} |
− | | time_zone = {{{time_zone|[[Greenwich Mean Time | + | | time_zone = {{{time_zone|[[Greenwich Mean Time]]}}} |
− | | utc_offset = {{{utc_offset| | + | | utc_offset = {{{utc_offset|{{sp}}}}} |
− | | time_zone_DST = {{{time_zone_DST|[[British Summer Time | + | | 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 ([[Anno Domini|AD]])}}} | | date_format = {{{date_format|dd/mm/yyyy ([[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|}}} | + | | area_label2 = {{{area_label2|}}} |
| area_data2 = {{{area_data2|}}} | | area_data2 = {{{area_data2|}}} | ||
− | |||
| 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 = {{{ | + | |
+ | <!-- 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| • Total}} | ||
+ | | data2 = {{{GVA|}}} | ||
+ | | rowclass2 = mergedrow | ||
+ | | label3 = {{nobold| • Per capita}} | ||
+ | | data3 = {{{GVA_per_capita|}}} | ||
+ | | rowclass3 = mergedrow | ||
+ | }} | ||
+ | }} | ||
+ | |||
| GDP_PPP = {{{GDP_PPP|}}} | | GDP_PPP = {{{GDP_PPP|}}} | ||
− | |||
| 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_nominal = {{{GDP_nominal|}}} | | GDP_nominal = {{{GDP_nominal|}}} | ||
− | |||
| 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|}}} | ||
− | |||
| 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
![]() | This template is a customized wrapper for {{Infobox country}}. Any field from {{Infobox country}} can work so long as it is added to this template first. |
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 |
- | [[Deputy First Minister of PAGENAME |
deputy_first_minister |
Parliament of the United Kingdom | ||
• [[Secretary of State for PAGENAME | secretary_of_state | |
• House of Commons | [[List of MPs for constituencies in PAGENAME | |
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 = }}
The above documentation is transcluded from Template:Infobox UK country/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |