Jump to content

Template:Election box gain with party link and Template:Election box gain with party link/sandbox: Difference between pages

(Difference between pages)
Content deleted Content added
No edit summary
 
remove background color as does not appear to be doing anything useful also also helps with dark mode compatibility
 
Line 4: Line 4:


|-
|-
| style="color:inherit;background-color: {{if empty|{{{colour|}}}|{{{color|}}}|{{#if:{{{winner|}}}|{{#invoke:Political party|fetch|{{{winner}}}|color}}}}}}" |
| style="color:inherit;background-color: {{if empty|{{{colour|}}}|{{{color|}}}|{{#invoke:Political party|fetch|{{{winner}}}|color}}}}" |
| colspan="2" | {{#if:{{{winner|}}}|[[{{#ifeq:{{{winner}}}|Independent|Independent politician|{{{winner}}}}}|{{#invoke:Political party|fetch|{{{winner}}}|shortname}}]]}} '''gain''' from {{#switch:{{lc:{{{loser}}}}}
| colspan="2" | [[{{{winner}}}|{{#invoke:Political party|fetch|{{{winner}}}|shortname}}]] '''gain''' from {{#switch:{{lc:{{{loser}}}}}
| unknown = (unknown)
| unknown = (unknown)
| ? = ?
| ? = ?
| #default = {{#if:{{{loser|}}}|[[{{#ifeq:{{{loser}}}|Independent|Independent politician|{{{loser}}}}}|{{#invoke:Political party|fetch|{{{loser}}}|shortname}}]]}}
| #default = [[{{{loser}}}|{{#invoke:Political party|fetch|{{{loser}}}|shortname}}]]
}}
}} {{Yesno|{{{notional|}}}|yes = (Notional.{{{notional ref|}}})}}
! style="text-align:right;" | [[Swing (politics)|Swing]]
! style="text-align:right;" | [[Swing (politics)|Swing]]
| style="text-align:right;" | {{{swing}}}
| style="text-align:right;" | {{{swing}}}