Template:Infobox elections: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
(Undo revision 312418 by Kemal HagemaruFRP (talk))
Tag: Undo
 
(10 intermediate revisions by one other user not shown)
Line 2: Line 2:
|+ class="summary" style="font-size: 125%; font-weight: bold" | {{{election_name|{{PAGENAME}}}}}
|+ class="summary" style="font-size: 125%; font-weight: bold" | {{{election_name|{{PAGENAME}}}}}
{{!}}-
{{!}}-
{{!}} colspan=4 align=center {{!}} {{#if:{{{flag_image|}}}|[[File:{{{flag_image}}} flag.png|200px|alt=|link=]]<hr />|{{#if:{{{country|}}}|{{#if:{{{flag_year|}}}|{{flagicon|{{{country}}}|variant={{{flag_year|}}}|size=200px}}|{{flagicon|{{{country}}}|size=200px}}}}<hr />}}}}
{{!}} colspan=4 align=center {{!}} {{#if:{{{flag_image|}}}|[[File:{{{flag_image}}} flag.png|200px|alt=|link=]]<hr />|{{#if:{{{country|}}}|{{#if:{{{flag_year|}}}|{{flagicon|{{{country}}}|2={{{flag_year|}}}|size=200px}}|{{flagicon|{{{country}}}|{{{flag_year|}}}|size=200px}}}}<hr />}}}}
{{!}}-
{{!}}-
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan=4 {{!}}
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan=4 {{!}}
{| cellspacing="0" cellpadding="0" style="background:transparent; width:100%;"
{| cellspacing="0" cellpadding="0" style="background:transparent; width:100%;"
{{!}}style="width: 25%;" align="left" {{!}}{{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}}&nbsp;←<br
{{!}}style="width: 25%;" align="left" {{!}}{{#if:{{{previous_year|}}}|{{#if:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}}&nbsp;←<br
/>}}{{#ifexist:{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|[[{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|members]]{{#if:{{{previous_year|}}}||&nbsp;←}}}}
/>}}{{#ifexist:{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|[[{{{previous_mps|{{{previous_MPs|{{{previous_members|}}}}}}}}}|members]]{{#if:{{{previous_year|}}}||&nbsp;←}}}}
{{!}}style="width: 50%;" align="center" {{!}}{{#if:{{{election_date|}}}|'''{{{election_date}}}'''<br />}}{{#if:{{{elected_mps|}}}|{{{elected_mps}}}}}
{{!}}style="width: 50%;" align="center" {{!}}{{#if:{{{election_date|}}}|'''{{{election_date}}}'''<br />}}{{#if:{{{elected_mps|}}}|{{{elected_mps}}}}}
{{!}}style="width: 25%;" align="right" {{!}}{{#if:{{{next_year|}}}|→&nbsp;{{#ifexist:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}<br
{{!}}style="width: 25%;" align="right" {{!}}{{#if:{{{next_year|}}}|→&nbsp;{{#if:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}<br
/>}}{{#ifexist:{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|{{#if:{{{next_year|}}}||→&nbsp;}}[[{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|members]]}}
/>}}{{#ifexist:{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|{{#if:{{{next_year|}}}||→&nbsp;}}[[{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|members]]}}
|}
|}
Line 24: Line 24:
| legislative
| legislative
| Legislative  =  
| Legislative  =  
! {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan = 4 {{!}} <small>{{{seats_for_election}}}</small>
! {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan = 4 {{!}} {{nobold|{{{seats_for_election}}}}}
{{!}}-
{{!}}-
| #default      =  
| #default      =  
Line 1,012: Line 1,012:
{{#if:{{{6data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data5}}}}}
{{#if:{{{6data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data5}}}}}
{{#if:{{{6data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data6}}}}}
{{#if:{{{6data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data6}}}}}
}}}}
|-
{{#if:{{{party7|}}}{{{color7|}}}{{{colour7|}}}{{{leader7|}}}|
{{!}} colspan=4 {{!}} <hr />
{{!}}-
}}
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{party7|}}}|
! align="left" {{!}} }}
{{#if:{{{party7|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{party3|}}}|Seventh party|Fifth party}} }} }}
{{#if:{{{party8|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{party3|}}}|Eighth party|Sixth party}} }} }}
{{#if:{{{party9|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||Ninth party}} }}
| #default      =
}}
<!-- Images 7, 8, 9 -->
{{#if:{{{party7|}}}{{{color7|}}}{{{colour7|}}}|
{{!}}-
! &nbsp;
{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color7|}}}{{{colour7|}}}|<nowiki>#</nowiki>{{{color7|{{{colour7|}}}}}}|{{#ifeq: {{{party_colo{{#if:{{{party_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{party7|}}}/meta/color|{{Template:{{{party7|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image7|}}}|{{{image7}}}}}
{{#if:{{{party8|}}}{{{color8|}}}{{{colour8|}}}|{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color8|}}}{{{colour8|}}}|<nowiki>#</nowiki>{{{color8|{{{colour8|}}}}}}|{{#ifeq: {{{party_colo{{#if:{{{party_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{party8|}}}/meta/color|{{Template:{{{party8|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image8|}}}|{{{image8}}}}}}}
{{#if:{{{party9|}}}{{{color9|}}}{{{colour9|}}}|{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color9|}}}{{{colour9|}}}|<nowiki>#</nowiki>{{{color9|{{{colour9|}}}}}}|{{#ifeq: {{{party_colo{{#if:{{{party_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{party9|}}}/meta/color|{{Template:{{{party9|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image9|}}}|{{{image9}}}}}}}
}}
|-
<!-- Leader 7, 8, 9 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leader7|}}}|
! style="text-align: left" {{!}} Leader
{{!}} width="70" style="text-align: center" {{!}} {{{leader7}}}
{{#if:{{{leader8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader8}}}}}
{{#if:{{{leader9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader9}}}}}
}}
| #default      =
}}
|-
<!-- Presidential nominee/candidate 7, 8, 9 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#if:{{{nominee7|}}}{{{candidate7|}}}|
! style="text-align: left" {{!}} {{#if:{{{nominee7|}}}|Nominee|Candidate}}}}
{{#if:{{{nominee7|}}}{{{candidate7|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{nominee7|{{{candidate7|}}}}}}}}
{{#if:{{{nominee8|}}}{{{candidate8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{nominee8|{{{candidate8|}}}}}}}}
{{#if:{{{nominee9|}}}{{{candidate9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{nominee9|{{{candidate9|}}}}}}}}
| #default      =
}}
|-
<!-- Party name 7, 8, 9 -->
{{#if:{{{party7|}}}|
! style="text-align: left" {{!}} Party
}}
{{#if:{{{party7|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{party_name|}}}| no={{#if:{{{party7|}}}|{{{party7}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party7}}}|[[{{{party7}}}|{{Template: {{{party7}}}/meta/shortname}}]]}} }} }}
{{#if:{{{party8|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{party_name|}}}| no={{#if:{{{party8|}}}|{{{party8}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party8}}}|[[{{{party8}}}|{{Template: {{{party8}}}/meta/shortname}}]]}} }} }}
{{#if:{{{party9|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{party_name|}}}| no={{#if:{{{party9|}}}|{{{party9}}} }}| #default= {{#ifeq: {{{party_name}}}|no|{{{party9}}}|[[{{{party9}}}|{{Template: {{{party9}}}/meta/shortname}}]]}} }} }}
|-
{{#if:{{{alliance7|}}}|<!-- Alliance name 4, 5, 6 -->
! style="text-align: left" {{!}} Alliance
{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance7|}}}|{{{alliance7}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance7}}}|{{{alliance7}}}}} }}
{{#if:{{{alliance8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance8|}}}|{{{alliance8}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance8}}}|{{{alliance8}}}}} }} }}
{{#if:{{{alliance9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance9|}}}|{{{alliance9}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance9}}}|{{{alliance9}}}}} }} }}
{{!}}-
}}
<!-- Home state 7, 8, 9 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#if:{{{home_state7|}}}|
! style="text-align: left" {{!}} Home&nbsp;state
{{!}} width="70" style="text-align: center" {{!}} {{{home_state7}}}
{{#if:{{{home_state8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{home_state8}}}}}
{{#if:{{{home_state9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{home_state9}}}}}
}}
| #default      =
}}
|-
<!-- Running mate 7, 8, 9 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#if:{{{running_mate7|}}}|
! style="text-align: left" {{!}} Running&nbsp;mate
{{!}} width="70" style="text-align: center" {{!}} {{{running_mate7}}}
{{#if:{{{running_mate8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{running_mate8}}}}}
{{#if:{{{running_mate9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{running_mate9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leader_since7|}}}|
! style="text-align: left" {{!}} Leader&nbsp;since
{{!}} width="70" style="text-align: center" {{!}} {{{leader_since7}}}
{{#if:{{{leader_since8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader_since8}}}}}
{{#if:{{{leader_since9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader_since9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leaders_seat7|}}}|
! style="text-align: left" {{!}} Leader's&nbsp;seat
{{!}} width="70" style="text-align: center" {{!}} {{{leaders_seat7}}}
{{#if:{{{leaders_seat8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leaders_seat8}}}}}
{{#if:{{{leaders_seat9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leaders_seat9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{last_election7|}}}|
! style="text-align: left" {{!}} Last&nbsp;election
{{!}} width="70" style="text-align: center" {{!}} {{{last_election7}}}
{{#if:{{{last_election8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{last_election8}}}}}
{{#if:{{{last_election9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{last_election9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{seats_before7|}}}|
! style="text-align: left" {{!}} Seats&nbsp;before
{{!}} width="70" style="text-align: center" {{!}} {{{seats_before7}}}
{{#if:{{{seats_before8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_before8}}}}}
{{#if:{{{seats_before9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_before9}}}}}
}}
| #default      =
}}
|-
<!-- Electoral vote 7, 8, 9 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{electoral_vote7|}}}|
! style="text-align: left" {{!}} Electoral&nbsp;vote
{{!}} width="70" style="text-align: center" {{!}} {{{electoral_vote7}}}
{{#if:{{{electoral_vote8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{electoral_vote8}}}}}
{{#if:{{{electoral_vote9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{electoral_vote9}}}}}
}}
}}
| #default      =
}}
|-
<!-- States carried 7, 8, 9 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{states_carried7|}}}|
! style="text-align: left" {{!}} States&nbsp;carried
{{!}} width="70" style="text-align: center" {{!}} {{{states_carried7}}}
{{#if:{{{states_carried8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{states_carried8}}}}}
{{#if:{{{states_carried9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{states_carried9}}}}}
}}
}}
| #default      =
}}
|-
<!-- seats 7, 8, 9 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{seats7|}}}|
! style="text-align: left" {{!}} Seats&nbsp;won
{{!}} width="70" style="text-align: center" {{!}} {{{seats7}}}
{{#if:{{{seats8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats8}}}}}
{{#if:{{{seats9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats9}}}}}
}}
}}
| #default      =
}}
|-
<!-- seats after 7, 8, 9 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{seats_after7|}}}|
! style="text-align: left" {{!}} Seats&nbsp;after
{{!}} width="70" style="text-align: center" {{!}} {{{seats_after7}}}
{{#if:{{{seats_after8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_after8}}}}}
{{#if:{{{seats_after9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_after9}}}}}
}}
| #default      =
}}
|-
<!-- seat change 7, 8, 9 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{seat_change7|}}}|
! style="text-align: left" {{!}} Seat&nbsp;change
{{!}} width="70" style="text-align: center" {{!}} {{{seat_change7}}}
{{#if:{{{seat_change8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seat_change8}}}}}
{{#if:{{{seat_change9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seat_change9}}}}}
}}
}}
| #default      =
}}
|-
<!-- popular vote 7, 8, 9 -->
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{popular_vote7|}}}|
! style="text-align: left" {{!}} Popular&nbsp;vote
{{!}} width="70" style="text-align: center" {{!}} {{{popular_vote7}}}
{{#if:{{{popular_vote8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{popular_vote8}}}}}
{{#if:{{{popular_vote9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{popular_vote9}}}}}
}}
}}
|-
<!-- percentage 7, 8, 9 -->
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{percentage7|}}}|
! style="text-align: left" {{!}} Percentage
{{!}} width="70" style="text-align: center" {{!}} {{{percentage7}}}
{{#if:{{{percentage8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{percentage8}}}}}
{{#if:{{{percentage9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{percentage9}}}}}
}}
}}
|-
<!-- swing 7, 8, 9 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{swing7|}}}|
! style="text-align: left" {{!}} Swing
{{!}} width="70" style="text-align: center" {{!}} {{{swing7}}}
{{#if:{{{swing8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{swing8}}}}}
{{#if:{{{swing9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{swing9}}}}}
{{!}}-
}}
}}
| #default      =
}}
|-
<!-- Presidential poll nominee 7, 8, 9 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_{{#if:{{{poll1_nominee7|}}}|nominee|candidate}}7|}}}|
! colspan=4 {{!}} Opinion&nbsp;polls
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_{{#if:{{{poll1_nominee7|}}}|nominee|candidate}}7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll1_date{{#if:{{{poll1_date2|}}}|2|}}}}} [{{{poll1_source{{#if:{{{poll1_source2|}}}|2|}}}}}]}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee7|}}}|nominee|candidate}}7|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee7|}}}|nominee|candidate}}7}}}}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee8|}}}|nominee|candidate}}8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee8|}}}|nominee|candidate}}8}}}}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee9|}}}|nominee|candidate}}9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee9|}}}|nominee|candidate}}9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll2_{{#if:{{{poll2_nominee7|}}}|nominee|candidate}}7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll2_date{{#if:{{{poll2_date2|}}}|2|}}}}} [{{{poll2_source{{#if:{{{poll2_source2|}}}|2|}}}}}]}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee7|}}}|nominee|candidate}}7|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee7|}}}|nominee|candidate}}7}}}}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee8|}}}|nominee|candidate}}8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee8|}}}|nominee|candidate}}8}}}}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee9|}}}|nominee|candidate}}9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee9|}}}|nominee|candidate}}9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll3_{{#if:{{{poll3_nominee7|}}}|nominee|candidate}}7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll3_date{{#if:{{{poll3_date2|}}}|2|}}}}} [{{{poll3_source{{#if:{{{poll3_source2|}}}|2|}}}}}]}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee7|}}}|nominee|candidate}}7|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee7|}}}|nominee|candidate}}7}}}}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee8|}}}|nominee|candidate}}8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee8|}}}|nominee|candidate}}8}}}}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee9|}}}|nominee|candidate}}9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee9|}}}|nominee|candidate}}9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll4_{{#if:{{{poll4_nominee7|}}}|nominee|candidate}}7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll4_date{{#if:{{{poll4_date2|}}}|2|}}}}} [{{{poll4_source{{#if:{{{poll4_source2|}}}|2|}}}}}]}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee7|}}}|nominee|candidate}}7|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee7|}}}|nominee|candidate}}7}}}}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee8|}}}|nominee|candidate}}8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee8|}}}|nominee|candidate}}8}}}}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee9|}}}|nominee|candidate}}9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee9|}}}|nominee|candidate}}9}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll5_{{#if:{{{poll5_nominee7|}}}|nominee|candidate}}7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll5_date{{#if:{{{poll5_date2|}}}|2|}}}}} [{{{poll5_source{{#if:{{{poll5_source2|}}}|2|}}}}}]}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee7|}}}|nominee|candidate}}7|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee7|}}}|nominee|candidate}}7}}}}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee8|}}}|nominee|candidate}}8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee8|}}}|nominee|candidate}}8}}}}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee9|}}}|nominee|candidate}}9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee9|}}}|nominee|candidate}}9}}}}}
}}
| #default      =
}}
|-
<!-- seats needed 7, 8, 9 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{seats_needed7|}}}|
! style="text-align: left" {{!}} Seats&nbsp;needed
{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed7}}}
{{#if:{{{seats_needed8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed8}}}}}
{{#if:{{{seats_needed9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed9}}}}}
}}
}}
| #default      =
}}
|-
<!-- Legislative poll nominee 7, 8, 9 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_party7|}}}|
! colspan=4 {{!}} Opinion&nbsp;polls
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_party7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll1_date{{#if:{{{poll1_date7|}}}|7|}}}}} [{{{poll1_source{{#if:{{{poll1_source7|}}}|7|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll1_party4}}}
{{#if:{{{poll1_party8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_party8}}}}}
{{#if:{{{poll1_party9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_party9}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll2_party7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll2_date{{#if:{{{poll2_date7|}}}|7|}}}}} [{{{poll2_source{{#if:{{{poll2_source7|}}}|7|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll2_party4}}}
{{#if:{{{poll2_party8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_party8}}}}}
{{#if:{{{poll2_party9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_party9}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll3_party7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll3_date{{#if:{{{poll3_date7|}}}|7|}}}}} [{{{poll3_source{{#if:{{{poll3_source7|}}}|7|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll3_party4}}}
{{#if:{{{poll3_party8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_party8}}}}}
{{#if:{{{poll3_party9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_party9}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll4_party7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll4_date{{#if:{{{poll4_date7|}}}|7|}}}}} [{{{poll4_source{{#if:{{{poll4_source7|}}}|7|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll4_party4}}}
{{#if:{{{poll4_party8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_party8}}}}}
{{#if:{{{poll4_party9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_party9}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll5_party7|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll5_date{{#if:{{{poll5_date7|}}}|7|}}}}} [{{{poll5_source{{#if:{{{poll5_source7|}}}|7|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll5_party4}}}
{{#if:{{{poll5_party8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_party8}}}}}
{{#if:{{{poll5_party9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_party9}}}}}
}}
}}
| #default      =
}}
|-
<!-- Blank field 7, 8, 9 -->
{{#if:{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{{party7|}}}}}{{{nominee7|}}}{{{candidate7|}}}|
{{#if:{{{1blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{1blank}}}
{{#if:{{{1data7|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{1data7}}}}}
{{#if:{{{1data8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{1data8}}}}}
{{#if:{{{1data9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{1data9}}}}}
}}
{{#if:{{{2blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{2blank}}}
{{#if:{{{2data7|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{2data7}}}}}
{{#if:{{{2data8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{2data8}}}}}
{{#if:{{{2data9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{2data9}}}}}
}}
{{#if:{{{3blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{3blank}}}
{{#if:{{{3data7|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{3data7}}}}}
{{#if:{{{3data8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{3data8}}}}}
{{#if:{{{3data9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{3data9}}}}}
}}
{{#if:{{{4blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{4blank}}}
{{#if:{{{4data7|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{4data7}}}}}
{{#if:{{{4data8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{4data8}}}}}
{{#if:{{{4data9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{4data9}}}}}
}}
{{#if:{{{5blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{5blank}}}
{{#if:{{{5data7|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{5data7}}}}}
{{#if:{{{5data8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{5data8}}}}}
{{#if:{{{5data9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{5data9}}}}}
}}
{{#if:{{{6blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{6blank}}}
{{#if:{{{6data7|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{6data7}}}}}
{{#if:{{{6data8|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data8}}}}}
{{#if:{{{6data9|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data9}}}}}
}}}}
}}}}
|}
|}
Line 1,029: Line 1,540:
{{!}} style="width:50%; text-align:left; text-size: 80%" {{!}}'''{{#if:{{{before_election|}}}{{{before_party|}}}|{{#ifeq:{{{ongoing|}}}|yes|Incumbent {{{title}}}|{{{title}}} before election}}'''<br />
{{!}} style="width:50%; text-align:left; text-size: 80%" {{!}}'''{{#if:{{{before_election|}}}{{{before_party|}}}|{{#ifeq:{{{ongoing|}}}|yes|Incumbent {{{title}}}|{{{title}}} before election}}'''<br />
{{{before_election}}}<br />
{{{before_election}}}<br />
{{#if:{{{before_party|}}}|{{#ifeq: {{{party_name}}}|no|{{{before_party}}}|[[{{{before_party}}}|{{Template: {{{before_party}}}/meta/shortname}}]]}} }} }}
{{#if:{{{before_party|}}}|{{#ifeq: {{{party_name}}}|no|{{{before_party}}}|{{{before_party}}}}} }} }}
{{!}} style="width:50%; text-align:right; text-size: 80%" {{!}}{{#ifeq:{{{ongoing|}}}|yes||'''{{#if:{{{posttitle|}}}|{{{posttitle}}}|Elected {{{title}}}}}'''<br />
{{!}} style="width:50%; text-align:right; text-size: 80%" {{!}}{{#ifeq:{{{ongoing|}}}|yes||'''{{#if:{{{posttitle|}}}|{{{posttitle}}}|Elected {{{title}}}}}'''<br />
{{#if:{{{after_election|}}}|{{{after_election}}}|}}{{#if:{{{after_election|}}}{{{after_party|}}}||TBD}}<br />
{{#if:{{{after_election|}}}|{{{after_election}}}|}}{{#if:{{{after_election|}}}{{{after_party|}}}||TBD}}<br />
{{#if:{{{after_party|}}}|{{#ifeq: {{{party_name}}}|no|{{{after_party}}}|[[{{{after_party}}}|{{Template: {{{after_party}}}/meta/shortname}}]]}} }} }}
{{#if:{{{after_party|}}}|{{#ifeq: {{{party_name}}}|no|{{{after_party}}}|{{{after_party}}}}} }} }}
{{!}}} }}
{{!}}} }}
|}</includeonly><noinclude>{{Documentation}}</noinclude><noinclude>[[Category:Infobox templates]]</noinclude>
|}</includeonly><noinclude>{{Documentation}}</noinclude><noinclude>[[Category:Infobox templates]]</noinclude>
[[Category:Elections]]
[[Category:Elections]]

Latest revision as of 00:10, 6 January 2024

[create] Template documentation