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)
Replaced content with "{{#if:{{{heading|}}} | ! colspan=5 {{!}} {{{heading}}} {{!-}} }} ! scope="row" test <noinclude>{{Documentation}}</noinclude>"
Tag: Replaced
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" test
{{#ifeq:{{{noleader|}}}|yes||{{!}} {{{party_leader|}}}
 
}}{{#switch:{{{ongoing|}}}|counting|yes=|#default={{#ifeq:{{{nopercentage|}}}|yes||<nowiki></nowiki>
<noinclude>{{Documentation}}</noinclude>
{{!}} class="ib-legis-elect-percent" {{!}} {{{percentage|}}}
}}}}{{#ifeq:{{{first_election|}}}|yes|{{#switch:{{{ongoing|}}}|counting|yes=|#default=<nowiki></nowiki>
{{!}} 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>
{{!}} {{#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>

Revision as of 18:31, 18 June 2024

! scope="row" test