Jump to content

Template:Infobox UK constituency and Template:Infobox UK constituency/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Added original_name field
 
separate field to name borough
 
Line 14: Line 14:
|subheader = {{#if:{{{abolished|}}}|Former}} {{#switch:{{{parliament|uk}}}
|subheader = {{#if:{{{abolished|}}}|Former}} {{#switch:{{{parliament|uk}}}
|uk=[[{{{type}}} constituency]]
|uk=[[{{{type}}} constituency]]
|ihc=[[{{{type}}} constituency]]
|#default=constituency}}<br/><span class="category">{{#switch:{{{parliament|uk}}}
|#default=constituency}}<br/><span class="category">{{#switch:{{{parliament|uk}}}
|uk=for the [[House of Commons of the United Kingdom|House of Commons]]
|uk=for the [[House of Commons of the United Kingdom|House of Commons]]
|ihc=for the [[Irish House of Commons]]
|#default=Unknown parliament {{{parliament}}}.}}</span>
|#default=Unknown parliament {{{parliament}}}.}}</span>


Line 52: Line 50:
|Current constituency}}
|Current constituency}}
|label7 = Created
|label7 = Created
|data7 = {{#if:{{{abolished|}}}||{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year}}}}} {{#if:{{{original_name|}}}|(as {{{original_name}}})}}}}
|data7 = {{#if:{{{abolished|}}}||{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year}}}}}}}
|label8 = {{#switch:{{{parliament|uk}}}
|label8 = {{#switch:{{{parliament|uk}}}
|uk=[[Member of Parliament (United Kingdom)|Member of Parliament]]
|uk=[[Member of Parliament (United Kingdom)|Member of Parliament]]
|#default=Member of Parliament / Assembly member}}
|#default=Member of Parliament / Assembly member}}
|data8 = {{#if:{{{abolished|}}}||{{#if:{{{mp|}}}|{{{mp}}}|None}} {{#if:{{{party|}}}|({{#ifexist:{{{party}}}|[[{{{party}}}|<span class="category">{{#invoke:political party|fetch|{{{party}}}|shortname}}</span>]]|{{{party}}}}})}}}}
|data8 = {{#if:{{{abolished|}}}||{{#if:{{{mp|}}}|{{{mp}}}|None}} {{#if:{{{party|}}}|({{#ifexist:Template:{{{party}}}/meta/shortname|[[{{{party}}}|<span class="category">{{Template:{{{party}}}/meta/shortname}}</span>]]|{{{party}}}}})}}}}
|label9 = Seats
|label9 = Number of members
|data9 = {{#if:{{{seats|}}}|{{{seats}}}|{{{elects_howmany|}}}}}
|data9 = {{{elects_howmany|}}}
|label31 = During its existence contributed to new seat(s) of:
|label31 = During its existence contributed to new seat(s) of:
|data31 = {{{next5|}}}
|data31 = {{{next5|}}}
|label10 = Created from
|label10 = Replaced by
|data10 = {{{previous|}}}
|data10 = {{{next|}}}
|label11 = Replaced by
|label11 = Created from
|data11 = {{{next|}}}
|data11 = {{{previous|}}}


<!-- previously a constituency between these years -->
<!-- previously a constituency between these years -->
Line 70: Line 68:
|{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year2}}}}}–{{Infobox UK constituency/year|{{{parliament|uk}}}|end|{{{abolished2}}}}}
|{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year2}}}}}–{{Infobox UK constituency/year|{{{parliament|uk}}}|end|{{{abolished2}}}}}
}}
}}
|label13 = Seats
|label13 = Number of members
|data13 = {{#if:{{{seats2|}}}|{{{seats2}}}|{{{elects_howmany2|}}}}}
|data13 = {{{elects_howmany2|}}}
|label14 = Type of constituency
|label14 = Type of constituency
|data14 = {{#if:{{{type2|}}}|[[{{{type2}}} constituency]]}}
|data14 = {{#if:{{{type2|}}}|[[{{{type2}}} constituency]]}}
|label15 = Created from
|label15 = Replaced by
|data15 = {{{previous2|}}}
|data15 = {{{next2|}}}
|label16 = Replaced by
|label16 = Created from
|data16 = {{{next2|}}}
|data16 = {{{previous2|}}}


<!-- previously a constituency between these years -->
<!-- previously a constituency between these years -->
Line 83: Line 81:
|{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year3}}}}}–{{Infobox UK constituency/year|{{{parliament|uk}}}|end|{{{abolished3}}}}}
|{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year3}}}}}–{{Infobox UK constituency/year|{{{parliament|uk}}}|end|{{{abolished3}}}}}
}}
}}
|label18 = Seats
|label18 = Number of members
|data18 = {{#if:{{{seats3|}}}|{{{seats3}}}|{{{elects_howmany3|}}}}}
|data18 = {{{elects_howmany3|}}}
|label19 = Type of constituency
|label19 = Type of constituency
|data19 = {{#if:{{{type3|}}}|[[{{{type3}}} constituency]]}}
|data19 = {{#if:{{{type3|}}}|[[{{{type3}}} constituency]]}}
|label20 = Created from
|label20 = Replaced by
|data20 = {{{previous3|}}}
|data20 = {{{next3|}}}
|label21 = Replaced by
|label21 = Created from
|data21 = {{{next3|}}}
|data21 = {{{previous3|}}}


<!-- previously a constituency between these years -->
<!-- previously a constituency between these years -->
Line 96: Line 94:
|{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year4}}}}}–{{Infobox UK constituency/year|{{{parliament|uk}}}|end|{{{abolished4}}}}}
|{{Infobox UK constituency/year|{{{parliament|uk}}}|start|{{{year4}}}}}–{{Infobox UK constituency/year|{{{parliament|uk}}}|end|{{{abolished4}}}}}
}}
}}
|label23 = Seats
|label23 = Number of members
|data23 = {{#if:{{{seats4|}}}|{{{seats4}}}|{{{elects_howmany4|}}}}}
|data23 = {{{elects_howmany4|}}}
|label24 = Type of constituency
|label24 = Type of constituency
|data24 = {{#if:{{{type4|}}}|[[{{{type4}}} constituency]]}}
|data24 = {{#if:{{{type4|}}}|[[{{{type4}}} constituency]]}}
|label25 = Created from
|label25 = Replaced by
|data25 = {{{previous4|}}}
|data25 = {{{next4|}}}
|label26 = Replaced by
|label26 = Created from
|data26 = {{{next4|}}}
|data26 = {{{previous4|}}}


<!-- overlaps with these constituencies. only makes sense for current constituencies -->
<!-- overlaps with these constituencies. only makes sense for current constituencies -->
Line 110: Line 108:
|Northern Ireland=[[Northern Ireland Assembly]]
|Northern Ireland=[[Northern Ireland Assembly]]
|Scotland=[[Scottish Parliament]]
|Scotland=[[Scottish Parliament]]
|Wales=[[Senedd]]
|Wales=[[National Assembly for Wales|Welsh Assembly]]
|#default=National government in {{{region}}}}}
|#default=National government in {{{region}}}}}
|data28 = {{#switch:{{{region|}}}
|data28 = {{#switch:{{{region|}}}
|Northern Ireland={{#ifexist:{{{national}}} (Assembly constituency)|[[{{{national}}} (Assembly constituency)|{{{national}}}]]|{{{national|}}}}}
|Northern Ireland={{#ifexist:{{{national}}} (Assembly constituency)|[[{{{national}}} (Assembly constituency)|{{{national}}}]]|{{{national|}}}}}
|Wales={{#ifexist:{{{national}}} (Senedd electoral region)|[[{{{national}}} (Senedd electoral region)|{{{national}}}]]|{{{national|}}}}}
|Wales={{#ifexist:{{{national}}} (National Assembly for Wales electoral region)|[[{{{national}}} (National Assembly for Wales electoral region)|{{{national}}}]]|{{{national|}}}}}
|Scotland={{#ifexist:{{{national}}} (Scottish Parliament region)|[[{{{national}}} (Scottish Parliament region)|{{{national}}}]]|{{{national|}}}}}
|Scotland={{#ifexist:{{{national}}} (Scottish Parliament region)|[[{{{national}}} (Scottish Parliament region)|{{{national}}}]]|{{{national|}}}}}
|#default={{{national|}}}}}
|#default={{{national|}}}}}