Difference between revisions of "Template:Infobox legislative election/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Number 57
(Test)
imported>Humongous125
Line 3: Line 3:
 
| bodyclass = {{#if:{{{election_date|}}}|vevent|}}
 
| bodyclass = {{#if:{{{election_date|}}}|vevent|}}
 
| bodystyle = line-height: 1.5em; max-width: 32em; min-width:22em; width:auto;
 
| bodystyle = line-height: 1.5em; max-width: 32em; min-width:22em; width:auto;
| title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{election_name|}}}|<div style="font-size:130%">{{{election_name}}}</div>}}|{{{election_name|}}}}}
+
| title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{election_name|}}}|<div style="font-size:120%; font-weight:bold">{{{election_name}}}</div>}}|{{{election_name|}}}}}
  
 
| subheaderstyle = line-height:130%;
 
| subheaderstyle = line-height:130%;
Line 21: Line 21:
 
| datastyle = text-align:center;
 
| datastyle = text-align:center;
 
| labelstyle = width:5em;white-space:nowrap;
 
| labelstyle = width:5em;white-space:nowrap;
 +
 +
| data2 = {{#if:{{{opinion_polls|}}}| [[{{{opinion_polls}}}|Opinion&nbsp;polls]] }}
  
 
| label2 = Turnout
 
| label2 = Turnout
| data2 = {{{turnout|}}}
+
| data3 = {{{turnout|}}}
  
 
| label3 = Reporting
 
| label3 = Reporting
| data3 = {{#if:{{{reporting|}}}|{{center|{{Percentage bar|{{{reporting}}}|{{{reporting}}}%|1BCE0E}}}}{{small|as of '''{{{last_update}}} {{{time_zone}}}''' }}}}
+
| data4 = {{#if:{{{reporting|}}}|{{center|{{Percentage bar|{{{reporting}}}|{{{reporting}}}%|1BCE0E}}}}{{small|as of '''{{{last_update}}} {{{time_zone}}}''' }}}}
  
 
| belowstyle = padding:0 3px
 
| belowstyle = padding:0 3px
Line 57: Line 59:
 
  | heading        = {{{heading2|}}}
 
  | heading        = {{{heading2|}}}
 
  | party          = {{{party2|}}}
 
  | party          = {{{party2|}}}
  | party_leader  = {{{party_leader2|}}}
+
  | party_leader  = {{If empty|{{{party_leader2|}}}|{{{leader2|}}}}}
 
  | colour        = {{If empty|{{{colour2|}}}|{{{color2|}}}}}
 
  | colour        = {{If empty|{{{colour2|}}}|{{{color2|}}}}}
 
  | percentage    = {{{percentage2|}}}
 
  | percentage    = {{{percentage2|}}}
 
  | seats          = {{{seats2|}}}
 
  | seats          = {{{seats2|}}}
  | seats_before  = {{{seats2_before|}}}
+
  | seats_before  = {{If empty|{{{seats2_before|}}}|{{{last_election2|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 68: Line 70:
 
  | heading        = {{{heading3|}}}
 
  | heading        = {{{heading3|}}}
 
  | party          = {{{party3|}}}
 
  | party          = {{{party3|}}}
  | party_leader  = {{{party_leader3|}}}
+
  | party_leader  = {{If empty|{{{party_leader3|}}}|{{{leader3|}}}}}
 
  | colour        = {{If empty|{{{colour3|}}}|{{{color3|}}}}}
 
  | colour        = {{If empty|{{{colour3|}}}|{{{color3|}}}}}
 
  | percentage    = {{{percentage3|}}}
 
  | percentage    = {{{percentage3|}}}
 
  | seats          = {{{seats3|}}}
 
  | seats          = {{{seats3|}}}
  | seats_before  = {{{seats3_before|}}}
+
  | seats_before  = {{If empty|{{{seats3_before|}}}|{{{last_election3|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 79: Line 81:
 
  | heading        = {{{heading4|}}}
 
  | heading        = {{{heading4|}}}
 
  | party          = {{{party4|}}}
 
  | party          = {{{party4|}}}
  | party_leader  = {{{party_leader4|}}}
+
  | party_leader  = {{If empty|{{{party_leader4|}}}|{{{leader4|}}}}}
 
  | colour        = {{If empty|{{{colour4|}}}|{{{color4|}}}}}
 
  | colour        = {{If empty|{{{colour4|}}}|{{{color4|}}}}}
 
  | percentage    = {{{percentage4|}}}
 
  | percentage    = {{{percentage4|}}}
 
  | seats          = {{{seats4|}}}
 
  | seats          = {{{seats4|}}}
  | seats_before  = {{{seats4_before|}}}
+
  | seats_before  = {{If empty|{{{seats4_before|}}}|{{{last_election4|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 90: Line 92:
 
  | heading        = {{{heading5|}}}
 
  | heading        = {{{heading5|}}}
 
  | party          = {{{party5|}}}
 
  | party          = {{{party5|}}}
  | party_leader  = {{{party_leader5|}}}
+
  | party_leader  = {{If empty|{{{party_leader5|}}}|{{{leader5|}}}}}
 
  | colour        = {{If empty|{{{colour5|}}}|{{{color5|}}}}}
 
  | colour        = {{If empty|{{{colour5|}}}|{{{color5|}}}}}
 
  | percentage    = {{{percentage5|}}}
 
  | percentage    = {{{percentage5|}}}
 
  | seats          = {{{seats5|}}}
 
  | seats          = {{{seats5|}}}
  | seats_before  = {{{seats5_before|}}}
+
  | seats_before  = {{If empty|{{{seats5_before|}}}|{{{last_election5|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 101: Line 103:
 
  | heading        = {{{heading6|}}}
 
  | heading        = {{{heading6|}}}
 
  | party          = {{{party6|}}}
 
  | party          = {{{party6|}}}
  | party_leader  = {{{party_leader6|}}}
+
  | party_leader  = {{If empty|{{{party_leader6|}}}|{{{leader6|}}}}}
 
  | colour        = {{If empty|{{{colour6|}}}|{{{color6|}}}}}
 
  | colour        = {{If empty|{{{colour6|}}}|{{{color6|}}}}}
 
  | percentage    = {{{percentage6|}}}
 
  | percentage    = {{{percentage6|}}}
 
  | seats          = {{{seats6|}}}
 
  | seats          = {{{seats6|}}}
  | seats_before  = {{{seats6_before|}}}
+
  | seats_before  = {{If empty|{{{seats6_before|}}}|{{{last_election6|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 112: Line 114:
 
  | heading        = {{{heading7|}}}
 
  | heading        = {{{heading7|}}}
 
  | party          = {{{party7|}}}
 
  | party          = {{{party7|}}}
  | party_leader  = {{{party_leader7|}}}
+
  | party_leader  = {{If empty|{{{party_leader7|}}}|{{{leader7|}}}}}
 
  | colour        = {{If empty|{{{colour7|}}}|{{{color7|}}}}}
 
  | colour        = {{If empty|{{{colour7|}}}|{{{color7|}}}}}
 
  | percentage    = {{{percentage7|}}}
 
  | percentage    = {{{percentage7|}}}
 
  | seats          = {{{seats7|}}}
 
  | seats          = {{{seats7|}}}
  | seats_before  = {{{seats7_before|}}}
+
  | seats_before  = {{If empty|{{{seats7_before|}}}|{{{last_election7|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 123: Line 125:
 
  | heading        = {{{heading8|}}}
 
  | heading        = {{{heading8|}}}
 
  | party          = {{{party8|}}}
 
  | party          = {{{party8|}}}
  | party_leader  = {{{party_leader8|}}}
+
  | party_leader  = {{If empty|{{{party_leader8|}}}|{{{leader8|}}}}}
 
  | colour        = {{If empty|{{{colour8|}}}|{{{color8|}}}}}
 
  | colour        = {{If empty|{{{colour8|}}}|{{{color8|}}}}}
 
  | percentage    = {{{percentage8|}}}
 
  | percentage    = {{{percentage8|}}}
 
  | seats          = {{{seats8|}}}
 
  | seats          = {{{seats8|}}}
  | seats_before  = {{{seats8_before|}}}
+
  | seats_before  = {{If empty|{{{seats8_before|}}}|{{{last_election8|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 134: Line 136:
 
  | heading        = {{{heading9|}}}
 
  | heading        = {{{heading9|}}}
 
  | party          = {{{party9|}}}
 
  | party          = {{{party9|}}}
  | party_leader  = {{{party_leader9|}}}
+
  | party_leader  = {{If empty|{{{party_leader9|}}}|{{{leader9|}}}}}
 
  | colour        = {{If empty|{{{colour9|}}}|{{{color9|}}}}}
 
  | colour        = {{If empty|{{{colour9|}}}|{{{color9|}}}}}
 
  | percentage    = {{{percentage9|}}}
 
  | percentage    = {{{percentage9|}}}
 
  | seats          = {{{seats9|}}}
 
  | seats          = {{{seats9|}}}
  | seats_before  = {{{seats9_before|}}}
+
  | seats_before  = {{If empty|{{{seats9_before|}}}|{{{last_election9|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 145: Line 147:
 
  | heading        = {{{heading10|}}}
 
  | heading        = {{{heading10|}}}
 
  | party          = {{{party10|}}}
 
  | party          = {{{party10|}}}
  | party_leader  = {{{party_leader10|}}}
+
  | party_leader  = {{If empty|{{{party_leader10|}}}|{{{leader10|}}}}}
 
  | colour        = {{If empty|{{{colour10|}}}|{{{color10|}}}}}
 
  | colour        = {{If empty|{{{colour10|}}}|{{{color10|}}}}}
 
  | percentage    = {{{percentage10|}}}
 
  | percentage    = {{{percentage10|}}}
 
  | seats          = {{{seats10|}}}
 
  | seats          = {{{seats10|}}}
  | seats_before  = {{{seats10_before|}}}
+
  | seats_before  = {{If empty|{{{seats10_before|}}}|{{{last_election10|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 156: Line 158:
 
  | heading        = {{{heading11|}}}
 
  | heading        = {{{heading11|}}}
 
  | party          = {{{party11|}}}
 
  | party          = {{{party11|}}}
  | party_leader  = {{{party_leader11|}}}
+
  | party_leader  = {{If empty|{{{party_leader11|}}}|{{{leader11|}}}}}
 
  | colour        = {{If empty|{{{colour11|}}}|{{{color11|}}}}}
 
  | colour        = {{If empty|{{{colour11|}}}|{{{color11|}}}}}
 
  | percentage    = {{{percentage11|}}}
 
  | percentage    = {{{percentage11|}}}
 
  | seats          = {{{seats11|}}}
 
  | seats          = {{{seats11|}}}
  | seats_before  = {{{seats11_before|}}}
+
  | seats_before  = {{If empty|{{{seats11_before|}}}|{{{last_election11|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 167: Line 169:
 
  | heading        = {{{heading12|}}}
 
  | heading        = {{{heading12|}}}
 
  | party          = {{{party12|}}}
 
  | party          = {{{party12|}}}
  | party_leader  = {{{party_leader12|}}}
+
  | party_leader  = {{If empty|{{{party_leader12|}}}|{{{leader12|}}}}}
 
  | colour        = {{If empty|{{{colour12|}}}|{{{color12|}}}}}
 
  | colour        = {{If empty|{{{colour12|}}}|{{{color12|}}}}}
 
  | percentage    = {{{percentage12|}}}
 
  | percentage    = {{{percentage12|}}}
 
  | seats          = {{{seats12|}}}
 
  | seats          = {{{seats12|}}}
  | seats_before  = {{{seats12_before|}}}
+
  | seats_before  = {{If empty|{{{seats12_before|}}}|{{{last_election12|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 178: Line 180:
 
  | heading        = {{{heading13|}}}
 
  | heading        = {{{heading13|}}}
 
  | party          = {{{party13|}}}
 
  | party          = {{{party13|}}}
  | party_leader  = {{{party_leader13|}}}
+
  | party_leader  = {{If empty|{{{party_leader13|}}}|{{{leader13|}}}}}
 
  | colour        = {{If empty|{{{colour13|}}}|{{{color13|}}}}}
 
  | colour        = {{If empty|{{{colour13|}}}|{{{color13|}}}}}
 
  | percentage    = {{{percentage13|}}}
 
  | percentage    = {{{percentage13|}}}
 
  | seats          = {{{seats13|}}}
 
  | seats          = {{{seats13|}}}
  | seats_before  = {{{seats13_before|}}}
+
  | seats_before  = {{If empty|{{{seats13_before|}}}|{{{last_election13|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 189: Line 191:
 
  | heading        = {{{heading14|}}}
 
  | heading        = {{{heading14|}}}
 
  | party          = {{{party14|}}}
 
  | party          = {{{party14|}}}
  | party_leader  = {{{party_leader14|}}}
+
  | party_leader  = {{If empty|{{{party_leader14|}}}|{{{leader14|}}}}}
 
  | colour        = {{If empty|{{{colour14|}}}|{{{color14|}}}}}
 
  | colour        = {{If empty|{{{colour14|}}}|{{{color14|}}}}}
 
  | percentage    = {{{percentage14|}}}
 
  | percentage    = {{{percentage14|}}}
 
  | seats          = {{{seats14|}}}
 
  | seats          = {{{seats14|}}}
  | seats_before  = {{{seats14_before|}}}
+
  | seats_before  = {{If empty|{{{seats14_before|}}}|{{{last_election14|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 200: Line 202:
 
  | heading        = {{{heading15|}}}
 
  | heading        = {{{heading15|}}}
 
  | party          = {{{party15|}}}
 
  | party          = {{{party15|}}}
  | party_leader  = {{{party_leader15|}}}
+
  | party_leader  = {{If empty|{{{party_leader15|}}}|{{{leader15|}}}}}
 
  | colour        = {{If empty|{{{colour15|}}}|{{{color15|}}}}}
 
  | colour        = {{If empty|{{{colour15|}}}|{{{color15|}}}}}
 
  | percentage    = {{{percentage15|}}}
 
  | percentage    = {{{percentage15|}}}
 
  | seats          = {{{seats15|}}}
 
  | seats          = {{{seats15|}}}
  | seats_before  = {{{seats15_before|}}}
+
  | seats_before  = {{If empty|{{{seats15_before|}}}|{{{last_election15|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 211: Line 213:
 
  | heading        = {{{heading16|}}}
 
  | heading        = {{{heading16|}}}
 
  | party          = {{{party16|}}}
 
  | party          = {{{party16|}}}
  | party_leader  = {{{party_leader16|}}}
+
  | party_leader  = {{If empty|{{{party_leader16|}}}|{{{leader16|}}}}}
 
  | colour        = {{If empty|{{{colour16|}}}|{{{color16|}}}}}
 
  | colour        = {{If empty|{{{colour16|}}}|{{{color16|}}}}}
 
  | percentage    = {{{percentage16|}}}
 
  | percentage    = {{{percentage16|}}}
 
  | seats          = {{{seats16|}}}
 
  | seats          = {{{seats16|}}}
  | seats_before  = {{{seats16_before|}}}
+
  | seats_before  = {{If empty|{{{seats16_before|}}}|{{{last_election16|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 222: Line 224:
 
  | heading        = {{{heading17|}}}
 
  | heading        = {{{heading17|}}}
 
  | party          = {{{party17|}}}
 
  | party          = {{{party17|}}}
  | party_leader  = {{{party_leader17|}}}
+
  | party_leader  = {{If empty|{{{party_leader17|}}}|{{{leader17|}}}}}
 
  | colour        = {{If empty|{{{colour17|}}}|{{{color17|}}}}}
 
  | colour        = {{If empty|{{{colour17|}}}|{{{color17|}}}}}
 
  | percentage    = {{{percentage17|}}}
 
  | percentage    = {{{percentage17|}}}
 
  | seats          = {{{seats17|}}}
 
  | seats          = {{{seats17|}}}
  | seats_before  = {{{seats17_before|}}}
+
  | seats_before  = {{If empty|{{{seats17_before|}}}|{{{last_election17|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 233: Line 235:
 
  | heading        = {{{heading18|}}}
 
  | heading        = {{{heading18|}}}
 
  | party          = {{{party18|}}}
 
  | party          = {{{party18|}}}
  | party_leader  = {{{party_leader18|}}}
+
  | party_leader  = {{If empty|{{{party_leader18|}}}|{{{leader18|}}}}}
 
  | colour        = {{If empty|{{{colour18|}}}|{{{color18|}}}}}
 
  | colour        = {{If empty|{{{colour18|}}}|{{{color18|}}}}}
 
  | percentage    = {{{percentage18|}}}
 
  | percentage    = {{{percentage18|}}}
 
  | seats          = {{{seats18|}}}
 
  | seats          = {{{seats18|}}}
  | seats_before  = {{{seats18_before|}}}
+
  | seats_before  = {{If empty|{{{seats18_before|}}}|{{{last_election18|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 244: Line 246:
 
  | heading        = {{{heading19|}}}
 
  | heading        = {{{heading19|}}}
 
  | party          = {{{party19|}}}
 
  | party          = {{{party19|}}}
  | party_leader  = {{{party_leader19|}}}
+
  | party_leader  = {{If empty|{{{party_leader19|}}}|{{{leader19|}}}}}
 
  | colour        = {{If empty|{{{colour19|}}}|{{{color19|}}}}}
 
  | colour        = {{If empty|{{{colour19|}}}|{{{color19|}}}}}
 
  | percentage    = {{{percentage19|}}}
 
  | percentage    = {{{percentage19|}}}
 
  | seats          = {{{seats19|}}}
 
  | seats          = {{{seats19|}}}
  | seats_before  = {{{seats19_before|}}}
+
  | seats_before  = {{If empty|{{{seats19_before|}}}|{{{last_election19|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 255: Line 257:
 
  | heading        = {{{heading20|}}}
 
  | heading        = {{{heading20|}}}
 
  | party          = {{{party20|}}}
 
  | party          = {{{party20|}}}
  | party_leader  = {{{party_leader20|}}}
+
  | party_leader  = {{If empty|{{{party_leader20|}}}|{{{leader20|}}}}}
 
  | colour        = {{If empty|{{{colour20|}}}|{{{color20|}}}}}
 
  | colour        = {{If empty|{{{colour20|}}}|{{{color20|}}}}}
 
  | percentage    = {{{percentage20|}}}
 
  | percentage    = {{{percentage20|}}}
 
  | seats          = {{{seats20|}}}
 
  | seats          = {{{seats20|}}}
  | seats_before  = {{{seats20_before|}}}
+
  | seats_before  = {{If empty|{{{seats20_before|}}}|{{{last_election20|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 266: Line 268:
 
  | heading        = {{{heading21|}}}
 
  | heading        = {{{heading21|}}}
 
  | party          = {{{party21|}}}
 
  | party          = {{{party21|}}}
  | party_leader  = {{{party_leader21|}}}
+
  | party_leader  = {{If empty|{{{party_leader21|}}}|{{{leader21|}}}}}
 
  | colour        = {{If empty|{{{colour21|}}}|{{{color21|}}}}}
 
  | colour        = {{If empty|{{{colour21|}}}|{{{color21|}}}}}
 
  | percentage    = {{{percentage21|}}}
 
  | percentage    = {{{percentage21|}}}
 
  | seats          = {{{seats21|}}}
 
  | seats          = {{{seats21|}}}
  | seats_before  = {{{seats21_before|}}}
+
  | seats_before  = {{If empty|{{{seats21_before|}}}|{{{last_election21|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 277: Line 279:
 
  | heading        = {{{heading22|}}}
 
  | heading        = {{{heading22|}}}
 
  | party          = {{{party22|}}}
 
  | party          = {{{party22|}}}
  | party_leader  = {{{party_leader22|}}}
+
  | party_leader  = {{If empty|{{{party_leader22|}}}|{{{leader22|}}}}}
 
  | colour        = {{If empty|{{{colour22|}}}|{{{color22|}}}}}
 
  | colour        = {{If empty|{{{colour22|}}}|{{{color22|}}}}}
 
  | percentage    = {{{percentage22|}}}
 
  | percentage    = {{{percentage22|}}}
 
  | seats          = {{{seats22|}}}
 
  | seats          = {{{seats22|}}}
  | seats_before  = {{{seats22_before|}}}
+
  | seats_before  = {{If empty|{{{seats22_before|}}}|{{{last_election22|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 288: Line 290:
 
  | heading        = {{{heading23|}}}
 
  | heading        = {{{heading23|}}}
 
  | party          = {{{party23|}}}
 
  | party          = {{{party23|}}}
  | party_leader  = {{{party_leader23|}}}
+
  | party_leader  = {{If empty|{{{party_leader23|}}}|{{{leader23|}}}}}
 
  | colour        = {{If empty|{{{colour23|}}}|{{{color23|}}}}}
 
  | colour        = {{If empty|{{{colour23|}}}|{{{color23|}}}}}
 
  | percentage    = {{{percentage23|}}}
 
  | percentage    = {{{percentage23|}}}
 
  | seats          = {{{seats23|}}}
 
  | seats          = {{{seats23|}}}
  | seats_before  = {{{seats23_before|}}}
+
  | seats_before  = {{If empty|{{{seats23_before|}}}|{{{last_election23|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 299: Line 301:
 
  | heading        = {{{heading24|}}}
 
  | heading        = {{{heading24|}}}
 
  | party          = {{{party24|}}}
 
  | party          = {{{party24|}}}
  | party_leader  = {{{party_leader24|}}}
+
  | party_leader  = {{If empty|{{{party_leader24|}}}|{{{leader24|}}}}}
 
  | colour        = {{If empty|{{{colour24|}}}|{{{color24|}}}}}
 
  | colour        = {{If empty|{{{colour24|}}}|{{{color24|}}}}}
 
  | percentage    = {{{percentage24|}}}
 
  | percentage    = {{{percentage24|}}}
 
  | seats          = {{{seats24|}}}
 
  | seats          = {{{seats24|}}}
  | seats_before  = {{{seats24_before|}}}
+
  | seats_before  = {{If empty|{{{seats24_before|}}}|{{{last_election24|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 310: Line 312:
 
  | heading        = {{{heading25|}}}
 
  | heading        = {{{heading25|}}}
 
  | party          = {{{party25|}}}
 
  | party          = {{{party25|}}}
  | party_leader  = {{{party_leader25|}}}
+
  | party_leader  = {{If empty|{{{party_leader25|}}}|{{{leader25|}}}}}
 
  | colour        = {{If empty|{{{colour25|}}}|{{{color25|}}}}}
 
  | colour        = {{If empty|{{{colour25|}}}|{{{color25|}}}}}
 
  | percentage    = {{{percentage25|}}}
 
  | percentage    = {{{percentage25|}}}
 
  | seats          = {{{seats25|}}}
 
  | seats          = {{{seats25|}}}
  | seats_before  = {{{seats25_before|}}}
+
  | seats_before  = {{If empty|{{{seats25_before|}}}|{{{last_election25|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 321: Line 323:
 
  | heading        = {{{heading26|}}}
 
  | heading        = {{{heading26|}}}
 
  | party          = {{{party26|}}}
 
  | party          = {{{party26|}}}
  | party_leader  = {{{party_leader26|}}}
+
  | party_leader  = {{If empty|{{{party_leader26|}}}|{{{leader26|}}}}}
 
  | colour        = {{If empty|{{{colour26|}}}|{{{color26|}}}}}
 
  | colour        = {{If empty|{{{colour26|}}}|{{{color26|}}}}}
 
  | percentage    = {{{percentage26|}}}
 
  | percentage    = {{{percentage26|}}}
 
  | seats          = {{{seats26|}}}
 
  | seats          = {{{seats26|}}}
  | seats_before  = {{{seats26_before|}}}
+
  | seats_before  = {{If empty|{{{seats26_before|}}}|{{{last_election26|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 332: Line 334:
 
  | heading        = {{{heading27|}}}
 
  | heading        = {{{heading27|}}}
 
  | party          = {{{party27|}}}
 
  | party          = {{{party27|}}}
  | party_leader  = {{{party_leader27|}}}
+
  | party_leader  = {{If empty|{{{party_leader27|}}}|{{{leader27|}}}}}
 
  | colour        = {{If empty|{{{colour27|}}}|{{{color27|}}}}}
 
  | colour        = {{If empty|{{{colour27|}}}|{{{color27|}}}}}
 
  | percentage    = {{{percentage27|}}}
 
  | percentage    = {{{percentage27|}}}
 
  | seats          = {{{seats27|}}}
 
  | seats          = {{{seats27|}}}
  | seats_before  = {{{seats27_before|}}}
+
  | seats_before  = {{If empty|{{{seats27_before|}}}|{{{last_election27|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 343: Line 345:
 
  | heading        = {{{heading28|}}}
 
  | heading        = {{{heading28|}}}
 
  | party          = {{{party28|}}}
 
  | party          = {{{party28|}}}
  | party_leader  = {{{party_leader28|}}}
+
  | party_leader  = {{If empty|{{{party_leader28|}}}|{{{leader28|}}}}}
 
  | colour        = {{If empty|{{{colour28|}}}|{{{color28|}}}}}
 
  | colour        = {{If empty|{{{colour28|}}}|{{{color28|}}}}}
 
  | percentage    = {{{percentage28|}}}
 
  | percentage    = {{{percentage28|}}}
 
  | seats          = {{{seats28|}}}
 
  | seats          = {{{seats28|}}}
  | seats_before  = {{{seats28_before|}}}
+
  | seats_before  = {{If empty|{{{seats28_before|}}}|{{{last_election28|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 354: Line 356:
 
  | heading        = {{{heading29|}}}
 
  | heading        = {{{heading29|}}}
 
  | party          = {{{party29|}}}
 
  | party          = {{{party29|}}}
  | party_leader  = {{{party_leader29|}}}
+
  | party_leader  = {{If empty|{{{party_leader29|}}}|{{{leader29|}}}}}
 
  | colour        = {{If empty|{{{colour29|}}}|{{{color29|}}}}}
 
  | colour        = {{If empty|{{{colour29|}}}|{{{color29|}}}}}
 
  | percentage    = {{{percentage29|}}}
 
  | percentage    = {{{percentage29|}}}
 
  | seats          = {{{seats29|}}}
 
  | seats          = {{{seats29|}}}
  | seats_before  = {{{seats29_before|}}}
+
  | seats_before  = {{If empty|{{{seats29_before|}}}|{{{last_election29|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}
Line 365: Line 367:
 
  | heading        = {{{heading30|}}}
 
  | heading        = {{{heading30|}}}
 
  | party          = {{{party30|}}}
 
  | party          = {{{party30|}}}
  | party_leader  = {{{party_leader30|}}}
+
  | party_leader  = {{If empty|{{{party_leader30|}}}|{{{leader30|}}}}}
 
  | colour        = {{If empty|{{{colour30|}}}|{{{color30|}}}}}
 
  | colour        = {{If empty|{{{colour30|}}}|{{{color30|}}}}}
 
  | percentage    = {{{percentage30|}}}
 
  | percentage    = {{{percentage30|}}}
 
  | seats          = {{{seats30|}}}
 
  | seats          = {{{seats30|}}}
  | seats_before  = {{{seats30_before|}}}
+
  | seats_before  = {{If empty|{{{seats30_before|}}}|{{{last_election30|}}}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | ongoing        = {{{ongoing|}}}
 
  | first_election = {{{first_election|}}}
 
  | first_election = {{{first_election|}}}

Revision as of 13:09, 31 August 2019

This infobox is used for a parliamentary election with multiple parties winning seats.

Usage

{{Template:PAGENAMETDOC | election_name = {{{election_name}}} | country = {{{country}}} | flag_year = {{{flag_year}}} | previous_election = {{{previous_election}}} | next_election = {{{next_election}}} | election_date = {{{election_date}}} | seats_for_election = {{{seats_for_election}}} | majority_seats = {{{majority_seats}}} | turnout = {{{turnout}}} | ongoing =

| party1 = {{{party1}}} | colour1 = | leader1 = {{{leader1}}} | percentage1 = {{{percentage1}}} | seats1 = 20 | last_election1 = 0

| party2 = {{{party2}}} | colour2 = | leader2 = {{{leader2}}} | percentage2 = {{{percentage2}}} | seats2 = 10 | last_election2 = 5

| map = {{{map}}} | map_upright = | map_alt = {{{map_alt}}} | map_caption = {{{map_caption}}}

| title = {{{title}}} | posttitle = {{{posttitle}}} | before_election = {{{before_election}}} | before_party = {{{before_party}}} | after_election = {{{after_election}}} | after_party = {{{after_party}}} }}

{{Infobox legislative election
| election_name      = 
| country            = 
| flag_year          = <!-- if a variant is needed -->
| previous_election  = 
| next_election      = 
| election_date      = 
| seats_for_election = <!-- description-- >
| majority_seats     = <!-- number -->
| turnout            = 
| reporting          =
| last_update        =
| time_zone          =
| ongoing            = <!-- or future -->
| first_election     = <!-- yes/no (blank is no) -->
| heading1           =
| party1             = 
| leader1            = 
| colour1            = 
| percentage1        = <!-- incl. percentage sign -->
| seats1             = 
| last_election1     = <!-- Write 'new' if new party -->
| heading2           =
| party2             = 
| leader2            = 
| colour2            = 
| percentage2        = <!-- incl. percentage sign -->
| seats2             = 
| last_election2     = <!-- Write 'new' if new party -->
| heading3           = <!-- up to | heading35 = -->
| party3             = <!-- up to | party35 = -->
| leader3            = <!-- up to | leader35 = -->
| colour3            = <!-- up to | colour35 = -->
| percentage3        = <!-- up to | percentage35 = -->
| seats3             = <!-- up to | seats35 = -->
| last_election3     = <!-- up to | last_election35 = -->
| results_sec        =
| map                = 
| map_upright        = 
| map_alt            = 
| map_caption        = 
| title              = <!-- Prime Minister or similar -->
| posttitle          =
| before_election    = 
| before_image       =
| before_image_size  = <!-- default size is x65px -->
| before_party       = 
| after_election     = 
| after_image        =
| after_image_size   = <!-- default size is x65px -->
| after_party        = 
}}

Parameters

election_name
Name of the elections.
country
Name of the country or territory the elections are taking place in
previous_election
Link to the previous elections (e.g. [[United Kingdom general election, 2010|2010]])
next_election
Link to the following elections (e.g. [[United Kingdom general election, 2015|2015]])
election_date
Date of the elections
seats_for_election
Description of which seats this election is about, incl. chamber and how many
majority_seats
The number of seats needed for a majority
first_election
Change to "yes" if this the first election of its kind
ongoing
Change to "yes" if the election results haven't been released
results_sec
Name of section in the article where the results of the election are listed.
turnout
 % voter turnout
party1..35
Name of the party (e.g. United Party)
leader1..35
Leader of the party
colour1..35
Custom party colour
percentage1..35
The party's popular vote share
seats1..35
Number of seats won by the party
last_election1..35
Number of seats won at the previous elections (template coding uses it to work out seat change)
heading1..35
Adds a heading above a particular results row
map
Image file of a map
map_upright
Map size scaling factor; default is 1.3
map_alt
WP:ALT
map_caption
Caption text, perhaps including a {{Legend}}
title
Title of the head of government (e.g. [[Prime Minister of the United Kingdom|Prime Minister]])
posttitle
Title after the election
before_election
Head of government before the elections
before_party
Party of the head of government prior to the elections
before_image
Image of the outgoing head of government, default size is x65px
after_election
Head of government after the elections
after_party
Party of the head of government after the elections
after_image
Image of the elected head of government, default size is x65px