User:TedEdwards/sandbox5

{{infobox }}px}}
 * child    = {{{child|{{{embed|}}}}}}
 * bodyclass = {{#if:{{{election_date|}}}|vevent|}}
 * bodystyle = line-height: 1.5em; {{#if:{{{map_image|}}}{{{map|}}}{{{map2_image|}}}{{{map2|}}}{{{map3_image|}}}{{{map3|}}}{{{map4_image|}}}{{{map4|}}}|width:{{max
 * 1 = {{#if:{{{map_image|}}}{{{map|}}}|{{#invoke:string|replace|{{if empty|{{{map_size|}}}|300px}}|px%s*$||plain=false}}}}
 * 2 = {{#if:{{{map2_image|}}}{{{map2|}}}|{{#invoke:string|replace|{{if empty|{{{map2_size|}}}|300px}}|px%s*$||plain=false}}}}
 * 3 = {{#if:{{{map3_image|}}}{{{map3|}}}|{{#invoke:string|replace|{{if empty|{{{map3_size|}}}|300px}}|px%s*$||plain=false}}}}
 * 4 = {{#if:{{{map4_image|}}}{{{map4|}}}|{{#invoke:string|replace|{{if empty|{{{map4_size|}}}|300px}}|px%s*$||plain=false}}}}
 * titleclass = summary
 * titlestyle = font-size: 125%;
 * title = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|{{#if:{{{election_name|}}}| {{{election_name}}} }}|{{{election_name|}}}}}


 * datastyle = text-align:center;
 * labelstyle = width:5em;white-space:nowrap;

|{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}} |{{#if:{{{country|}}} |{{#if:{{{flag_year|}}}|{{flagdeco|{{{country}}}|variant={{{flag_year|}}}|size=50px}} |{{flagdeco|{{{country}}}|size=50px}} }} }} }} {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%; | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_election|}}}|{{{previous_year}}}|{{{previous_year}}}}}}} | center = {{#if:{{{election_date|}}}|{{{election_date}}}}} | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_election|}}}|{{{next_year}}}|{{{next_year}}}}}}} }} }} {{#if:{{{outgoing_members|{{{previous_mps|}}}}}}{{{elected_members|{{{elected_mps|}}}}}}| {{succession links|leftstyle=width:40%; text-align:center;|rightstyle=width:40%; text-align:center; | left = {{#if:{{{outgoing_members|{{{previous_mps|}}}}}}|{{#ifexist:{{{outgoing_members|{{{previous_mps|}}}}}}|{{{previous_mps|}}}}}}|outgoing members|{{{outgoing_members|{{{previous_mps|}}}}}}}}}} | right = {{#if:{{{elected_members|{{{elected_mps|}}}}}}|{{#ifexist:{{{elected_members|{{{elected_mps|}}}}}}|{{{elected_mps|}}}}}}|elected members|{{{elected_members|{{{elected_mps|}}}}}}}}|}} }} }} {{#switch:{{{type|}}} {{{needed_votes}}} votes needed to win}} }} {{{majority_seats}}} seats needed for a majority{{#if:{{{majority_seats_note|}}}|{{refn|group=n|name=realmajority|{{{majority_seats_note}}}}}|}} }} }}
 * subheaderstyle = line-height:130%;
 * subheader1 = {{#if:{{{flag_image|}}}
 * subheader2 = {{#if:{{{previous_year|}}}{{{election_date|}}}{{{next_year|}}}|
 * subheader3 =
 * headerstyle = font-weight:normal;
 * header1 =
 * primary
 * Primary
 * presidential
 * Presidential = {{#if:{{{votes_for_election|}}}| {{{votes_for_election}}}{{#if:{{{needed_votes|}}}|
 * parliamentary
 * Parliamentary
 * legislative
 * Legislative
 * by-election
 * By-election  = {{#if:{{{seats_for_election|}}}| {{{seats_for_election}}}{{#if:{{{majority_seats|}}}|
 * #default     =
 * data2 = {{#if:{{{opinion_polls|}}}| Opinion polls }}


 * label3 = Registered
 * data3 = {{{registered|}}}


 * label4 = Turnout
 * data4 = {{{turnout|}}}


 * label5 = Votes counted
 * data5 = {{#if:{{{votes_counted|}}}|{{center|{{Percentage bar|{{{votes_counted}}}|{{{votes_counted}}}%|1BCE0E}}}}{{small|as of {{{last_update}}} {{{time_zone}}} }}}}


 * label6 = Reporting
 * data6 = {{#if:{{{reporting|}}}|{{center|{{Percentage bar|{{{reporting}}}|{{{reporting}}}%|1BCE0E}}}}{{small|as of {{{last_update}}} {{{time_zone}}} }}}}


 * label7 = Declared
 * data7 = {{#if:{{{declared|}}}|{{center|{{Percentage bar|{{{declared}}}|{{{declared}}}%|1BCE0E}}}}{{small|as of {{{last_update}}} {{{time_zone}}} }}}}

{{(!}} style="background:transparent; width:100%;" {{!}}- {{Infobox election/row
 * data10 =
 * type = {{{type|}}}
 * divider =
 * col3 = {{#if:{{{color3|}}}{{{colour3|}}}{{{image3|}}}{{{nominee3|}}}{{{candidate3|}}}{{{leader3|}}}{{{party3|}}}{{{alliance3|}}}{{{home_state3|}}}{{{running_mate3|}}}{{{electoral_vote3|}}}{{{delegate_count3|}}}{{{states_carried3|}}}{{{leader_since3|}}}{{{leaders_seat3|}}}{{{last_election3|}}}{{{seats_before3|}}}{{{seats_needed3|}}}{{{seats3|}}}{{{seats_after3|}}}{{{seat_change3|}}}{{{popular_vote3|}}}{{{percentage3|}}}{{{swing3|}}}{{{poll1_nominee3|}}}{{{poll1_candidate3|}}}{{{poll2_nominee3|}}}{{{poll2_candidate3|}}}{{{poll3_nominee3|}}}{{{poll3_candidate3|}}}{{{poll4_nominee3|}}}{{{poll4_candidate3|}}}{{{poll5_nominee3|}}}{{{poll5_candidate3|}}}{{{poll1_party3|}}}{{{poll2_party3|}}}{{{poll3_party3|}}}{{{poll4_party3|}}}{{{poll5_party3|}}}{{{1data3|}}}{{{2data3|}}}{{{3data3|}}}{{{4data3|}}}{{{5data3|}}}{{{6data3|}}}|yes}}
 * ongoing = {{{ongoing|no}}}
 * header1 = {{#switch:{{{type|}}}|parliamentary|Parliamentary=First party|#default=Majority party}}
 * header2 = {{#switch:{{{type|}}}|parliamentary|Parliamentary=Second party|#default=Minority party}}
 * header3 = {{#switch:{{{type|}}}|parliamentary|Parliamentary=Third party|#default=Third party}}
 * party_color = {{if empty| {{{party_colour|}}} | {{{party_color|}}} | yes }}
 * color1 = {{if empty| {{{color1|}}} | {{{colour1|}}} }}
 * color2 = {{if empty| {{{color2|}}} | {{{colour2|}}} }}
 * color3 = {{if empty| {{{color3|}}} | {{{colour3|}}} }}
 * image_size = {{{image_size|}}}
 * image_upright = {{{image_upright|}}}
 * image1 = {{{image1|}}}
 * image1_size = {{{image1_size|}}}
 * image1_upright = {{{image1_upright|}}}
 * image2 = {{{image2|}}}
 * image2_size = {{{image2_size|}}}
 * image2_upright = {{{image2_upright|}}}
 * image3 = {{{image3|}}}
 * image3_size = {{{image3_size|}}}
 * image3_upright = {{{image3_upright|}}}
 * nominee1 = {{{nominee1|}}}
 * nominee2 = {{{nominee2|}}}
 * nominee3 = {{{nominee3|}}}
 * candidate1 = {{{candidate1|}}}
 * candidate2 = {{{candidate2|}}}
 * candidate3 = {{{candidate3|}}}
 * leader1 = {{{leader1|}}}
 * leader2 = {{{leader2|}}}
 * leader3 = {{{leader3|}}}
 * party_name = {{{party_name}}}
 * party1 = {{{party1|}}}
 * party2 = {{{party2|}}}
 * party3 = {{{party3|}}}
 * alliance_name = {{{alliance_name}}}
 * alliance1 = {{{alliance1|}}}
 * alliance2 = {{{alliance2|}}}
 * alliance3 = {{{alliance3|}}}
 * home_state1 = {{{home_state1|}}}
 * home_state2 = {{{home_state2|}}}
 * home_state3 = {{{home_state3|}}}
 * running_mate1 = {{{running_mate1|}}}
 * running_mate2 = {{{running_mate2|}}}
 * running_mate3 = {{{running_mate3|}}}
 * college_voted = {{{college_voted|}}}
 * electoral_vote1 = {{{electoral_vote1|}}}
 * electoral_vote2 = {{{electoral_vote2|}}}
 * electoral_vote3 = {{{electoral_vote3|}}}
 * delegate_count1 = {{{delegate_count1|}}}
 * delegate_count2 = {{{delegate_count2|}}}
 * delegate_count3 = {{{delegate_count3|}}}
 * states_carried1 = {{{states_carried1|}}}
 * states_carried2 = {{{states_carried2|}}}
 * states_carried3 = {{{states_carried3|}}}
 * leader_since1 = {{{leader_since1|}}}
 * leader_since2 = {{{leader_since2|}}}
 * leader_since3 = {{{leader_since3|}}}
 * leaders_seat1 = {{{leaders_seat1|}}}
 * leaders_seat2 = {{{leaders_seat2|}}}
 * leaders_seat3 = {{{leaders_seat3|}}}
 * last_election1 = {{{last_election1|}}}
 * last_election2 = {{{last_election2|}}}
 * last_election3 = {{{last_election3|}}}
 * seats_before1 = {{{seats_before1|}}}
 * seats_before2 = {{{seats_before2|}}}
 * seats_before3 = {{{seats_before3|}}}
 * seats_needed1 = {{{seats_needed1|}}}
 * seats_needed2 = {{{seats_needed2|}}}
 * seats_needed3 = {{{seats_needed3|}}}
 * seats1 = {{{seats1|}}}
 * seats2 = {{{seats2|}}}
 * seats3 = {{{seats3|}}}
 * seats_after1 = {{{seats_after1|}}}
 * seats_after2 = {{{seats_after2|}}}
 * seats_after3 = {{{seats_after3|}}}
 * seat_change1 = {{{seat_change1|}}}
 * seat_change2 = {{{seat_change2|}}}
 * seat_change3 = {{{seat_change3|}}}
 * vote_type = {{{vote_type|Popular}}}
 * popular_vote1 = {{{popular_vote1|}}}
 * popular_vote2 = {{{popular_vote2|}}}
 * popular_vote3 = {{{popular_vote3|}}}
 * percentage1 = {{{percentage1|}}}
 * percentage2 = {{{percentage2|}}}
 * percentage3 = {{{percentage3|}}}
 * counties_won1 = {{{counties_won1|}}}
 * counties_won2 = {{{counties_won2|}}}
 * counties_won3 = {{{counties_won3|}}}
 * counties_threshold1 = {{{counties_threshold1|}}}
 * counties_threshold2 = {{{counties_threshold2|}}}
 * counties_threshold3 = {{{counties_threshold3|}}}
 * swing1 = {{{swing1|}}}
 * swing2 = {{{swing2|}}}
 * swing3 = {{{swing3|}}}
 * opinion_polls = {{{opinion_polls|}}}
 * poll1_date = {{if empty|{{{poll1_date1|}}}|{{{poll1_date|}}}}}
 * poll1_source = {{if empty|{{{poll1_source1|}}}|{{{poll1_source|}}}}}
 * poll1_person1 = {{if empty|{{{poll1_nominee1|}}}|{{{poll1_candidate1|}}}}}
 * poll1_person2 = {{if empty|{{{poll1_nominee2|}}}|{{{poll1_candidate2|}}}}}
 * poll1_person3 = {{if empty|{{{poll1_nominee3|}}}|{{{poll1_candidate3|}}}}}
 * poll2_date = {{if empty|{{{poll2_date1|}}}|{{{poll2_date|}}}}}
 * poll2_source = {{if empty|{{{poll2_source1|}}}|{{{poll2_source|}}}}}
 * poll2_person1 = {{if empty|{{{poll2_nominee1|}}}|{{{poll2_candidate1|}}}}}
 * poll2_person2 = {{if empty|{{{poll2_nominee2|}}}|{{{poll2_candidate2|}}}}}
 * poll2_person3 = {{if empty|{{{poll2_nominee3|}}}|{{{poll2_candidate3|}}}}}
 * poll3_date = {{if empty|{{{poll3_date1|}}}|{{{poll3_date|}}}}}
 * poll3_source = {{if empty|{{{poll3_source1|}}}|{{{poll3_source|}}}}}
 * poll3_person1 = {{if empty|{{{poll3_nominee1|}}}|{{{poll3_candidate1|}}}}}
 * poll3_person2 = {{if empty|{{{poll3_nominee2|}}}|{{{poll3_candidate2|}}}}}
 * poll3_person3 = {{if empty|{{{poll3_nominee3|}}}|{{{poll3_candidate3|}}}}}
 * poll4_date = {{if empty|{{{poll4_date1|}}}|{{{poll4_date|}}}}}
 * poll4_source = {{if empty|{{{poll4_source1|}}}|{{{poll4_source|}}}}}
 * poll4_person1 = {{if empty|{{{poll4_nominee1|}}}|{{{poll4_candidate1|}}}}}
 * poll4_person2 = {{if empty|{{{poll4_nominee2|}}}|{{{poll4_candidate2|}}}}}
 * poll4_person3 = {{if empty|{{{poll4_nominee3|}}}|{{{poll4_candidate3|}}}}}
 * poll5_date = {{if empty|{{{poll5_date1|}}}|{{{poll5_date|}}}}}
 * poll5_source = {{if empty|{{{poll5_source1|}}}|{{{poll5_source|}}}}}
 * poll5_person1 = {{if empty|{{{poll5_nominee1|}}}|{{{poll5_candidate1|}}}}}
 * poll5_person2 = {{if empty|{{{poll5_nominee2|}}}|{{{poll5_candidate2|}}}}}
 * poll5_person3 = {{if empty|{{{poll5_nominee3|}}}|{{{poll5_candidate3|}}}}}
 * poll1_party1 = {{{poll1_party1|}}}| poll1_party2 = {{{poll1_party2|}}}| poll1_party3 = {{{poll1_party3|}}}
 * poll2_party1 = {{{poll2_party1|}}}| poll2_party2 = {{{poll2_party2|}}}| poll2_party3 = {{{poll2_party3|}}}
 * poll3_party1 = {{{poll3_party1|}}}| poll3_party2 = {{{poll3_party2|}}}| poll3_party3 = {{{poll3_party3|}}}
 * poll4_party1 = {{{poll4_party1|}}}| poll4_party2 = {{{poll4_party2|}}}| poll4_party3 = {{{poll4_party3|}}}
 * poll5_party1 = {{{poll5_party1|}}}| poll5_party2 = {{{poll5_party2|}}}| poll5_party3 = {{{poll5_party3|}}}

}} {{!}}- {{Infobox election/row
 * 1blank = {{{1blank|}}}| 1data1 = {{{1data1|}}}| 1data2 = {{{1data2|}}}| 1data3 = {{{1data3|}}}
 * 2blank = {{{2blank|}}}| 2data1 = {{{2data1|}}}| 2data2 = {{{2data2|}}}| 2data3 = {{{2data3|}}}
 * 3blank = {{{3blank|}}}| 3data1 = {{{3data1|}}}| 3data2 = {{{3data2|}}}| 3data3 = {{{3data3|}}}
 * 4blank = {{{4blank|}}}| 4data1 = {{{4data1|}}}| 4data2 = {{{4data2|}}}| 4data3 = {{{4data3|}}}
 * 5blank = {{{5blank|}}}| 5data1 = {{{5data1|}}}| 5data2 = {{{5data2|}}}| 5data3 = {{{5data3|}}}
 * 6blank = {{{6blank|}}}| 6data1 = {{{6data1|}}}| 6data2 = {{{6data2|}}}| 6data3 = {{{6data3|}}}
 * type = {{{type|}}}
 * divider =
 * col3 = {{#if:{{{color6|}}}{{{colour6|}}}{{{image6|}}}{{{nominee6|}}}{{{candidate6|}}}{{{leader6|}}}{{{party6|}}}{{{alliance6|}}}{{{home_state6|}}}{{{running_mate6|}}}{{{electoral_vote6|}}}{{{delegate_count6|}}}{{{states_carried6|}}}{{{leader_since6|}}}{{{leaders_seat6|}}}{{{last_election6|}}}{{{seats_before6|}}}{{{seats_needed6|}}}{{{seats6|}}}{{{seats_after6|}}}{{{seat_change6|}}}{{{popular_vote6|}}}{{{percentage6|}}}{{{swing6|}}}{{{poll1_nominee6|}}}{{{poll1_candidate6|}}}{{{poll2_nominee6|}}}{{{poll2_candidate6|}}}{{{poll3_nominee6|}}}{{{poll3_candidate6|}}}{{{poll4_nominee6|}}}{{{poll4_candidate6|}}}{{{poll5_nominee6|}}}{{{poll5_candidate6|}}}{{{poll1_party6|}}}{{{poll2_party6|}}}{{{poll3_party6|}}}{{{poll4_party6|}}}{{{poll5_party6|}}}{{{1data6|}}}{{{2data6|}}}{{{3data6|}}}{{{4data6|}}}{{{5data6|}}}{{{6data6|}}}|yes}}
 * ongoing = {{{ongoing|no}}}
 * header1 = {{#if:{{{party3|}}}|Fourth party|Third party}}
 * header2 = {{#if:{{{party3|}}}|Fifth party|Fourth party}}
 * header3 = {{#if:{{{party3|}}}|Sixth party|Fifth party}}
 * party_color = {{if empty| {{{party_colour|}}} | {{{party_color|}}} | yes }}
 * color1 = {{if empty| {{{color4|}}} | {{{colour4|}}} }}
 * color2 = {{if empty| {{{color5|}}} | {{{colour5|}}} }}
 * color3 = {{if empty| {{{color6|}}} | {{{colour6|}}} }}
 * image_size = {{{image_size|}}}
 * image_upright = {{{image_upright|}}}
 * image1 = {{{image4|}}}
 * image1_size = {{{image4_size|}}}
 * image1_upright = {{{image4_upright|}}}
 * image2 = {{{image5|}}}
 * image2_size = {{{image5_size|}}}
 * image2_upright = {{{image5_upright|}}}
 * image3 = {{{image6|}}}
 * image3_size = {{{image6_size|}}}
 * image3_upright = {{{image6_upright|}}}
 * nominee1 = {{{nominee4|}}}
 * nominee2 = {{{nominee5|}}}
 * nominee3 = {{{nominee6|}}}
 * candidate1 = {{{candidate4|}}}
 * candidate2 = {{{candidate5|}}}
 * candidate3 = {{{candidate6|}}}
 * leader1 = {{{leader4|}}}
 * leader2 = {{{leader5|}}}
 * leader3 = {{{leader6|}}}
 * party_name = {{{party_name}}}
 * party1 = {{{party4|}}}
 * party2 = {{{party5|}}}
 * party3 = {{{party6|}}}
 * alliance_name = {{{alliance_name}}}
 * alliance1 = {{{alliance4|}}}
 * alliance2 = {{{alliance5|}}}
 * alliance3 = {{{alliance6|}}}
 * home_state1 = {{{home_state4|}}}
 * home_state2 = {{{home_state5|}}}
 * home_state3 = {{{home_state6|}}}
 * running_mate1 = {{{running_mate4|}}}
 * running_mate2 = {{{running_mate5|}}}
 * running_mate3 = {{{running_mate6|}}}
 * college_voted = {{{college_voted|}}}
 * electoral_vote1 = {{{electoral_vote4|}}}
 * electoral_vote2 = {{{electoral_vote5|}}}
 * electoral_vote3 = {{{electoral_vote6|}}}
 * delegate_count1 = {{{delegate_count4|}}}
 * delegate_count2 = {{{delegate_count5|}}}
 * delegate_count3 = {{{delegate_count6|}}}
 * states_carried1 = {{{states_carried4|}}}
 * states_carried2 = {{{states_carried5|}}}
 * states_carried3 = {{{states_carried6|}}}
 * leader_since1 = {{{leader_since4|}}}
 * leader_since2 = {{{leader_since5|}}}
 * leader_since3 = {{{leader_since6|}}}
 * leaders_seat1 = {{{leaders_seat4|}}}
 * leaders_seat2 = {{{leaders_seat5|}}}
 * leaders_seat3 = {{{leaders_seat6|}}}
 * last_election1 = {{{last_election4|}}}
 * last_election2 = {{{last_election5|}}}
 * last_election3 = {{{last_election6|}}}
 * seats_before1 = {{{seats_before4|}}}
 * seats_before2 = {{{seats_before5|}}}
 * seats_before3 = {{{seats_before6|}}}
 * seats_needed1 = {{{seats_needed4|}}}
 * seats_needed2 = {{{seats_needed5|}}}
 * seats_needed3 = {{{seats_needed6|}}}
 * seats1 = {{{seats4|}}}
 * seats2 = {{{seats5|}}}
 * seats3 = {{{seats6|}}}
 * seats_after1 = {{{seats_after4|}}}
 * seats_after2 = {{{seats_after5|}}}
 * seats_after3 = {{{seats_after6|}}}
 * seat_change1 = {{{seat_change4|}}}
 * seat_change2 = {{{seat_change5|}}}
 * seat_change3 = {{{seat_change6|}}}
 * vote_type = {{{vote_type|Popular}}}
 * popular_vote1 = {{{popular_vote4|}}}
 * popular_vote2 = {{{popular_vote5|}}}
 * popular_vote3 = {{{popular_vote6|}}}
 * percentage1 = {{{percentage4|}}}
 * percentage2 = {{{percentage5|}}}
 * percentage3 = {{{percentage6|}}}
 * swing1 = {{{swing4|}}}
 * swing2 = {{{swing5|}}}
 * swing3 = {{{swing6|}}}
 * opinion_polls = {{{opinion_polls|}}}
 * poll1_date = {{if empty|{{{poll1_date2|}}}|{{{poll1_date|}}}}}
 * poll1_source = {{if empty|{{{poll1_source2|}}}|{{{poll1_source|}}}}}
 * poll1_person1 = {{if empty|{{{poll1_nominee4|}}}|{{{poll1_candidate4|}}}}}
 * poll1_person2 = {{if empty|{{{poll1_nominee5|}}}|{{{poll1_candidate5|}}}}}
 * poll1_person3 = {{if empty|{{{poll1_nominee6|}}}|{{{poll1_candidate6|}}}}}
 * poll2_date = {{if empty|{{{poll2_date2|}}}|{{{poll2_date|}}}}}
 * poll2_source = {{if empty|{{{poll2_source2|}}}|{{{poll2_source|}}}}}
 * poll2_person1 = {{if empty|{{{poll2_nominee4|}}}|{{{poll2_candidate4|}}}}}
 * poll2_person2 = {{if empty|{{{poll2_nominee5|}}}|{{{poll2_candidate5|}}}}}
 * poll2_person3 = {{if empty|{{{poll2_nominee6|}}}|{{{poll2_candidate6|}}}}}
 * poll3_date = {{if empty|{{{poll3_date2|}}}|{{{poll3_date|}}}}}
 * poll3_source = {{if empty|{{{poll3_source2|}}}|{{{poll3_source|}}}}}
 * poll3_person1 = {{if empty|{{{poll3_nominee4|}}}|{{{poll3_candidate4|}}}}}
 * poll3_person2 = {{if empty|{{{poll3_nominee5|}}}|{{{poll3_candidate5|}}}}}
 * poll3_person3 = {{if empty|{{{poll3_nominee6|}}}|{{{poll3_candidate6|}}}}}
 * poll4_date = {{if empty|{{{poll4_date2|}}}|{{{poll4_date|}}}}}
 * poll4_source = {{if empty|{{{poll4_source2|}}}|{{{poll4_source|}}}}}
 * poll4_person1 = {{if empty|{{{poll4_nominee4|}}}|{{{poll4_candidate4|}}}}}
 * poll4_person2 = {{if empty|{{{poll4_nominee5|}}}|{{{poll4_candidate5|}}}}}
 * poll4_person3 = {{if empty|{{{poll4_nominee6|}}}|{{{poll4_candidate6|}}}}}
 * poll5_date = {{if empty|{{{poll5_date2|}}}|{{{poll5_date|}}}}}
 * poll5_source = {{if empty|{{{poll5_source2|}}}|{{{poll5_source|}}}}}
 * poll5_person1 = {{if empty|{{{poll5_nominee4|}}}|{{{poll5_candidate4|}}}}}
 * poll5_person2 = {{if empty|{{{poll5_nominee5|}}}|{{{poll5_candidate5|}}}}}
 * poll5_person3 = {{if empty|{{{poll5_nominee6|}}}|{{{poll5_candidate6|}}}}}
 * poll1_party1 = {{{poll1_party4|}}}| poll1_party2 = {{{poll1_party5|}}}| poll1_party3 = {{{poll1_party6|}}}
 * poll2_party1 = {{{poll2_party4|}}}| poll2_party2 = {{{poll2_party5|}}}| poll2_party3 = {{{poll2_party6|}}}
 * poll3_party1 = {{{poll3_party4|}}}| poll3_party2 = {{{poll3_party5|}}}| poll3_party3 = {{{poll3_party6|}}}
 * poll4_party1 = {{{poll4_party4|}}}| poll4_party2 = {{{poll4_party5|}}}| poll4_party3 = {{{poll4_party6|}}}
 * poll5_party1 = {{{poll5_party4|}}}| poll5_party2 = {{{poll5_party5|}}}| poll5_party3 = {{{poll5_party6|}}}

}} {{!}}- {{Infobox election/row
 * 1blank = {{{1blank|}}}| 1data1 = {{{1data4|}}}| 1data2 = {{{1data5|}}}| 1data3 = {{{1data6|}}}
 * 2blank = {{{2blank|}}}| 2data1 = {{{2data4|}}}| 2data2 = {{{2data5|}}}| 2data3 = {{{2data6|}}}
 * 3blank = {{{3blank|}}}| 3data1 = {{{3data4|}}}| 3data2 = {{{3data5|}}}| 3data3 = {{{3data6|}}}
 * 4blank = {{{4blank|}}}| 4data1 = {{{4data4|}}}| 4data2 = {{{4data5|}}}| 4data3 = {{{4data6|}}}
 * 5blank = {{{5blank|}}}| 5data1 = {{{5data4|}}}| 5data2 = {{{5data5|}}}| 5data3 = {{{5data6|}}}
 * 6blank = {{{6blank|}}}| 6data1 = {{{6data4|}}}| 6data2 = {{{6data5|}}}| 6data3 = {{{6data6|}}}
 * type = {{{type|}}}
 * divider =
 * ongoing = {{{ongoing|no}}}
 * col3 = {{#if:{{{color9|}}}{{{colour9|}}}{{{image9|}}}{{{nominee9|}}}{{{candidate9|}}}{{{leader9|}}}{{{party9|}}}{{{alliance9|}}}{{{home_state9|}}}{{{running_mate9|}}}{{{electoral_vote9|}}}{{{delegate_count9|}}}{{{states_carried9|}}}{{{leader_since9|}}}{{{leaders_seat9|}}}{{{last_election9|}}}{{{seats_before9|}}}{{{seats_needed9|}}}{{{seats9|}}}{{{seats_after9|}}}{{{seat_change9|}}}{{{popular_vote9|}}}{{{percentage9|}}}{{{counties_won9|}}}{{{counties_threshold9|}}}{{{swing9|}}}{{{poll1_nominee9|}}}{{{poll1_candidate9|}}}{{{poll2_nominee9|}}}{{{poll2_candidate9|}}}{{{poll3_nominee9|}}}{{{poll3_candidate9|}}}{{{poll4_nominee9|}}}{{{poll4_candidate9|}}}{{{poll5_nominee9|}}}{{{poll5_candidate9|}}}{{{poll1_party9|}}}{{{poll2_party9|}}}{{{poll3_party9|}}}{{{poll4_party9|}}}{{{poll5_party9|}}}{{{1data9|}}}{{{2data9|}}}{{{3data9|}}}{{{4data9|}}}{{{5data9|}}}{{{6data9|}}}|yes}}
 * header1 = {{#switch:{{#expr:{{#if:{{{party3|}}}|1|0}}+{{#if:{{{party6|}}}|1|0}}}}|0=Fifth party|1=Sixth party|2=Seventh party}}
 * header2 = {{#switch:{{#expr:{{#if:{{{party3|}}}|1|0}}+{{#if:{{{party6|}}}|1|0}}}}|0=Sixth party|1=Seventh party|2=Eighth party}}
 * header3 = {{#switch:{{#expr:{{#if:{{{party3|}}}|1|0}}+{{#if:{{{party6|}}}|1|0}}}}|0=Seventh party|1=Eighth party|2=Ninth party}}
 * party_color = {{if empty| {{{party_colour|}}} | {{{party_color|}}} | yes }}
 * color1 = {{if empty| {{{color7|}}} | {{{colour7|}}} }}
 * color2 = {{if empty| {{{color8|}}} | {{{colour8|}}} }}
 * color3 = {{if empty| {{{color9|}}} | {{{colour9|}}} }}
 * image_size = {{{image_size|}}}
 * image_upright = {{{image_upright|}}}
 * image1 = {{{image7|}}}
 * image1_size = {{{image7_size|}}}
 * image1_upright = {{{image7_upright|}}}
 * image2 = {{{image8|}}}
 * image2_size = {{{image8_size|}}}
 * image2_upright = {{{image8_upright|}}}
 * image3 = {{{image9|}}}
 * image3_size = {{{image9_size|}}}
 * image3_upright = {{{image9_upright|}}}
 * nominee1 = {{{nominee7|}}}
 * nominee2 = {{{nominee8|}}}
 * nominee3 = {{{nominee9|}}}
 * candidate1 = {{{candidate7|}}}
 * candidate2 = {{{candidate8|}}}
 * candidate3 = {{{candidate9|}}}
 * leader1 = {{{leader7|}}}
 * leader2 = {{{leader8|}}}
 * leader3 = {{{leader9|}}}
 * party_name = {{{party_name}}}
 * party1 = {{{party7|}}}
 * party2 = {{{party8|}}}
 * party3 = {{{party9|}}}
 * alliance_name = {{{alliance_name}}}
 * alliance1 = {{{alliance7|}}}
 * alliance2 = {{{alliance8|}}}
 * alliance3 = {{{alliance9|}}}
 * home_state1 = {{{home_state7|}}}
 * home_state2 = {{{home_state8|}}}
 * home_state3 = {{{home_state9|}}}
 * running_mate1 = {{{running_mate7|}}}
 * running_mate2 = {{{running_mate8|}}}
 * running_mate3 = {{{running_mate9|}}}
 * college_voted = {{{college_voted|}}}
 * electoral_vote1 = {{{electoral_vote7|}}}
 * electoral_vote2 = {{{electoral_vote8|}}}
 * electoral_vote3 = {{{electoral_vote9|}}}
 * delegate_count1 = {{{delegate_count7|}}}
 * delegate_count2 = {{{delegate_count8|}}}
 * delegate_count3 = {{{delegate_count9|}}}
 * states_carried1 = {{{states_carried7|}}}
 * states_carried2 = {{{states_carried8|}}}
 * states_carried3 = {{{states_carried9|}}}
 * leader_since1 = {{{leader_since7|}}}
 * leader_since2 = {{{leader_since8|}}}
 * leader_since3 = {{{leader_since9|}}}
 * leaders_seat1 = {{{leaders_seat7|}}}
 * leaders_seat2 = {{{leaders_seat8|}}}
 * leaders_seat3 = {{{leaders_seat9|}}}
 * last_election1 = {{{last_election7|}}}
 * last_election2 = {{{last_election8|}}}
 * last_election3 = {{{last_election9|}}}
 * seats_before1 = {{{seats_before7|}}}
 * seats_before2 = {{{seats_before8|}}}
 * seats_before3 = {{{seats_before9|}}}
 * seats_needed1 = {{{seats_needed7|}}}
 * seats_needed2 = {{{seats_needed8|}}}
 * seats_needed3 = {{{seats_needed9|}}}
 * seats1 = {{{seats7|}}}
 * seats2 = {{{seats8|}}}
 * seats3 = {{{seats9|}}}
 * seats_after1 = {{{seats_after7|}}}
 * seats_after2 = {{{seats_after8|}}}
 * seats_after3 = {{{seats_after9|}}}
 * seat_change1 = {{{seat_change7|}}}
 * seat_change2 = {{{seat_change8|}}}
 * seat_change3 = {{{seat_change9|}}}
 * vote_type = {{{vote_type|Popular}}}
 * popular_vote1 = {{{popular_vote7|}}}
 * popular_vote2 = {{{popular_vote8|}}}
 * popular_vote3 = {{{popular_vote9|}}}
 * percentage1 = {{{percentage7|}}}
 * percentage2 = {{{percentage8|}}}
 * percentage3 = {{{percentage9|}}}
 * swing1 = {{{swing7|}}}
 * swing2 = {{{swing8|}}}
 * swing3 = {{{swing9|}}}
 * opinion_polls = {{{opinion_polls|}}}
 * poll1_date = {{if empty|{{{poll1_date3|}}}|{{{poll1_date|}}}}}
 * poll1_source = {{if empty|{{{poll1_source3|}}}|{{{poll1_source|}}}}}
 * poll1_person1 = {{if empty|{{{poll1_nominee7|}}}|{{{poll1_candidate7|}}}}}
 * poll1_person2 = {{if empty|{{{poll1_nominee8|}}}|{{{poll1_candidate8|}}}}}
 * poll1_person3 = {{if empty|{{{poll1_nominee9|}}}|{{{poll1_candidate9|}}}}}
 * poll2_date = {{if empty|{{{poll2_date3|}}}|{{{poll2_date|}}}}}
 * poll2_source = {{if empty|{{{poll2_source3|}}}|{{{poll2_source|}}}}}
 * poll2_person1 = {{if empty|{{{poll2_nominee7|}}}|{{{poll2_candidate7|}}}}}
 * poll2_person2 = {{if empty|{{{poll2_nominee8|}}}|{{{poll2_candidate8|}}}}}
 * poll2_person3 = {{if empty|{{{poll2_nominee9|}}}|{{{poll2_candidate9|}}}}}
 * poll3_date = {{if empty|{{{poll3_date3|}}}|{{{poll3_date|}}}}}
 * poll3_source = {{if empty|{{{poll3_source3|}}}|{{{poll3_source|}}}}}
 * poll3_person1 = {{if empty|{{{poll3_nominee7|}}}|{{{poll3_candidate7|}}}}}
 * poll3_person2 = {{if empty|{{{poll3_nominee8|}}}|{{{poll3_candidate8|}}}}}
 * poll3_person3 = {{if empty|{{{poll3_nominee9|}}}|{{{poll3_candidate9|}}}}}
 * poll4_date = {{if empty|{{{poll4_date3|}}}|{{{poll4_date|}}}}}
 * poll4_source = {{if empty|{{{poll4_source3|}}}|{{{poll4_source|}}}}}
 * poll4_person1 = {{if empty|{{{poll4_nominee7|}}}|{{{poll4_candidate7|}}}}}
 * poll4_person2 = {{if empty|{{{poll4_nominee8|}}}|{{{poll4_candidate8|}}}}}
 * poll4_person3 = {{if empty|{{{poll4_nominee9|}}}|{{{poll4_candidate9|}}}}}
 * poll5_date = {{if empty|{{{poll5_date3|}}}|{{{poll5_date|}}}}}
 * poll5_source = {{if empty|{{{poll5_source3|}}}|{{{poll5_source|}}}}}
 * poll5_person1 = {{if empty|{{{poll5_nominee7|}}}|{{{poll5_candidate7|}}}}}
 * poll5_person2 = {{if empty|{{{poll5_nominee8|}}}|{{{poll5_candidate8|}}}}}
 * poll5_person3 = {{if empty|{{{poll5_nominee9|}}}|{{{poll5_candidate9|}}}}}
 * poll1_party1 = {{{poll1_party7|}}}| poll1_party2 = {{{poll1_party8|}}}| poll1_party3 = {{{poll1_party9|}}}
 * poll2_party1 = {{{poll2_party7|}}}| poll2_party2 = {{{poll2_party8|}}}| poll2_party3 = {{{poll2_party9|}}}
 * poll3_party1 = {{{poll3_party7|}}}| poll3_party2 = {{{poll3_party8|}}}| poll3_party3 = {{{poll3_party9|}}}
 * poll4_party1 = {{{poll4_party7|}}}| poll4_party2 = {{{poll4_party8|}}}| poll4_party3 = {{{poll4_party9|}}}
 * poll5_party1 = {{{poll5_party7|}}}| poll5_party2 = {{{poll5_party8|}}}| poll5_party3 = {{{poll5_party9|}}}

}} {{!)}} {{#if:{{{map_image|}}}{{{map|}}}| {{#if:{{{map_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image}}}|size={{{map_size|}}}|sizedefault=300px|alt={{{map_alt|}}}}} |{{{map}}} }}{{#if:{{{map_caption|}}}| {{{map_caption|}}} }} }} {{#if:{{{map2_image|}}}{{{map2|}}}| {{#if:{{{map2_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map2_image}}}|size={{{map2_size|}}}|sizedefault=300px|alt={{{map2_alt|}}}}} |{{{map2}}} }}{{#if:{{{map2_caption|}}}| {{{map2_caption|}}} }} }} {{#if:{{{map3_image|}}}{{{map3|}}}| {{#if:{{{map3_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map3_image}}}|size={{{map3_size|}}}|sizedefault=300px|alt={{{map3_alt|}}}}} |{{{map3}}} }}{{#if:{{{map3_caption|}}}| {{{map3_caption|}}} }} }} {{#if:{{{map4_image|}}}{{{map4|}}}| {{#if:{{{map4_image|}}} |{{#invoke:InfoboxImage|InfoboxImage|image={{{map4_image}}}|size={{{map4_size|}}}|sizedefault=300px|alt={{{map4_alt|}}}}} |{{{map4}}} }}{{#if:{{{map4_caption|}}}| {{{map4_caption|}}} }} }} {{{!}} cellspacing="0" cellpadding="0" style="background:transparent; width:100%;" {{!}} style="width:50%; text-align:left;" {{!}}{{#if:{{{before_election|}}}{{{before_party|}}}|{{#ifeq:{{{type}}}|primary|Previous {{{title}}}|{{#ifeq:{{{ongoing|no}}}|yes|Incumbent {{#ifeq:{{{title}}}|U.S. Senator|{{{title}}}|{{{title}}}}}|{{#ifeq:{{{title}}}|U.S. Senator|{{{title}}}|{{{title}}}}} before election}}}}
 * 1blank = {{{1blank|}}}| 1data1 = {{{1data7|}}}| 1data2 = {{{1data8|}}}| 1data3 = {{{1data9|}}}
 * 2blank = {{{2blank|}}}| 2data1 = {{{2data7|}}}| 2data2 = {{{2data8|}}}| 2data3 = {{{2data9|}}}
 * 3blank = {{{3blank|}}}| 3data1 = {{{3data7|}}}| 3data2 = {{{3data8|}}}| 3data3 = {{{3data9|}}}
 * 4blank = {{{4blank|}}}| 4data1 = {{{4data7|}}}| 4data2 = {{{4data8|}}}| 4data3 = {{{4data9|}}}
 * 5blank = {{{5blank|}}}| 5data1 = {{{5data7|}}}| 5data2 = {{{5data8|}}}| 5data3 = {{{5data9|}}}
 * 6blank = {{{6blank|}}}| 6data1 = {{{6data7|}}}| 6data2 = {{{6data8|}}}| 6data3 = {{{6data9|}}}
 * data11 =
 * data12 =
 * data13 =
 * data14 =
 * data15 = {{#if:{{{title|}}}|

{{{before_election}}}

{{#if:{{{before_party|}}}|{{Infobox election/shortname|link={{{party_name}}}|name={{{before_party}}}}} }} }} {{!}} style="width:50%; text-align:right;" {{!}} {{#ifeq:{{{ongoing|no}}}|yes|{{#ifeq:{{{type}}}|primary|{{#if:{{{after_election|}}}|Presumptive {{#if:{{{posttitle|}}}|{{{posttitle}}}|{{{title}}}}}|}}|}} |{{#if:{{{posttitle|}}}|{{{posttitle}}}|{{#ifeq:{{{type}}}|primary||Elected}} {{{title}}}}}}}

{{#ifeq:{{{ongoing|no}}}|yes|{{#ifeq:{{{type}}}|primary|{{#if:{{{after_election|}}}|{{{after_election}}}|}}}}}} {{#ifeq:{{{ongoing|no}}}|yes||{{#if:{{{after_election|}}}|{{{after_election}}}|}}{{#if:{{{after_election|}}}{{{after_party|}}}||TBD}}

{{#if:{{{after_party|}}}|{{Infobox election/shortname|link={{{party_name}}}|name={{{after_party}}}}}}} }} {{!}}} }} {{#if:{{{template_name|}}}|{{align|right|{{navbar|{{{template_name}}}|mini=2}}}} }} }}
 * data16 = {{{module|}}}

{{User:TedEdwards/sandbox5  * Figure does not include the Speaker of the House of Commons John Bercow, who was included in the Conservative seat total by some media outlets. }}
 * election_name = 2017 United Kingdom general election
 * country = United Kingdom
 * type = parliamentary
 * ongoing = no
 * previous_election = 2015 United Kingdom general election
 * previous_year = 2015
 * election_date = 8 June 2017
 * next_election = Next United Kingdom general election
 * next_year = Next
 * previous_mps = List of MPs elected in the United Kingdom general election, 2015
 * next_mps =
 * elected_mps = List of MPs elected in the United Kingdom general election, 2017
 * seats_for_election = All 650 seats in the House of Commons
 * majority_seats = 326
 * majority_seats_note = Given that Sinn Féin MPs do not take their seats and the Speaker and deputies do not vote, the number of MPs needed for a majority is, in practice, slightly lower. Sinn Féin won 7 seats, meaning a practical majority requires at least 320 MPs.
 * opinion_polls = Opinion polling for the United Kingdom general election, 2017
 * turnout = 68.8% ({{increase}}2.5%)
 * image1 = Theresa May closeup.jpg
 * leader1 = Theresa May
 * party1 = Conservative Party (UK)
 * leader_since1 = 11 July 2016
 * leaders_seat1 = Maidenhead
 * last_election1 = 330 seats, 36.9%
 * seats1 = 317*
 * seat_change1 = {{decrease}}13
 * popular_vote1 = 13,636,684
 * percentage1 = 42.4%
 * swing1 = {{increase}}5.5%
 * image2 = Jeremy Corbyn closeup.jpg
 * leader2 = Jeremy Corbyn
 * leader_since2 = 12 September 2015
 * party2 = Labour Party (UK)
 * leaders_seat2 = Islington North
 * last_election2 = 232 seats, 30.4%
 * seats2 = 262
 * seat_change2 = {{increase}}30
 * popular_vote2 = 12,878,460
 * percentage2 = 40.0%
 * swing2 = {{increase}}9.6%
 * image3 = Official portrait of Nicola Sturgeon (cropped 3).jpg
 * leader3 = Nicola Sturgeon
 * leader_since3 = 14 November 2014
 * party3 = Scottish National Party
 * leaders_seat3 = Did not stand{{refn|group=n|name=sturgeonseat|Nicola Sturgeon sits as an MSP in the Scottish Parliament for Glasgow Southside. Before the election, the SNP delegation to the House of Commons was led by Angus Robertson, MP for Moray, who lost his seat. Ian Blackford, MP for Ross, Skye and Lochaber, succeeded him.}}
 * last_election3 = 56 seats, 4.7%
 * seats3 = 35
 * seat_change3 = {{decrease}}21
 * popular_vote3 = 977,569
 * percentage3 = 3.0%
 * swing3 = {{decrease}}1.7%
 * image4 = Tim Farron 2016 (cropped).jpg
 * leader4 = Tim Farron
 * leader_since4 = 16 July 2015
 * party4 = Liberal Democrats (UK)
 * leaders_seat4 = Westmorland and Lonsdale
 * popular_vote4 = 2,371,910
 * percentage4 = 7.4%
 * swing4 = {{decrease}}0.5%
 * last_election4 = 8 seats, 7.9%
 * seats4 = 12
 * seat_change4 = {{increase}}4
 * image5 = Arlene Foster MLA (cropped) 2.jpg
 * leader5 = Arlene Foster
 * leader_since5 = 17 December 2015
 * party5 = Democratic Unionist Party
 * leaders_seat5 = Did not stand{{refn|group=n|name=fosterseat|Arlene Foster sat as an MLA in the Northern Ireland Assembly for Fermanagh and South Tyrone prior to the collapse of the Assembly. The party's leader in the Commons is Nigel Dodds, the MP for Belfast North.}}
 * popular_vote5 = 292,316
 * percentage5 = 0.9%
 * swing5 = {{increase}}0.3%
 * last_election5 = 8 seats, 0.6%
 * seats5 = 10
 * seat_change5 = {{increase}}2
 * image6 = Gerry Adams Pre Election Press Conference.jpg
 * leader6 = Gerry Adams
 * leader_since6 = 13 November 1983
 * party6 = Sinn Féin
 * leaders_seat6 = Did not stand{{refn|group=n|name=adamsseat|Gerry Adams sits as a TD in Dáil Éireann (lower house of the Irish Parliament) for Louth. The leader of Sinn Féin in Northern Ireland, Michelle O'Neill, sat as an MLA in the Northern Ireland Assembly for Mid Ulster prior to the collapse of the Assembly.}}
 * popular_vote6 = 238,915
 * percentage6 = 0.7%
 * swing6 = {{increase}}0.1%
 * last_election6 = 4 seats, 0.6%
 * seats6 = 7{{refn|group=n|name=SFseats|Sinn Féin MPs abstain from taking their seats in the British House of Commons.}}
 * seat_change6 = {{increase}}3
 * map_image = 2017UKElectionMap.svg
 * map_size = 425px
 * map_caption = A map of UK parliamentary constituencies''
 * title = Prime Minister
 * posttitle = Appointed Prime Minister
 * before_election = Theresa May
 * before_party = Conservative Party (UK)
 * after_election = Theresa May
 * after_party = Conservative Party (UK)