Diferencia entre revisiones de «Plantilla:Infobox election»

Sin resumen de edición
Página reemplazada por «<includeonly> {| class="infobox" style="width:22em; font-size:90%; text-align:left" |+ style="font-size: larger" | '''{{{nombre_elección|}}}''' |- | colspan="2" style="text-align:center;" | [[Archivo:{{{imagen_bandera|}}}|125px|Bandera de {{{país|}}}]] |- | '''País''' || {{{país|}}} |- | '''Tipo''' || {{{tipo|}}} |- | '''Fecha''' || {{{fecha_elección|}}} |- | '''Participación''' || {{{participación|}}} |- | colspan="2" style="background:#e9e9e9; text-align…»
Etiqueta: Reemplazo
Línea 1: Línea 1:
<includeonly>{| class="infobox {{#if:{{{election_date|}}}|vevent|}}" style="{{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px||width:{{Str number/trim|{{{map_size}}}}}{{Str rightc|{{{map_size}}}|2}};}}}}}} font-size: 88%; line-height: 1.5em"
<includeonly>
|+ class="summary" style="font-size: 125%; font-weight: bold" | {{{election_name|{{PAGENAME}}}}}
{| class="infobox" style="width:22em; font-size:90%; text-align:left"
{{!}}-
|+ style="font-size: larger" | '''{{{nombre_elección|}}}'''
{{!}} colspan=4 align=center {{!}} {{#if:{{{flag_image|}}}|[[File:{{{flag_image}}}|100px|alt=|link=]]<hr />|{{#if:{{{country|}}}|{{#if:{{{flag_year|}}}|{{flagicon|{{{country}}}|variant={{{flag_year|}}}|size=100px}}|{{flagicon|{{{country}}}|size=100px}}}}<hr />}}}}
{{!}}-
{{!}} {{#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%;"
{{!}}style="width: 25%;" align="left" {{!}}{{#if:{{{previous_year|}}}|{{#ifexist:{{{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;←}}}}
{{!}}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
/>}}{{#ifexist:{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|{{#if:{{{next_year|}}}||→&nbsp;}}[[{{{next_mps|{{{next_MPs|{{{next_members|}}}}}}}}}|members]]}}
|}
{{!}}-
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan=4 {{!}}
{| style="background:transparent; width:100%;"
{{#if:{{{views1|}}}{{{color1|}}}{{{colour1|}}}{{{leader1|}}}|
{{!}} colspan=4 {{!}} <hr />
{{!}}-
}}
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| 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>
{{!}}-
| #default      =
}}
{{#if:{{{turnout|}}}|
! style="text-align: left" {{!}} Turnout
{{!}} colspan=3 style="text-align: center" {{!}} {{{turnout}}}
{{!}}-
}}
{{#if:{{{views1|}}}|{{#ifeq:{{{ongoing|}}}|yes||
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
! align="left" {{!}} &nbsp;
! style="text-align: center" {{!}} {{#ifeq: {{{type|}}}|{{#ifeq: {{{type}}} |parliamentary|parliamentary|Parliamentary}}|First views|Majority views}}
{{#if:{{{views2|}}}|
! style="text-align: center" {{!}} {{#ifeq: {{{type|}}}|{{#ifeq: {{{type}}} |parliamentary|parliamentary|Parliamentary}}|Second views|Minority views}} }}
{{#if:{{{views3|}}}|
! style="text-align: center" {{!}} {{#ifeq: {{{type|}}}|{{#ifeq: {{{type}}} |parliamentary|parliamentary|Parliamentary}}|Third views|Third views}} }}
{{!}}-
| #default      =
}}
}}
}}
{{#if:{{{views1|}}}{{{color1|}}}{{{colour1|}}}|<!-- Images 1, 2, 3 -->
{{!}} &nbsp;
{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color1|}}}{{{colour1|}}}|<nowiki>#</nowiki>{{{color1|{{{colour1|}}}}}}|{{#ifeq: {{{views_colo{{#if:{{{views_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{views1|}}}/meta/color|{{Template:{{{views1|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image1|}}}|{{{image1}}}}}
{{#if:{{{views2|}}}{{{color2|}}}{{{colour2|}}}|{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color2|}}}{{{colour2|}}}|<nowiki>#</nowiki>{{{color2|{{{colour2|}}}}}}|{{#ifeq: {{{views_colo{{#if:{{{views_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{views2|}}}/meta/color|{{Template:{{{views2|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image2|}}}|{{{image2}}}}}}}
{{#if:{{{views3|}}}{{{color3|}}}{{{colour3|}}}|{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color3|}}}{{{colour3|}}}|<nowiki>#</nowiki>{{{color3|{{{colour3|}}}}}}|{{#ifeq: {{{views_colo{{#if:{{{views_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{views3|}}}/meta/color|{{Template:{{{views3|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image3|}}}|{{{image3}}} }} }}
{{!}}-
}}
{{#if:{{{leader1|}}}|<!-- Views leader 1, 2, 3 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
! width="75" style="text-align: left" {{!}} Leader
{{!}} width="70" style="text-align: center" {{!}} {{{leader1}}}{{#if:{{{leader2|}}}|{{!!}} width="70" style="text-align: center" {{!}} {{{leader2}}} }}{{#if:{{{leader3|}}}|{{!!}} width="70" style="text-align: center" {{!}} {{{leader3}}} }}
{{!}}-
| #default      =
}}
}}
{{#if:{{{nominee1|}}}{{{candidate1|}}}|<!-- Presidential nominee/candidate 1, 2, 3 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
! width="75" style="text-align: left" {{!}}{{#if:{{{nominee1|}}}|Nominee|Candidate}}
{{!}} width="70" style="text-align: center" {{!}} {{{nominee1|{{{candidate1|}}} }}}{{#if:{{{nominee2|}}}{{{candidate2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{nominee2|{{{candidate2|}}} }}} }}{{#if:{{{nominee3|}}}{{{candidate3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{nominee3|{{{candidate3|}}} }}} }}
{{!}}-
| #default      =
}}
}}
{{#if:{{{views1|}}}|<!-- Views name 1, 2, 3 -->
! width="75" style="text-align: left" {{!}} Views
{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{views_name|}}}| no={{#if:{{{views1|}}}|{{{views1}}} }}| #default= {{#ifeq: {{{views_name}}}|no|{{{views1}}}|{{Template: {{{views1}}}/meta/shortname}}}} }}
{{#if:{{{views2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{views_name|}}}| no={{#if:{{{views2|}}}|{{{views2}}} }}| #default= {{#ifeq: {{{views_name}}}|no|{{{views2}}}|{{Template: {{{views2}}}/meta/shortname}}}} }} }}
{{#if:{{{views3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{views_name|}}}| no={{#if:{{{views3|}}}|{{{views3}}} }}| #default= {{#ifeq: {{{views_name}}}|no|{{{views3}}}|{{Template: {{{views3}}}/meta/shortname}}}} }} }}
{{!}}-
}}
{{#if:{{{alliance1|}}}|<!-- Alliance name 1, 2, 3 -->
! style="text-align: left" {{!}} Alliance
{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance1|}}}|{{{alliance1}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance1}}}|[[{{{alliance1}}}|{{Template: {{{alliance1}}}/meta/shortname}}]]}} }}
{{#if:{{{alliance2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance2|}}}|{{{alliance2}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance2}}}|[[{{{alliance2}}}|{{Template: {{{alliance2}}}/meta/shortname}}]]}} }} }}
{{#if:{{{alliance3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance3|}}}|{{{alliance3}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance3}}}|[[{{{alliance3}}}|{{Template: {{{alliance3}}}/meta/shortname}}]]}} }} }}
{{!}}-
}}
{{#if:{{{town1|}}}|<!-- Town 1, 2, 3 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
! style="text-align: left" {{!}} Town
{{!}} width="70" style="text-align: center" {{!}} {{{town1}}}{{#if:{{{town2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{town2}}} }}{{#if:{{{town3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{town3}}} }}
{{!}}-
| #default      =
}}
}}
<!-- Running mate 1, 2, 3 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#if:{{{running_mate1|}}}|
! style="text-align: left" {{!}} Running&nbsp;mate
{{!}} width="70" style="text-align: center" {{!}} {{{running_mate1}}}{{#if:{{{running_mate2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{running_mate2}}}}}{{#if:{{{running_mate3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{running_mate3}}}}}
}}
| #default      =
}}
|-
|-
<!-- "Leader since" 1, 2, 3 -->
| colspan="2" style="text-align:center;" | [[Archivo:{{{imagen_bandera|}}}|125px|Bandera de {{{país|}}}]]
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leader_since1|}}}|
! style="text-align: left" {{!}} Leader&nbsp;since
{{!}} width="70" style="text-align: center" {{!}} {{{leader_since1}}}{{#if:{{{leader_since2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{leader_since2}}}}}{{#if:{{{leader_since3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{leader_since3}}}}}
}}
| #default      =
}}
|-
|-
<!-- Leader seat 1, 2, 3 -->
| '''País''' || {{{país|}}}
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leaders_seat1|}}}|
! style="text-align: left" {{!}} Leader's&nbsp;seat
{{!}} width="70" style="text-align: center" {{!}} {{{leaders_seat1}}}{{#if:{{{leaders_seat2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{leaders_seat2}}}}}{{#if:{{{leaders_seat3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{leaders_seat3}}}}}
{{!}}-
}}
| #default      =
}}
|-
|-
<!-- last election's seat count and percentage -->
| '''Tipo''' || {{{tipo|}}}
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{last_election1|}}}|
! style="text-align: left" {{!}} Last&nbsp;election
{{!}} width="70" style="text-align: center" {{!}} {{{last_election1}}}{{#if:{{{last_election2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{last_election2}}}}}{{#if:{{{last_election3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{last_election3}}}}}
}}
| #default      =
}}
|-
|-
<!-- seat count before the election -->
| '''Fecha''' || {{{fecha_elección|}}}
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{seats_before1|}}}|
! style="text-align: left" {{!}} Seats&nbsp;before
{{!}} width="70" style="text-align: center" {{!}} {{{seats_before1}}}{{#if:{{{seats_before2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seats_before2}}}}}{{#if:{{{seats_before3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seats_before3}}}}}
}}
| #default      =
}}
|-
|-
<!-- Electoral vote 1, 2, 3 -->
| '''Participación''' || {{{participación|}}}
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{electoral_vote1|}}}|
! style="text-align: left" {{!}} Electoral&nbsp;vote
{{!}} width="70" style="text-align: center" {{!}} {{{electoral_vote1}}}{{#if:{{{electoral_vote2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{electoral_vote2}}}}}{{#if:{{{electoral_vote3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{electoral_vote3}}}}}
}}
}}
| #default      =
}}
|-
|-
<!-- States carried 1, 2, 3 -->
| colspan="2" style="background:#e9e9e9; text-align:center;" | '''Resultados'''
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{states_carried1|}}}|
! style="text-align: left" {{!}} States&nbsp;carried
{{!}} width="70" style="text-align: center" {{!}} {{{states_carried1}}}{{#if:{{{states_carried2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{states_carried2}}}}}{{#if:{{{states_carried3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{states_carried3}}}}}
}}
}}
| #default      =
}}
|-
|-
<!-- seats 1, 2, 3 -->
| '''Candidato''' || '''Votos (%)'''
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{seats1|}}}|
! style="text-align: left" {{!}} Seats&nbsp;won
{{!}} width="70" style="text-align: center" {{!}} {{{seats1}}}{{#if:{{{seats2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seats2}}}}}{{#if:{{{seats3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seats3}}}}}
}}
}}
| #default      =
}}
|-
|-
<!-- seat count after the election -->
| {{{resultados|}}}
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{seats_after1|}}}|
! style="text-align: left" {{!}} Seats&nbsp;after
{{!}} width="70" style="text-align: center" {{!}} {{{seats_after1}}}{{#if:{{{seats_after2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seats_after2}}}}}{{#if:{{{seats_after3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seats_after3}}}}}
}}
| #default      =
}}
|-
|-
<!-- seat change 1, 2, 3 -->
| colspan="2" style="background:#e9e9e9; text-align:center;" | '''Mapa'''
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{seat_change1|}}}|
! style="text-align: left" {{!}} Seat&nbsp;change
{{!}} width="70" style="text-align: center" {{!}} {{{seat_change1}}}{{#if:{{{seat_change2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seat_change2}}}}}{{#if:{{{seat_change3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{seat_change3}}}}}
}}
}}
| #default      =
}}
|-
|-
<!-- popular vote 1, 2, 3 -->
| colspan="2" style="text-align:center;" | [[Archivo:{{{mapa|}}}|250px|Mapa de resultados]]
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{popular_vote1|}}}|
! style="text-align: left" {{!}} Popular&nbsp;vote
{{!}} width="70" style="text-align: center" {{!}} {{{popular_vote1}}}{{#if:{{{popular_vote2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{popular_vote2}}}}}{{#if:{{{popular_vote3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{popular_vote3}}}}}
}}
}}
|-
<!-- percentage 1, 2, 3 -->
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{percentage1|}}}|
! style="text-align: left" {{!}} Percentage
{{!}} width="70" style="text-align: center" {{!}} {{{percentage1}}}{{#if:{{{percentage2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{percentage2}}}}}{{#if:{{{percentage3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{percentage3}}}}}
}}
}}
|-
<!-- swing 1, 2, 3 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{swing1|}}}|
! style="text-align: left" {{!}} Swing
{{!}} width="70" style="text-align: center" {{!}} {{{swing1}}}{{#if:{{{swing2|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{swing2}}}}}{{#if:{{{swing3|}}}| {{!!}} width="70" style="text-align: center" {{!}} {{{swing3}}}}}
{{!}}-
}}
}}
| #default      =
}}
|-
<!-- Presidential poll nominee 1, 2, 3 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_{{#if:{{{poll1_nominee1|}}}|nominee|candidate}}1|}}}|
! colspan=4 {{!}} Opinion&nbsp;polls
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_{{#if:{{{poll1_nominee1|}}}|nominee|candidate}}1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll1_date{{#if:{{{poll1_date1|}}}|1|}}}}} [{{{poll1_source{{#if:{{{poll1_source1|}}}|1|}}}}}]}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee1|}}}|nominee|candidate}}1|}}}| {{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee1|}}}|nominee|candidate}}1}}}}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee2|}}}|nominee|candidate}}2|}}}| {{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee2|}}}|nominee|candidate}}2}}}}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee3|}}}|nominee|candidate}}3|}}}| {{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee3|}}}|nominee|candidate}}3}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll2_{{#if:{{{poll2_nominee1|}}}|nominee|candidate}}1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll2_date{{#if:{{{poll2_date1|}}}|1|}}}}} [{{{poll2_source{{#if:{{{poll2_source1|}}}|1|}}}}}]}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee1|}}}|nominee|candidate}}1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee1|}}}|nominee|candidate}}1}}}}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee2|}}}|nominee|candidate}}2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee2|}}}|nominee|candidate}}2}}}}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee3|}}}|nominee|candidate}}3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee3|}}}|nominee|candidate}}3}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll3_{{#if:{{{poll3_nominee1|}}}|nominee|candidate}}1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll3_date{{#if:{{{poll3_date1|}}}|1|}}}}} [{{{poll3_source{{#if:{{{poll3_source1|}}}|1|}}}}}]}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee1|}}}|nominee|candidate}}1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee1|}}}|nominee|candidate}}1}}}}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee2|}}}|nominee|candidate}}2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee2|}}}|nominee|candidate}}2}}}}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee3|}}}|nominee|candidate}}3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee3|}}}|nominee|candidate}}3}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll4_{{#if:{{{poll4_nominee1|}}}|nominee|candidate}}1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll4_date{{#if:{{{poll4_date1|}}}|1|}}}}} [{{{poll4_source{{#if:{{{poll4_source1|}}}|1|}}}}}]}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee1|}}}|nominee|candidate}}1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee1|}}}|nominee|candidate}}1}}}}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee2|}}}|nominee|candidate}}2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee2|}}}|nominee|candidate}}2}}}}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee3|}}}|nominee|candidate}}3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee3|}}}|nominee|candidate}}3}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll5_{{#if:{{{poll5_nominee1|}}}|nominee|candidate}}1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll5_date{{#if:{{{poll5_date1|}}}|1|}}}}} [{{{poll5_source{{#if:{{{poll5_source1|}}}|1|}}}}}]}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee1|}}}|nominee|candidate}}1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee1|}}}|nominee|candidate}}1}}}}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee2|}}}|nominee|candidate}}2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee2|}}}|nominee|candidate}}2}}}}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee3|}}}|nominee|candidate}}3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee3|}}}|nominee|candidate}}3}}}}}
}}
| #default      =
}}
|-
<!-- seats needed 1, 2, 3 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{seats_needed1|}}}|
! style="text-align: left" {{!}} Seats&nbsp;needed
{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed1}}}
{{#if:{{{seats_needed2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed2}}}}}
{{#if:{{{seats_needed3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed3}}}}}
}}
}}
| #default      =
}}
|-
<!-- Legislative poll nominee 1, 2, 3 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_views1|}}}|
! colspan=4 {{!}} Opinion&nbsp;polls
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_views1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll1_date{{#if:{{{poll1_date1|}}}|1|}}}}} [{{{poll1_source{{#if:{{{poll1_source1|}}}|1|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll1_views1}}}
{{#if:{{{poll1_views2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_views2}}}}}
{{#if:{{{poll1_views3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_views3}}}}}
{{!}}-
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll2_views1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll2_date{{#if:{{{poll2_date1|}}}|1|}}}}} [{{{poll2_source{{#if:{{{poll2_source1|}}}|1|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll2_views1}}}
{{#if:{{{poll2_views2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_views2}}}}}
{{#if:{{{poll2_views3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_views3}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll3_views1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll3_date{{#if:{{{poll3_date1|}}}|1|}}}}} [{{{poll3_source{{#if:{{{poll3_source1|}}}|1|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll3_views1}}}
{{#if:{{{poll3_views2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_views2}}}}}
{{#if:{{{poll3_views3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_views3}}}}}
{{!}}-
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll4_views1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll4_date{{#if:{{{poll4_date1|}}}|1|}}}}} [{{{poll4_source{{#if:{{{poll4_source1|}}}|1|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll4_views1}}}
{{#if:{{{poll4_views2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_views2}}}}}
{{#if:{{{poll4_views3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_views3}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll5_views1|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll5_date{{#if:{{{poll5_date1|}}}|1|}}}}} [{{{poll5_source{{#if:{{{poll5_source1|}}}|1|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll5_views1}}}
{{#if:{{{poll5_views2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_views2}}}}}
{{#if:{{{poll5_views3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_views3}}}}}
{{!}}-
}}
}}
| #default      =
}}
|-
<!-- Blank field 1, 2, 3 -->
{{#if:{{{1blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{1blank}}}
{{#if:{{{1data1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{1data1}}}}}
{{#if:{{{1data2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{1data2}}}}}
{{#if:{{{1data3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{1data3}}}}}
}}
{{#if:{{{2blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{2blank}}}
{{#if:{{{2data1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{2data1}}}}}
{{#if:{{{2data2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{2data2}}}}}
{{#if:{{{2data3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{2data3}}}}}
}}
{{#if:{{{3blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{3blank}}}
{{#if:{{{3data1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{3data1}}}}}
{{#if:{{{3data2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{3data2}}}}}
{{#if:{{{3data3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{3data3}}}}}
}}
{{#if:{{{4blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{4blank}}}
{{#if:{{{4data1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{4data1}}}}}
{{#if:{{{4data2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{4data2}}}}}
{{#if:{{{4data3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{4data3}}}}}
}}
{{#if:{{{5blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{5blank}}}
{{#if:{{{5data1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{5data1}}}}}
{{#if:{{{5data2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{5data2}}}}}
{{#if:{{{5data3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{5data3}}}}}
}}
{{#if:{{{6blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{6blank}}}
{{#if:{{{6data1|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data1}}}}}
{{#if:{{{6data2|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data2}}}}}
{{#if:{{{6data3|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data3}}}}}
}}
|-
{{#if:{{{views4|}}}{{{color4|}}}{{{colour4|}}}{{{leader4|}}}|
{{!}} colspan=4 {{!}} <hr />
{{!}}-
}}
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{views4|}}}|
! align="left" {{!}} }}
{{#if:{{{views4|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{views3|}}}|Fourth views|Third views}} }} }}
{{#if:{{{views5|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||{{#if:{{{views3|}}}|Fifth views|Fourth views}} }} }}
{{#if:{{{views6|}}}|! style="text-align: center" {{!}} {{#ifeq:{{{ongoing|}}}|yes||Sixth views}} }}
| #default      =
}}
<!-- Images 4, 5, 6 -->
{{#if:{{{views4|}}}{{{color4|}}}{{{colour4|}}}|
{{!}}-
! &nbsp;
{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color4|}}}{{{colour4|}}}|<nowiki>#</nowiki>{{{color4|{{{colour4|}}}}}}|{{#ifeq: {{{views_colo{{#if:{{{views_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{views4|}}}/meta/color|{{Template:{{{views4|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image4|}}}|{{{image4}}}}}
{{#if:{{{views5|}}}{{{color5|}}}{{{colour5|}}}|{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color5|}}}{{{colour5|}}}|<nowiki>#</nowiki>{{{color5|{{{colour5|}}}}}}|{{#ifeq: {{{views_colo{{#if:{{{views_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{views5|}}}/meta/color|{{Template:{{{views5|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image5|}}}|{{{image5}}}}}}}
{{#if:{{{views6|}}}{{{color6|}}}{{{colour6|}}}|{{!}} style="text-align: center; border-bottom: 6px solid {{#if:{{{color6|}}}{{{colour6|}}}|<nowiki>#</nowiki>{{{color6|{{{colour6|}}}}}}|{{#ifeq: {{{views_colo{{#if:{{{views_colour|}}}|u|}}r}}}|no|-|{{#ifexist: Template:{{{views6|}}}/meta/color|{{Template:{{{views6|}}}/meta/color}}|-}}}}}}"{{!}} {{#if:{{{image6|}}}|{{{image6}}}}}}}
}}
|-
<!-- Leader 4, 5, 6 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leader4|}}}|
! style="text-align: left" {{!}} Leader
{{!}} width="70" style="text-align: center" {{!}} {{{leader4}}}
{{#if:{{{leader5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader5}}}}}
{{#if:{{{leader6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader6}}}}}
}}
| #default      =
}}
|-
<!-- Presidential nominee/candidate 4, 5, 6 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#if:{{{nominee4|}}}{{{candidate4|}}}|
! style="text-align: left" {{!}} {{#if:{{{nominee4|}}}|Nominee|Candidate}}}}
{{#if:{{{nominee4|}}}{{{candidate4|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{nominee4|{{{candidate4|}}}}}}}}
{{#if:{{{nominee5|}}}{{{candidate5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{nominee5|{{{candidate5|}}}}}}}}
{{#if:{{{nominee6|}}}{{{candidate6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{nominee6|{{{candidate6|}}}}}}}}
| #default      =
}}
|-
<!-- Views name 4, 5, 6 -->
{{#if:{{{views4|}}}|
! style="text-align: left" {{!}} Views
}}
{{#if:{{{views4|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{views_name|}}}| no={{#if:{{{views4|}}}|{{{views4}}} }}| #default= {{#ifeq: {{{views_name}}}|no|{{{views4}}}|[[{{{views4}}}|{{Template: {{{views4}}}/meta/shortname}}]]}} }} }}
{{#if:{{{views5|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{views_name|}}}| no={{#if:{{{views5|}}}|{{{views5}}} }}| #default= {{#ifeq: {{{views_name}}}|no|{{{views5}}}|[[{{{views5}}}|{{Template: {{{views5}}}/meta/shortname}}]]}} }} }}
{{#if:{{{views6|}}}|{{!}} width="70" style="text-align: center" {{!}}{{#switch:{{{views_name|}}}| no={{#if:{{{views6|}}}|{{{views6}}} }}| #default= {{#ifeq: {{{views_name}}}|no|{{{views6}}}|[[{{{views6}}}|{{Template: {{{views6}}}/meta/shortname}}]]}} }} }}
|-
{{#if:{{{alliance4|}}}|<!-- Alliance name 4, 5, 6 -->
! style="text-align: left" {{!}} Alliance
{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance4|}}}|{{{alliance4}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance4}}}|[[{{{alliance4}}}|{{Template: {{{alliance4}}}/meta/shortname}}]]}} }}
{{#if:{{{alliance5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance5|}}}|{{{alliance5}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance5}}}|[[{{{alliance5}}}|{{Template: {{{alliance5}}}/meta/shortname}}]]}} }} }}
{{#if:{{{alliance6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{#switch:{{{alliance_name|}}}| no={{#if:{{{alliance6|}}}|{{{alliance6}}} }}| #default= {{#ifeq: {{{alliance_name}}}|no|{{{alliance6}}}|[[{{{alliance6}}}|{{Template: {{{alliance6}}}/meta/shortname}}]]}} }} }}
{{!}}-
}}
<!-- Town 4, 5, 6 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#if:{{{town4|}}}|
! style="text-align: left" {{!}} Town
{{!}} width="70" style="text-align: center" {{!}} {{{town4}}}
{{#if:{{{town5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{town5}}}}}
{{#if:{{{town6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{town6}}}}}
}}
| #default      =
}}
|-
<!-- Running mate 4, 5, 6 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#if:{{{running_mate4|}}}|
! style="text-align: left" {{!}} Running&nbsp;mate
{{!}} width="70" style="text-align: center" {{!}} {{{running_mate4}}}
{{#if:{{{running_mate5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{running_mate5}}}}}
{{#if:{{{running_mate6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{running_mate6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leader_since4|}}}|
! style="text-align: left" {{!}} Leader&nbsp;since
{{!}} width="70" style="text-align: center" {{!}} {{{leader_since4}}}
{{#if:{{{leader_since5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader_since5}}}}}
{{#if:{{{leader_since6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leader_since6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{leaders_seat4|}}}|
! style="text-align: left" {{!}} Leader's&nbsp;seat
{{!}} width="70" style="text-align: center" {{!}} {{{leaders_seat4}}}
{{#if:{{{leaders_seat5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leaders_seat5}}}}}
{{#if:{{{leaders_seat6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{leaders_seat6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{last_election4|}}}|
! style="text-align: left" {{!}} Last&nbsp;election
{{!}} width="70" style="text-align: center" {{!}} {{{last_election4}}}
{{#if:{{{last_election5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{last_election5}}}}}
{{#if:{{{last_election6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{last_election6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{seats_before4|}}}|
! style="text-align: left" {{!}} Seats&nbsp;before
{{!}} width="70" style="text-align: center" {{!}} {{{seats_before4}}}
{{#if:{{{seats_before5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_before5}}}}}
{{#if:{{{seats_before6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_before6}}}}}
}}
| #default      =
}}
|-
<!-- Electoral vote 4, 5, 6 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{electoral_vote4|}}}|
! style="text-align: left" {{!}} Electoral&nbsp;vote
{{!}} width="70" style="text-align: center" {{!}} {{{electoral_vote4}}}
{{#if:{{{electoral_vote5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{electoral_vote5}}}}}
{{#if:{{{electoral_vote6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{electoral_vote6}}}}}
}}
}}
| #default      =
}}
|-
<!-- States carried 4, 5, 6 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{states_carried4|}}}|
! style="text-align: left" {{!}} States&nbsp;carried
{{!}} width="70" style="text-align: center" {{!}} {{{states_carried4}}}
{{#if:{{{states_carried5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{states_carried5}}}}}
{{#if:{{{states_carried6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{states_carried6}}}}}
}}
}}
| #default      =
}}
|-
<!-- seats 4, 5, 6 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{seats4|}}}|
! style="text-align: left" {{!}} Seats&nbsp;won
{{!}} width="70" style="text-align: center" {{!}} {{{seats4}}}
{{#if:{{{seats5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats5}}}}}
{{#if:{{{seats6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats6}}}}}
}}
}}
| #default      =
}}
|-
<!-- seats after 4, 5, 6 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#if:{{{seats_after4|}}}|
! style="text-align: left" {{!}} Seats&nbsp;after
{{!}} width="70" style="text-align: center" {{!}} {{{seats_after4}}}
{{#if:{{{seats_after5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_after5}}}}}
{{#if:{{{seats_after6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_after6}}}}}
}}
| #default      =
}}
|-
<!-- seat change 4, 5, 6 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{seat_change4|}}}|
! style="text-align: left" {{!}} Seat&nbsp;change
{{!}} width="70" style="text-align: center" {{!}} {{{seat_change4}}}
{{#if:{{{seat_change5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seat_change5}}}}}
{{#if:{{{seat_change6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seat_change6}}}}}
}}
}}
| #default      =
}}
|-
<!-- popular vote 4, 5, 6 -->
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{popular_vote4|}}}|
! style="text-align: left" {{!}} Popular&nbsp;vote
{{!}} width="70" style="text-align: center" {{!}} {{{popular_vote4}}}
{{#if:{{{popular_vote5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{popular_vote5}}}}}
{{#if:{{{popular_vote6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{popular_vote6}}}}}
}}
}}
|-
<!-- percentage 4, 5, 6 -->
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{percentage4|}}}|
! style="text-align: left" {{!}} Percentage
{{!}} width="70" style="text-align: center" {{!}} {{{percentage4}}}
{{#if:{{{percentage5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{percentage5}}}}}
{{#if:{{{percentage6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{percentage6}}}}}
}}
}}
|-
<!-- swing 4, 5, 6 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes||
{{#if:{{{swing4|}}}|
! style="text-align: left" {{!}} Swing
{{!}} width="70" style="text-align: center" {{!}} {{{swing4}}}
{{#if:{{{swing5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{swing5}}}}}
{{#if:{{{swing6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{swing6}}}}}
{{!}}-
}}
}}
| #default      =
}}
|-
<!-- Presidential poll nominee 4, 5, 6 -->
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_{{#if:{{{poll1_nominee4|}}}|nominee|candidate}}4|}}}|
! colspan=4 {{!}} Opinion&nbsp;polls
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_{{#if:{{{poll1_nominee4|}}}|nominee|candidate}}4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll1_date{{#if:{{{poll1_date2|}}}|2|}}}}} [{{{poll1_source{{#if:{{{poll1_source2|}}}|2|}}}}}]}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee4|}}}|nominee|candidate}}4|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee4|}}}|nominee|candidate}}4}}}}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee5|}}}|nominee|candidate}}5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee5|}}}|nominee|candidate}}5}}}}}
{{#if:{{{poll1_{{#if:{{{poll1_nominee6|}}}|nominee|candidate}}6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_{{#if:{{{poll1_nominee6|}}}|nominee|candidate}}6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll2_{{#if:{{{poll2_nominee4|}}}|nominee|candidate}}4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll2_date{{#if:{{{poll2_date2|}}}|2|}}}}} [{{{poll2_source{{#if:{{{poll2_source2|}}}|2|}}}}}]}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee4|}}}|nominee|candidate}}4|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee4|}}}|nominee|candidate}}4}}}}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee5|}}}|nominee|candidate}}5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee5|}}}|nominee|candidate}}5}}}}}
{{#if:{{{poll2_{{#if:{{{poll2_nominee6|}}}|nominee|candidate}}6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_{{#if:{{{poll2_nominee6|}}}|nominee|candidate}}6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll3_{{#if:{{{poll3_nominee4|}}}|nominee|candidate}}4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll3_date{{#if:{{{poll3_date2|}}}|2|}}}}} [{{{poll3_source{{#if:{{{poll3_source2|}}}|2|}}}}}]}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee4|}}}|nominee|candidate}}4|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee4|}}}|nominee|candidate}}4}}}}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee5|}}}|nominee|candidate}}5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee5|}}}|nominee|candidate}}5}}}}}
{{#if:{{{poll3_{{#if:{{{poll3_nominee6|}}}|nominee|candidate}}6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_{{#if:{{{poll3_nominee6|}}}|nominee|candidate}}6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll4_{{#if:{{{poll4_nominee4|}}}|nominee|candidate}}4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll4_date{{#if:{{{poll4_date2|}}}|2|}}}}} [{{{poll4_source{{#if:{{{poll4_source2|}}}|2|}}}}}]}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee4|}}}|nominee|candidate}}4|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee4|}}}|nominee|candidate}}4}}}}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee5|}}}|nominee|candidate}}5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee5|}}}|nominee|candidate}}5}}}}}
{{#if:{{{poll4_{{#if:{{{poll4_nominee6|}}}|nominee|candidate}}6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_{{#if:{{{poll4_nominee6|}}}|nominee|candidate}}6}}}}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| presidential
| Presidential =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll5_{{#if:{{{poll5_nominee4|}}}|nominee|candidate}}4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll5_date{{#if:{{{poll5_date2|}}}|2|}}}}} [{{{poll5_source{{#if:{{{poll5_source2|}}}|2|}}}}}]}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee4|}}}|nominee|candidate}}4|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee4|}}}|nominee|candidate}}4}}}}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee5|}}}|nominee|candidate}}5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee5|}}}|nominee|candidate}}5}}}}}
{{#if:{{{poll5_{{#if:{{{poll5_nominee6|}}}|nominee|candidate}}6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_{{#if:{{{poll5_nominee6|}}}|nominee|candidate}}6}}}}}
}}
| #default      =
}}
|-
<!-- seats needed 4, 5, 6 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{seats_needed4|}}}|
! style="text-align: left" {{!}} Seats&nbsp;needed
{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed4}}}
{{#if:{{{seats_needed5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed5}}}}}
{{#if:{{{seats_needed6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{seats_needed6}}}}}
}}
}}
| #default      =
}}
|-
<!-- Legislative poll nominee 4, 5, 6 -->
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_views4|}}}|
! colspan=4 {{!}} Opinion&nbsp;polls
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll1_views4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll1_date{{#if:{{{poll1_date4|}}}|4|}}}}} [{{{poll1_source{{#if:{{{poll1_source4|}}}|4|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll1_views4}}}
{{#if:{{{poll1_views5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_views5}}}}}
{{#if:{{{poll1_views6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll1_views6}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll2_views4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll2_date{{#if:{{{poll2_date4|}}}|4|}}}}} [{{{poll2_source{{#if:{{{poll2_source4|}}}|4|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll2_views4}}}
{{#if:{{{poll2_views5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_views5}}}}}
{{#if:{{{poll2_views6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll2_views6}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll3_views4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll3_date{{#if:{{{poll3_date4|}}}|4|}}}}} [{{{poll3_source{{#if:{{{poll3_source4|}}}|4|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll3_views4}}}
{{#if:{{{poll3_views5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_views5}}}}}
{{#if:{{{poll3_views6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll3_views6}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll4_views4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll4_date{{#if:{{{poll4_date4|}}}|4|}}}}} [{{{poll4_source{{#if:{{{poll4_source4|}}}|4|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll4_views4}}}
{{#if:{{{poll4_views5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_views5}}}}}
{{#if:{{{poll4_views6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll4_views6}}}}}
}}
}}
| #default      =
}}
|-
{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{#ifeq:{{{ongoing|}}}|yes|
{{#if:{{{poll5_views4|}}}|
! style="text-align: left; white-space: nowrap" {{!}} {{{poll5_date{{#if:{{{poll5_date4|}}}|4|}}}}} [{{{poll5_source{{#if:{{{poll5_source4|}}}|4|}}}}}]
{{!}} width="70" style="text-align: center" {{!}} {{{poll5_views4}}}
{{#if:{{{poll5_views5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_views5}}}}}
{{#if:{{{poll5_views6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{poll5_views6}}}}}
}}
}}
| #default      =
}}
|-
<!-- Blank field 4, 5, 6 -->
{{#if:{{#switch:{{{type|}}}
| parliamentary
| Parliamentary
| legislative
| Legislative  =
{{{views4|}}}}}{{{nominee4|}}}{{{candidate4|}}}|
{{#if:{{{1blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{1blank}}}
{{#if:{{{1data4|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{1data4}}}}}
{{#if:{{{1data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{1data5}}}}}
{{#if:{{{1data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{1data6}}}}}
}}
{{#if:{{{2blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{2blank}}}
{{#if:{{{2data4|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{2data4}}}}}
{{#if:{{{2data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{2data5}}}}}
{{#if:{{{2data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{2data6}}}}}
}}
{{#if:{{{3blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{3blank}}}
{{#if:{{{3data4|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{3data4}}}}}
{{#if:{{{3data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{3data5}}}}}
{{#if:{{{3data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{3data6}}}}}
}}
{{#if:{{{4blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{4blank}}}
{{#if:{{{4data4|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{4data4}}}}}
{{#if:{{{4data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{4data5}}}}}
{{#if:{{{4data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{4data6}}}}}
}}
{{#if:{{{5blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{5blank}}}
{{#if:{{{5data4|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{5data4}}}}}
{{#if:{{{5data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{5data5}}}}}
{{#if:{{{5data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{5data6}}}}}
}}
{{#if:{{{6blank|}}}|
{{!}}-
! style="text-align: left" {{!}} {{{6blank}}}
{{#if:{{{6data4|}}}|
{{!}} width="70" style="text-align: center" {{!}} {{{6data4}}}}}
{{#if:{{{6data5|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data5}}}}}
{{#if:{{{6data6|}}}|{{!}} width="70" style="text-align: center" {{!}} {{{6data6}}}}}
}}}}
|}
|}
|-
</includeonly>
{{#if:{{{map_image|}}}{{{map|}}}|
<noinclude>
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} style="text-align: center" colspan=4 {{!}} <hr />
== Uso ==
{{#if:{{{map_image|}}}|[[File:{{{map_image}}}|{{#if:{{{map_size|}}}|{{{map_size}}}|300px}}|{{#if:{{{map_alt|}}}|alt={{{map_alt|}}}|}}]]|{{{map}}}}}
Esta plantilla se utiliza para resumir información sobre elecciones.
{{!}}-
 
{{#if:{{{map_caption|}}}|
=== Parámetros ===
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan=4 style="text-align: center" {{!}} {{{map_caption|}}}
* `nombre_elección`: Nombre de la elección.
{{!}}-
* `país`: País donde se realiza la elección.
}}
* `imagen_bandera`: Nombre del archivo de la bandera del país.
* `tipo`: Tipo de elección (por ejemplo, presidencial, parlamentaria).
* `fecha_elección`: Fecha en que se llevó a cabo la elección.
* `participación`: Porcentaje de participación electoral.
* `resultados`: Resultados de los candidatos en formato de lista.
* `mapa`: Nombre del archivo de la imagen del mapa de resultados.
 
=== Ejemplo de uso ===
<pre>
{{Infobox elección
| nombre_elección = Elecciones generales de Sia de 2025
| país = República de Sia
| imagen_bandera = Bandera_de_Sia.png
| tipo = General
| fecha_elección = 1 de abril de 2025
| participación = 75%
| resultados =  
{{Resultado candidato|Juan Pérez|Partido Alfa|60%}}
{{Resultado candidato|María Gómez|Partido Beta|30%}}
{{Resultado candidato|Luis Martínez|Independiente|10%}}
| mapa = Mapa_resultados_Sia_2025.png
}}
}}
{{#if:{{{title|}}}|
</pre>
{{!}} {{#if:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{#ifeq:{{Str rightc|{{{map_size}}}|2}}|px|width="{{Str number/trim|{{{map_size}}}}}"}}|width="300"}}}} colspan=4 {{!}} <hr />
 
{{{!}} cellspacing="0" cellpadding="0" style="background:transparent; width:100%;"
== Plantillas relacionadas ==
{{!}} style="width:50%; text-align:left; text-size: 80%" {{!}}'''{{#if:{{{before_election|}}}{{{before_views|}}}|{{#ifeq:{{{ongoing|}}}|yes|Incumbent {{{title}}}|{{{title}}} before election}}'''<br />
* [[Plantilla:Resultado candidato]]
{{{before_election}}}<br />
</noinclude>
{{#if:{{{before_views|}}}|{{#ifeq: {{{views_name}}}|no|{{{before_views}}}|[[{{{before_views}}}|{{Template: {{{before_views}}}/meta/shortname}}]]}} }} }}
{{!}} 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_views|}}}||TBD}}<br />
{{#if:{{{after_views|}}}|{{#ifeq: {{{views_name}}}|no|{{{after_views}}}|[[{{{after_views}}}|{{Template: {{{after_views}}}/meta/shortname}}]]}} }} }}
{{!}}} }}
|}</includeonly><noinclude>{{Documentation}}</noinclude>