Template:Infobox legislative election: Difference between revisions

From Osolia Wiki
Hydrogen (talk | contribs)
Testing? maybe
 
Hydrogen (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
}}
}}


| data1 = {{#if:{{{seats_for_election|}}}|<hr />{{{seats_for_election}}}{{#if:{{{majority_seats|}}}|<br />{{{majority_seats}}} seats needed for a majority}}}}
| data1 = {{#if:{{{seats_for_election|}}}|<hr />{{{seats_for_election}}}{{#if:{{{majority_seats|}}}|<br />{{{majority_seats}}} votes needed for a majority}}}}


| label2 = Turnout
| label2 = Turnout
Line 36: Line 36:
! Party {{#ifeq:{{{noleader|}}}|yes||!!{{{leadertitle|Leader}}}}}
! Party {{#ifeq:{{{noleader|}}}|yes||!!{{{leadertitle|Leader}}}}}
{{#switch:{{{ongoing|}}}|counting|yes=
{{#switch:{{{ongoing|}}}|counting|yes=
{{#ifeq:{{{first_election|}}}|yes||! {{#ifeq:{{{ongoing|}}}|counting|Seats before|Current seats}}}}
{{#ifeq:{{{first_election|}}}|yes||! {{#ifeq:{{{ongoing|}}}|counting|Votes before|Current total votes}}}}
|#default=
|#default=
{{#ifeq:{{{nopercentage|}}}|yes||! <abbr title="Percentage vote share">%</abbr>}}
{{#ifeq:{{{nopercentage|}}}|yes||! <abbr title="Percentage vote share">%</abbr>}}
! Seats
! Votes
{{#ifeq:{{{first_election|}}}|yes||! <abbr title="Seat change from last election">+/–</abbr>}}
{{#ifeq:{{{first_election|}}}|yes||! <abbr title="Vote change from last election">+/–</abbr>}}
}}
}}
{{!-}}
{{!-}}
Line 1,163: Line 1,163:
}}}}
}}}}
{{!)}}  
{{!)}}  
<div class="nowrap ib-legis-elect-disclaimer">{{#switch:{{{ongoing|}}}|counting|yes=|#default=This lists parties that won seats. See the complete results below.}}</div>}}<!--
<div class="nowrap ib-legis-elect-disclaimer">{{#switch:{{{ongoing|}}}|counting|yes=|#default=This lists candidates that won votes. See the complete results below.}}</div>}}<!--
  -->{{#if:{{{map|}}}|<table class="ib-legis-elect-map"><tr><td class="infobox-image">{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|upright={{#if:{{{map_upright|}}}|{{{map_upright}}}|1.3}}|alt={{{map_alt|}}}}}{{#if:{{{map_caption|}}}|<div class="infobox-caption">{{{map_caption|}}}</div>}}</td></tr></table>
  -->{{#if:{{{map|}}}|<table class="ib-legis-elect-map"><tr><td class="infobox-image">{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|upright={{#if:{{{map_upright|}}}|{{{map_upright}}}|1.3}}|alt={{{map_alt|}}}}}{{#if:{{{map_caption|}}}|<div class="infobox-caption">{{{map_caption|}}}</div>}}</td></tr></table>
}}{{#if:{{{before_election|}}}{{{after_election|}}}|<table class="ib-legis-elect-befaft">
}}{{#if:{{{before_election|}}}{{{after_election|}}}|<table class="ib-legis-elect-befaft">

Latest revision as of 18:59, 18 June 2024