Template:Infobox election/row: Difference between revisions
Jump to navigation
Jump to search
(Blanked the page) Tags: Blanking Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
<includeonly>|- | |||
{{#if:{{{divider|}}}|{{#if:{{{party1|}}}{{{color1|}}}{{{leader1|}}}{{{party2|}}}{{{color2|}}}{{{leader2|}}}{{{party3|}}}{{{color3|}}}{{{leader3|}}}|{{!}} colspan=4 {{!}} {{{divider}}} }} }} | |||
|- style="display:none" | |||
{{#ifeq:{{{ongoing|}}}|yes||{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = {{#if:{{{party1|}}}{{{party2|}}}{{{party3|}}}| | |||
! style="text-align:left;" {{!}} | |||
! style="text-align:center" {{!}} {{#if:{{{party1|}}}| {{{header1|}}} }} | |||
! style="text-align:center" {{!}} {{#if:{{{party2|}}}| {{{header2|}}} }} | |||
{{#if:{{{col3|}}}|! style="text-align:center" {{!}} {{#if:{{{party3|}}}| {{{header3|}}} }}}} | |||
}} | |||
| #default = | |||
}}}} | |||
|- | |||
{{#if:{{{party1|}}}{{{color1|}}}{{{image1|}}}{{{party2|}}}{{{color2|}}}{{{image2|}}}{{{party3|}}}{{{color3|}}}{{{image3|}}}|<!-- Images --> | |||
{{#if:{{{filler|}}}| | |||
! <br />{{{filler}}} | |||
| | |||
{{!}} | |||
}} | |||
{{!}} style="text-align:center;{{#if:{{{party1|}}}{{{color1|}}}||width:0;}}{{#if:{{{color1|}}}|border-bottom: 6px solid #{{#invoke:Ustring|gsub|s1={{{color1}}}|#|}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party1|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party1}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party1}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|size={{if empty|{{{image1_size|}}}|{{{image_size|}}}}}|alt={{{alt1|}}}|upright={{if empty|{{{image1_upright|}}}|{{{image_upright|}}}|{{#if:{{both|{{{col3|}}}|{{{image3|}}}}}|0.5|0.75}}}}|suppressplaceholder=yes|class={{#if:{{{pageimage1|}}}||notpageimage}}}} | |||
{{!}} style="text-align:center;{{#if:{{{party2|}}}{{{color2|}}}||width:0;}}{{#if:{{{color2|}}}|border-bottom: 6px solid #{{#invoke:Ustring|gsub|s1={{{color2}}}|#|}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party2|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party2}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party2}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{if empty|{{{image2_size|}}}|alt={{{alt2|}}}|{{{image_size|}}}}}|upright={{if empty|{{{image2_upright|}}}|{{{image_upright|}}}|{{#if:{{both|{{{col3|}}}|{{{image3|}}}}}|0.5|0.75}}}}|suppressplaceholder=yes|class={{#if:{{{pageimage2|}}}||notpageimage}}}} | |||
{{#if:{{{col3|}}}|{{!}} style="text-align:center;{{#if:{{{party3|}}}{{{color3|}}}||width:0;}}{{#if:{{{color3|}}}|border-bottom: 6px solid #{{#invoke:Ustring|gsub|s1={{{color3}}}|#|}}|{{#ifeq: {{{party_color}}}|no||{{#if:{{{party3|}}}|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party3}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-bottom: 6px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party3}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}}}}}"{{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|alt={{{alt3|}}}|size={{if empty|{{{image3_size|}}}|{{{image_size|}}}}}|upright={{if empty|{{{image3_upright|}}}|{{{image_upright|}}}|0.5}}|suppressplaceholder=yes|class={{#if:{{{pageimage3|}}}||notpageimage}}}}}} | |||
}} | |||
|- | |||
{{#if:{{{nominee1|}}}{{{nominee2|}}}{{{nominee3|}}}|<!-- Presidential & by-election nominee --> | |||
{{#switch:{{{type|}}} | |||
| primary | |||
| Primary | |||
| presidential | |||
| Presidential | |||
| by-election | |||
| By-election = | |||
! style="width:75px;text-align:left" {{!}}Nominee | |||
{{!}} style="{{#if:{{{nominee1|}}}|width:75px;}}text-align:center" {{!}} {{{nominee1|}}} | |||
{{!}} style="{{#if:{{{nominee2|}}}|width:75px;}}text-align:center" {{!}} {{{nominee2|}}} | |||
{{!}} style="{{#if:{{{nominee3|}}}|width:75px;}}text-align:center" {{!}} {{{nominee3|}}} | |||
| #default = | |||
}}|{{#if:{{{candidate1|}}}{{{candidate2|}}}{{{candidate3|}}}|<!-- Candidate --> | |||
! style="width:75px;text-align:left" {{!}}Candidate | |||
{{!}} style="{{#if:{{{candidate1|}}}|width:75px;}}text-align:center" {{!}} {{{candidate1|}}} | |||
{{!}} style="{{#if:{{{candidate2|}}}|width:75px;}}text-align:center" {{!}} {{{candidate2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{candidate3|}}}|width:75px;}}text-align:center" {{!}} {{{candidate3|}}}}} | |||
}} | |||
}} | |||
|-<!-- Party leader --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#if:{{{leader1|}}}{{{leader2|}}}{{{leader3|}}}| | |||
! style="text-align:left" {{!}} Leader | |||
{{!}} style="{{#if:{{{leader1|}}}|width:75px;}}text-align:center" {{!}} {{{leader1|}}} | |||
{{!}} style="{{#if:{{{leader2|}}}|width:75px;}}text-align:center" {{!}} {{{leader2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{leader3|}}}|width:75px;}}text-align:center" {{!}} {{{leader3|}}}}} | |||
}} | |||
| #default = | |||
}} | |||
|- | |||
{{#if:{{{party1|}}}{{{party2|}}}{{{party3|}}}|<!-- Party name --> | |||
! style="width:75px;text-align:left" {{!}} Party | |||
{{!}} style="{{#if:{{{party1|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party1_name}}}|name={{{party1|}}}}} | |||
{{!}} style="{{#if:{{{party2|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party2_name}}}|name={{{party2|}}}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{party3|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{party3_name}}}|name={{{party3|}}}}}}} | |||
}} | |||
|- | |||
{{#if:{{{alliance1|}}}{{{alliance2|}}}{{{alliance3|}}}|<!-- Alliance name --> | |||
! style="text-align:left" {{!}} Alliance | |||
{{!}} style="{{#if:{{{alliance1|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance1_name}}}|name={{{alliance1|}}}}} | |||
{{!}} style="{{#if:{{{alliance2|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance2_name}}}|name={{{alliance2|}}}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{alliance3|}}}|width:75px;}}text-align:center" {{!}} {{Infobox election/shortname|link={{{alliance3_name}}}|name={{{alliance3|}}}}}}} | |||
}} | |||
|-<!-- Home state --> | |||
{{#if:{{{home_state1|}}}{{{home_state2|}}}{{{home_state3|}}}| | |||
{{#switch:{{{type|}}} | |||
| primary | |||
| Primary | |||
| presidential | |||
| Presidential = | |||
! style="text-align:left" {{!}} Home state | |||
{{!}} style="{{#if:{{{home_state1|}}}|width:75px;}}text-align:center" {{!}} {{{home_state1|}}} | |||
{{!}} style="{{#if:{{{home_state2|}}}|width:75px;}}text-align:center" {{!}} {{{home_state2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{home_state3|}}}|width:75px;}}text-align:center" {{!}} {{{home_state3|}}}}} | |||
| #default = | |||
}} | |||
}} | |||
|-<!-- Running mate --> | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#if:{{{running_mate1|}}}{{{running_mate2|}}}{{{running_mate3|}}}| | |||
! style="text-align:left" {{!}} Running mate | |||
{{!}} style="{{#if:{{{running_mate1|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate1|}}} | |||
{{!}} style="{{#if:{{{running_mate2|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{running_mate3|}}}|width:75px;}}text-align:center" {{!}} {{{running_mate3|}}}}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- Electoral vote --> | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes|| | |||
{{#if:{{{electoral_vote1|}}}{{{electoral_vote2|}}}{{{electoral_vote3|}}}| | |||
! style="text-align:left" {{!}} {{#ifeq:{{{college_voted|}}}|no|Projected e|E}}lectoral vote | |||
{{!}} style="{{#if:{{{electoral_vote1|}}}|width:75px;}}text-align:center" {{!}} {{{electoral_vote1|}}} | |||
{{!}} style="{{#if:{{{electoral_vote2|}}}|width:75px;}}text-align:center" {{!}} {{{electoral_vote2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{electoral_vote3|}}}|width:75px;}}text-align:center" {{!}} {{{electoral_vote3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- Delegate count --> | |||
{{#switch:{{{type|}}} | |||
| primary | |||
| Primary | |||
| presidential | |||
| Presidential = | |||
{{#if:{{{delegate_count1|}}}{{{delegate_count2|}}}{{{delegate_count3|}}}| | |||
! style="text-align:left" {{!}} {{#ifeq:{{{ongoing|}}}|yes|Estimated delegate|Delegate}} count | |||
{{!}} style="{{#if:{{{delegate_count2|}}}|width:75px;}}text-align:center" {{!}} {{{delegate_count1|}}} | |||
{{!}} style="{{#if:{{{delegate_count2|}}}|width:75px;}}text-align:center" {{!}} {{{delegate_count2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{delegate_count3|}}}|width:75px;}}text-align:center" {{!}} {{{delegate_count3|}}}}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- States carried --> | |||
{{#switch:{{{type|}}} | |||
| primary | |||
| Primary = | |||
{{#if:{{{states_carried1|}}}{{{states_carried2|}}}{{{states_carried3|}}}| | |||
! style="text-align:left" {{!}} Contests won | |||
{{!}} style="{{#if:{{{states_carried2|}}}|width:75px;}}text-align:center" {{!}} {{{states_carried1|}}} | |||
{{!}} style="{{#if:{{{states_carried2|}}}|width:75px;}}text-align:center" {{!}} {{{states_carried2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{states_carried2|}}}|width:75px;}}text-align:center" {{!}} {{{states_carried3|}}}}} | |||
}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes|| | |||
{{#if:{{{states_carried1|}}}{{{states_carried2|}}}{{{states_carried3|}}}| | |||
! style="text-align:left" {{!}} States carried | |||
{{!}} style="{{#if:{{{states_carried2|}}}|width:75px;}}text-align:center" {{!}} {{{states_carried1|}}} | |||
{{!}} style="{{#if:{{{states_carried2|}}}|width:75px;}}text-align:center" {{!}} {{{states_carried2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{states_carried3|}}}|width:75px;}}text-align:center" {{!}} {{{states_carried3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- last election --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#if:{{{last_election1|}}}{{{last_election2|}}}{{{last_election3|}}}| | |||
! style="text-align:left" {{!}} Last election | |||
{{!}} style="{{#if:{{{last_election1|}}}|width:75px;}}text-align:center" {{!}} {{{last_election1|}}} | |||
{{!}} style="{{#if:{{{last_election2|}}}|width:75px;}}text-align:center" {{!}} {{{last_election2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{last_election3|}}}|width:75px;}}text-align:center" {{!}} {{{last_election3|}}}}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- seats before --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#if:{{{seats_before1|}}}{{{seats_before2|}}}{{{seats_before3|}}}| | |||
! style="text-align:left" {{!}} {{#ifeq:{{{ongoing|}}}|yes|Current seats|Seats before}} | |||
{{!}} style="{{#if:{{{seats_before1|}}}|width:75px;}}text-align:center" {{!}} {{{seats_before1|}}} | |||
{{!}} style="{{#if:{{{seats_before2|}}}|width:75px;}}text-align:center" {{!}} {{{seats_before2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{seats_before3|}}}|width:75px;}}text-align:center" {{!}} {{{seats_before3|}}}}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- seats needed --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{seats_needed1|}}}{{{seats_needed2|}}}{{{seats_needed3|}}}| | |||
! style="text-align:left" {{!}} Seats needed | |||
{{!}} style="{{#if:{{{seats_needed1|}}}|width:75px;}}text-align:center" {{!}} {{{seats_needed1|}}} | |||
{{!}} style="{{#if:{{{seats_needed2|}}}|width:75px;}}text-align:center" {{!}} {{{seats_needed2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{seats_needed3|}}}|width:75px;}}text-align:center" {{!}} {{{seats_needed3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- seats --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes|| | |||
{{#if:{{{seats1|}}}{{{seats2|}}}{{{seats3|}}}| | |||
! style="text-align:left" {{!}} Seats won | |||
{{!}} style="{{#if:{{{seats1|}}}|width:75px;}}text-align:center" {{!}} {{{seats1|}}} | |||
{{!}} style="{{#if:{{{seats2|}}}|width:75px;}}text-align:center" {{!}} {{{seats2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{seats3|}}}|width:75px;}}text-align:center" {{!}} {{{seats3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- seats after --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes|| | |||
{{#if:{{{seats_after1|}}}{{{seats_after2|}}}{{{seats_after3|}}}| | |||
! style="text-align:left" {{!}} Seats after | |||
{{!}} style="{{#if:{{{seats_after1|}}}|width:75px;}}text-align:center" {{!}} {{{seats_after1|}}} | |||
{{!}} style="{{#if:{{{seats_after2|}}}|width:75px;}}text-align:center" {{!}} {{{seats_after2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{seats_after3|}}}|width:75px;}}text-align:center" {{!}} {{{seats_after3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- seat change --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes|| | |||
{{#if:{{{seat_change1|}}}{{{seat_change2|}}}{{{seat_change3|}}}| | |||
! style="text-align:left" {{!}} Seat change | |||
{{!}} style="{{#if:{{{seat_change1|}}}|width:75px;}}text-align:center" {{!}} {{{seat_change1|}}} | |||
{{!}} style="{{#if:{{{seat_change2|}}}|width:75px;}}text-align:center" {{!}} {{{seat_change2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{seat_change3|}}}|width:75px;}}text-align:center" {{!}} {{{seat_change3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- popular vote --> | |||
{{#ifexpr:not {{#ifeq:{{{ongoing|}}}|yes|1|0}} or {{#ifeq:{{{type|}}}|primary|1|0}}| | |||
{{#if:{{{popular_vote1|}}}{{{popular_vote2|}}}{{{popular_vote3|}}}| | |||
! style="text-align:left" {{!}} {{{vote_type|Popular}}} vote | |||
{{!}} style="{{#if:{{{popular_vote1|}}}|width:75px;}}text-align:center" {{!}} {{{popular_vote1|}}} | |||
{{!}} style="{{#if:{{{popular_vote2|}}}|width:75px;}}text-align:center" {{!}} {{{popular_vote2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{popular_vote3|}}}|width:75px;}}text-align:center" {{!}} {{{popular_vote3|}}}}} | |||
}} | |||
}} | |||
|-<!-- percentage --> | |||
{{#ifexpr:not {{#ifeq:{{{ongoing|}}}|yes|1|0}} or {{#ifeq:{{{type|}}}|primary|1|0}}| | |||
{{#if:{{{percentage1|}}}{{{percentage2|}}}{{{percentage3|}}}| | |||
! style="text-align:left" {{!}} Percentage | |||
{{!}} style="{{#if:{{{percentage1|}}}|width:75px;}}text-align:center" {{!}} {{{percentage1|}}} | |||
{{!}} style="{{#if:{{{percentage2|}}}|width:75px;}}text-align:center" {{!}} {{{percentage2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{percentage3|}}}|width:75px;}}text-align:center" {{!}} {{{percentage3|}}}}} | |||
}} | |||
}} | |||
|-<!-- Counties won --> | |||
{{#switch:{{{type|}}} | |||
| primary | |||
| Primary | |||
| presidential | |||
| Presidential = | |||
{{#ifexpr:not {{#ifeq:{{{ongoing|}}}|yes|1|0}} or {{#ifeq:{{{type|}}}|primary|1|0}}| | |||
{{#if:{{{counties_won1|}}}{{{counties_won2|}}}{{{counties_won3|}}}| | |||
! style="text-align:left" {{!}} Counties won | |||
{{!}} style="{{#if:{{{counties_won1|}}}|width:75px;}}text-align:center" {{!}} {{{counties_won1|}}} | |||
{{!}} style="{{#if:{{{counties_won2|}}}|width:75px;}}text-align:center" {{!}} {{{counties_won2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{counties_won3|}}}|width:75px;}}text-align:center" {{!}} {{{counties_won3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- Counties 25% threshold --> | |||
{{#switch:{{{type|}}} | |||
| primary | |||
| Primary | |||
| presidential | |||
| Presidential = | |||
{{#ifexpr:not {{#ifeq:{{{ongoing|}}}|yes|1|0}} or {{#ifeq:{{{type|}}}|primary|1|0}}| | |||
{{#if:{{{counties_threshold1|}}}{{{counties_threshold2|}}}{{{counties_threshold3|}}}| | |||
! style="text-align:left" {{!}} Counties with 25% vote | |||
{{!}} style="{{#if:{{{counties_threshold1|}}}|width:75px;}}text-align:center" {{!}} {{{counties_threshold1|}}} | |||
{{!}} style="{{#if:{{{counties_threshold2|}}}|width:75px;}}text-align:center" {{!}} {{{counties_threshold2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{counties_threshold3|}}}|width:75px;}}text-align:center" {{!}} {{{counties_threshold3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
|-<!-- swing --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes|| | |||
{{#if:{{{swing1|}}}| | |||
! style="text-align:left" {{!}} Swing | |||
{{!}} style="width:75px;text-align:center" {{!}} {{{swing1}}} | |||
{{!}} style="{{#if:{{{swing2|}}}|width:75px;}}text-align:center" {{!}} {{{swing2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{swing3|}}}|width:75px;}}text-align:center" {{!}} {{{swing3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
{{#if:{{{opinion_polls|}}}|| | |||
{{!-}}<!-- Presidential poll nominee --> | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll1_person1|}}}{{{poll1_person2|}}}{{{poll1_person3|}}}| | |||
! colspan=4 {{!}} Opinion polls | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll1_person1|}}}{{{poll1_person2|}}}{{{poll1_person3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll1_date|}}}{{#if:{{{poll1_source|}}}| [{{{poll1_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll1_person1|}}}|width:75px;}}text-align:center" {{!}} {{{poll1_person1|}}} | |||
{{!}} style="{{#if:{{{poll1_person2|}}}|width:75px;}}text-align:center" {{!}} {{{poll1_person2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll1_person3|}}}|width:75px;}}text-align:center" {{!}} {{{poll1_person3|}}}}} | |||
}}}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll2_person1|}}}{{{poll2_person2|}}}{{{poll2_person3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll2_date|}}}{{#if:{{{poll2_source|}}}| [{{{poll2_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll2_person1|}}}|width:75px;}}text-align:center" {{!}} {{{poll2_person1|}}} | |||
{{!}} style="{{#if:{{{poll2_person2|}}}|width:75px;}}text-align:center" {{!}} {{{poll2_person2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll2_person3|}}}|width:75px;}}text-align:center" {{!}} {{{poll2_person3|}}}}} | |||
}}}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll3_person1|}}}{{{poll3_person2|}}}{{{poll3_person3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll3_date|}}}{{#if:{{{poll3_source|}}}| [{{{poll3_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll3_person1|}}}|width:75px;}}text-align:center" {{!}} {{{poll3_person1|}}} | |||
{{!}} style="{{#if:{{{poll3_person2|}}}|width:75px;}}text-align:center" {{!}} {{{poll3_person2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll3_person3|}}}|width:75px;}}text-align:center" {{!}} {{{poll3_person3|}}}}} | |||
}}}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll4_person1|}}}{{{poll4_person2|}}}{{{poll4_person3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll4_date|}}}{{#if:{{{poll4_source|}}}| [{{{poll4_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll4_person1|}}}|width:75px;}}text-align:center" {{!}} {{{poll4_person1|}}} | |||
{{!}} style="{{#if:{{{poll4_person2|}}}|width:75px;}}text-align:center" {{!}} {{{poll4_person2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll4_person3|}}}|width:75px;}}text-align:center" {{!}} {{{poll4_person3|}}}}} | |||
}}}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| presidential | |||
| Presidential = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll5_person1|}}}{{{poll5_person2|}}}{{{poll5_person3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll5_date|}}}{{#if:{{{poll5_source|}}}| [{{{poll5_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll5_person1|}}}|width:75px;}}text-align:center" {{!}} {{{poll5_person1|}}} | |||
{{!}} style="{{#if:{{{poll5_person2|}}}|width:75px;}}text-align:center" {{!}} {{{poll5_person2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll5_person3|}}}|width:75px;}}text-align:center" {{!}} {{{poll5_person3|}}}}} | |||
}}}} | |||
| #default = | |||
}} | |||
{{!-}}<!-- Legislative poll nominee --> | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll1_party1|}}}{{{poll1_party2|}}}{{{poll1_party3|}}}| | |||
! colspan=4 {{!}} Opinion polls | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll1_party1|}}}{{{poll1_party2|}}}{{{poll1_party3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll1_date|}}}{{#if:{{{poll1_source|}}}| [{{{poll1_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll1_party1|}}}|width:75px;}}text-align:center" {{!}} {{{poll1_party1|}}} | |||
{{!}} style="{{#if:{{{poll1_party2|}}}|width:75px;}}text-align:center" {{!}} {{{poll1_party2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll1_party3|}}}|width:75px;}}text-align:center" {{!}} {{{poll1_party3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll2_party1|}}}{{{poll2_party2|}}}{{{poll2_party3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll2_date|}}}{{#if:{{{poll2_source|}}}| [{{{poll2_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll2_party1|}}}|width:75px;}}text-align:center" {{!}} {{{poll2_party1|}}} | |||
{{!}} style="{{#if:{{{poll2_party2|}}}|width:75px;}}text-align:center" {{!}} {{{poll2_party2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll2_party3|}}}|width:75px;}}text-align:center" {{!}} {{{poll2_party3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll3_party1|}}}{{{poll3_party2|}}}{{{poll3_party3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll3_date|}}}{{#if:{{{poll3_source|}}}| [{{{poll3_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll3_party1|}}}|width:75px;}}text-align:center" {{!}} {{{poll3_party1|}}} | |||
{{!}} style="{{#if:{{{poll3_party2|}}}|width:75px;}}text-align:center" {{!}} {{{poll3_party2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll3_party3|}}}|width:75px;}}text-align:center" {{!}} {{{poll3_party3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll4_party1|}}}{{{poll4_party2|}}}{{{poll4_party3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll4_date|}}}{{#if:{{{poll4_source|}}}| [{{{poll4_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll4_party1|}}}|width:75px;}}text-align:center" {{!}} {{{poll4_party1|}}} | |||
{{!}} style="{{#if:{{{poll4_party2|}}}|width:75px;}}text-align:center" {{!}} {{{poll4_party2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll4_party3|}}}|width:75px;}}text-align:center" {{!}} {{{poll4_party3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}} | |||
{{!-}} | |||
{{#switch:{{{type|}}} | |||
| parliamentary | |||
| Parliamentary | |||
| legislative | |||
| Legislative = | |||
{{#ifeq:{{{ongoing|}}}|yes| | |||
{{#if:{{{poll5_party1|}}}{{{poll5_party2|}}}{{{poll5_party3|}}}| | |||
! style="text-align:left; white-space: nowrap" {{!}} {{{poll5_date|}}}{{#if:{{{poll5_source|}}}| [{{{poll5_source|}}}]}} | |||
{{!}} style="{{#if:{{{poll5_party1|}}}|width:75px;}}text-align:center" {{!}} {{{poll5_party1|}}} | |||
{{!}} style="{{#if:{{{poll5_party2|}}}|width:75px;}}text-align:center" {{!}} {{{poll5_party2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{poll5_party3|}}}|width:75px;}}text-align:center" {{!}} {{{poll5_party3|}}}}} | |||
}} | |||
}} | |||
| #default = | |||
}}}} | |||
|-<!-- Blank field --> | |||
{{#if:{{#if:{{{1blank|}}}|{{{1data1|}}}{{{1data2|}}}{{{1data3|}}}}}| | |||
! style="text-align:left" {{!}} {{{1blank}}} | |||
{{!}} style="{{#if:{{{1data1|}}}|width:75px;}}text-align:center" {{!}} {{{1data1|}}} | |||
{{!}} style="{{#if:{{{1data2|}}}|width:75px;}}text-align:center" {{!}} {{{1data2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{1data3|}}}|width:75px;}}text-align:center" {{!}} {{{1data3|}}}}} | |||
}} | |||
|- | |||
{{#if:{{#if:{{{2blank|}}}|{{{2data1|}}}{{{2data2|}}}{{{2data3|}}}}}| | |||
! style="text-align:left" {{!}} {{{2blank}}} | |||
{{!}} style="{{#if:{{{2data1|}}}|width:75px;}}text-align:center" {{!}} {{{2data1|}}} | |||
{{!}} style="{{#if:{{{2data2|}}}|width:75px;}}text-align:center" {{!}} {{{2data2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{2data3|}}}|width:75px;}}text-align:center" {{!}} {{{2data3|}}}}} | |||
}} | |||
|- | |||
{{#if:{{#if:{{{3blank|}}}|{{{3data1|}}}{{{3data2|}}}{{{3data3|}}}}}| | |||
! style="text-align:left" {{!}} {{{3blank}}} | |||
{{!}} style="{{#if:{{{3data1|}}}|width:75px;}}text-align:center" {{!}} {{{3data1|}}} | |||
{{!}} style="{{#if:{{{3data2|}}}|width:75px;}}text-align:center" {{!}} {{{3data2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{3data3|}}}|width:75px;}}text-align:center" {{!}} {{{3data3|}}}}} | |||
}} | |||
|- | |||
{{#if:{{#if:{{{4blank|}}}|{{{4data1|}}}{{{4data2|}}}{{{4data3|}}}}}| | |||
! style="text-align:left" {{!}} {{{4blank}}} | |||
{{!}} style="{{#if:{{{4data1|}}}|width:75px;}}text-align:center" {{!}} {{{4data1|}}} | |||
{{!}} style="{{#if:{{{4data2|}}}|width:75px;}}text-align:center" {{!}} {{{4data2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{4data3|}}}|width:75px;}}text-align:center" {{!}} {{{4data3|}}}}} | |||
}} | |||
|- | |||
{{#if:{{#if:{{{5blank|}}}|{{{5data1|}}}{{{5data2|}}}{{{5data3|}}}}}| | |||
! style="text-align:left" {{!}} {{{5blank}}} | |||
{{!}} style="{{#if:{{{5data1|}}}|width:75px;}}text-align:center" {{!}} {{{5data1|}}} | |||
{{!}} style="{{#if:{{{5data2|}}}|width:75px;}}text-align:center" {{!}} {{{5data2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{5data3|}}}|width:75px;}}text-align:center" {{!}} {{{5data3|}}}}} | |||
}} | |||
|- | |||
{{#if:{{#if:{{{6blank|}}}|{{{6data1|}}}{{{6data2|}}}{{{6data3|}}}}}| | |||
! style="text-align:left" {{!}} {{{6blank}}} | |||
{{!}} style="{{#if:{{{6data1|}}}|width:75px;}}text-align:center" {{!}} {{{6data1|}}} | |||
{{!}} style="{{#if:{{{6data2|}}}|width:75px;}}text-align:center" {{!}} {{{6data2|}}} | |||
{{#if:{{{col3|}}}|{{!}} style="{{#if:{{{6data3|}}}|width:75px;}}text-align:center" {{!}} {{{6data3|}}}}} | |||
}}</includeonly><noinclude> | |||
{{Documentation}}</noinclude> |