Difference between revisions of "Template:Infobox legislative election/row"

From blackwiki
Jump to navigation Jump to search
imported>KingWither
imported>KingWither
Line 8: Line 8:
 
{{!}} style="text-align: right;" {{!}} {{{seats|}}}}}| 
 
{{!}} style="text-align: right;" {{!}} {{{seats|}}}}}| 
 
{{!}} style="text-align: right;" {{!}} {{#switch:{{{ongoing|}}}|counting|yes={{{seats_before|}}}|#default={{{seats|}}}}}{{#switch:{{{ongoing|}}}|counting|yes=|#default= 
 
{{!}} 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;" {{!}}
+
{{!}} {{#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}}}}}}}}}}}
{{#iferror:
 
  {{#expr:
 
    {{{seats_before}}}
 
  }}||
 
  {{#ifexpr:{{{seats}}}>{{{seats_before}}}|
 
    {{increase}}
 
    {{#ifexpr:{{{seats}}}<{{{seats_before}}}|
 
      {{decrease}}
 
      {{#ifexpr:{{{seats}}}={{{seats_before}}}|
 
        {{steady}}
 
      }}
 
    }}
 
  }}
 
}} {{#ifeq:{{lc:{{{seats_before}}}}}|new|New|{{#expr:{{{seats}}}-{{{seats_before}}}}}}}}}
 
 
  }}}}
 
  }}}}

Revision as of 17:08, 21 March 2020

scope="row" style="background-color: transparent; font-weight: normal; text-align: left;" | {{{party}}} | | style="text-align: right;" | | style="text-align: right;" | |