Template:Infobox legislative election/row: Difference between revisions

From Osolia Wiki
Hydrogen (talk | contribs)
Created page with "{{#if:{{{heading|}}} | ! colspan=5 {{!}} {{{heading}}} {{!-}} }} ! scope="row" style="{{#if:{{{colour|}}}|border-left: 4px solid {{{colour}}};|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-left: 4px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke..."
 
Hydrogen (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
  | ! colspan=5 {{!}} {{{heading}}}
  | ! colspan=5 {{!}} {{{heading}}}
{{!-}} }}
{{!-}} }}
! scope="row" style="{{#if:{{{colour|}}}|border-left: 4px solid {{{colour}}};|{{#ifeq: {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color|error=NOTHERE}} | NOTHERE || border-left: 4px solid {{#invoke:Political party|fetch|{{#invoke:delink|delink|wikilinks=target|1={{#invoke:string|replace|source={{{party}}}|pattern=^(%[%[%s*[^%]%[]*%]%]).*$|replace=%1|plain=false}}}}|color}};}}}}" | {{Infobox election/shortname|link={{{party_link}}}|name={{{party}}}}}
! scope="row" style="{{#if:{{{colour|}}}|border-left: 4px solid {{{colour}}};}} | {{{party}}}
{{#ifeq:{{{noleader|}}}|yes||{{!}} {{{party_leader|}}}
! scope="row" | {{{party_leader}}}
}}{{#switch:{{{ongoing|}}}|counting|yes=|#default={{#ifeq:{{{nopercentage|}}}|yes||<nowiki></nowiki>
! scope="row" | {{{percentage}}}
{{!}} class="ib-legis-elect-percent" {{!}} {{{percentage|}}}
! scope="row" | {{{seats}}}
}}}}{{#ifeq:{{{first_election|}}}|yes|{{#switch:{{{ongoing|}}}|counting|yes=|#default=<nowiki></nowiki>
! scope="row" | {{PNsign|{{#expr:{{{seats}}}-{{{last_election}}}}}}}
{{!}} class="ib-legis-elect-seats" {{!}} {{{seats|}}}}}|<nowiki></nowiki>
 
{{!}} class="ib-legis-elect-seats" {{!}} {{#switch:{{{ongoing|}}}|counting|yes={{{current_seats|}}}|#default={{{seats|}}}}}{{#switch:{{{ongoing|}}}|counting|yes=|#default=<nowiki></nowiki>
<noinclude>{{Documentation}}</noinclude>
{{!}} {{#if:{{Both|{{{seats|}}}|{{{last_election|}}}}}|class="nowrap ib-legis-elect-seats {{#iferror:{{#expr:{{{last_election}}}}}||{{#ifexpr:{{{seats}}}>{{{last_election}}}|ib-legis-elect-p|{{#ifexpr:{{{seats}}}<{{{last_election}}}|ib-legis-elect-m}}}}}}" {{!}} {{#ifeq:{{lc:{{{last_election}}}}}|new|New|{{PNsign|{{#expr:{{{seats}}}-{{{last_election}}}}}}}}}}}
}}}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 18:35, 18 June 2024

! scope="row" style=" | {{{party}}} ! scope="row" | {{{party_leader}}} ! scope="row" | {{{percentage}}} ! scope="row" | {{{seats}}} ! scope="row" | Expression error: Unexpected < operator.