Difference between revisions of "Template:Infobox legislative election/row"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Frietjes (add ongoing=counting as an option) |
||
| Line 3: | Line 3: | ||
{{!-}} | {{!-}} | ||
!}}scope="row" style="background-color: transparent; {{#if:{{{colour|}}}|border-left: 4px solid {{{colour}}};|{{#ifexist:Template:{{{party}}}/meta/color|border-left: 4px solid {{{{{party}}}/meta/color}};}}}} font-weight: normal; text-align: left;" | {{Infobox election/shortname|name={{{party}}}}} | !}}scope="row" style="background-color: transparent; {{#if:{{{colour|}}}|border-left: 4px solid {{{colour}}};|{{#ifexist:Template:{{{party}}}/meta/color|border-left: 4px solid {{{{{party}}}/meta/color}};}}}} font-weight: normal; text-align: left;" | {{Infobox election/shortname|name={{{party}}}}} | ||
| − | | {{{party_leader|}}}{{# | + | | {{{party_leader|}}}{{#switch:{{{ongoing|}}}|counting|yes=|#default=  |
{{!}} style="text-align: right;" {{!}} {{{percentage|}}} | {{!}} style="text-align: right;" {{!}} {{{percentage|}}} | ||
| − | }}{{#ifeq:{{{first_election|}}}|yes|{{# | + | }}{{#ifeq:{{{first_election|}}}|yes|{{#switch:{{{ongoing|}}}|counting|yes=|#default=  |
{{!}} style="text-align: right;" {{!}} {{{seats|}}}}}|  | {{!}} style="text-align: right;" {{!}} {{{seats|}}}}}|  | ||
| − | {{!}} style="text-align: right;" {{!}} {{# | + | {{!}} style="text-align: right;" {{!}} {{#switch:{{{ongoing|}}}|counting|yes={{{seats_before|}}}|#default={{{seats|}}}}}{{#switch:{{{ongoing|}}}|counting|yes=|#default=  |
{{!}} {{#if:{{Both|{{{seats|}}}|{{{seats_before|}}}}}|style="text-align: right; white-space: nowrap; {{#iferror:{{#expr:{{{seats_before}}}}}||{{#ifexpr:{{{seats}}}>{{{seats_before}}}|color: green;|{{#ifexpr:{{{seats}}}<{{{seats_before}}}|color: red;}}}}}}" {{!}} {{#ifeq:{{lc:{{{seats_before}}}}}|new|New|{{PNsign|{{#expr:{{{seats}}}-{{{seats_before}}}}}}}}}}} | {{!}} {{#if:{{Both|{{{seats|}}}|{{{seats_before|}}}}}|style="text-align: right; white-space: nowrap; {{#iferror:{{#expr:{{{seats_before}}}}}||{{#ifexpr:{{{seats}}}>{{{seats_before}}}|color: green;|{{#ifexpr:{{{seats}}}<{{{seats_before}}}|color: red;}}}}}}" {{!}} {{#ifeq:{{lc:{{{seats_before}}}}}|new|New|{{PNsign|{{#expr:{{{seats}}}-{{{seats_before}}}}}}}}}}} | ||
}}}} | }}}} | ||
Revision as of 13:23, 4 March 2020
scope="row" style="background-color: transparent; font-weight: normal; text-align: left;" | {{{party}}} | | style="text-align: right;" | | style="text-align: right;" | |