Template:Infobox General Assembly election/row: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Manual revert
 
(35 intermediate revisions by the same user not shown)
Line 1:
{{#if:{{{heading|}}}
| colspan=3 {{!}} {{{heading}}}
{{!-}}
!}}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={{{candidate}}}}}
{{!}} style="text-align: right;" {{!}}| {{{seatsvotes|}}}}}| 
| {{{party_leader|}}}{{#switch:{{{ongoing|}}}|counting|yes=|#default= 
{{!}} style="text-align: right;" {{!}} {{{percentagestatus|}}}
}}{{#ifeq:{{{first_election|}}}|yes|{{#switch:{{{ongoing|}}}|counting|yes=|#default= 
{{!}} style="text-align: right;" {{!}} {{{seats|}}}}}| 
{{!}} 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}}}}}}}}}}}
}}}}