Template:Party-barcolor: Difference between revisions

From PoliticalSG
No edit summary
m (→‎top: change color, replaced: dcff40 → cbd500)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#switch:{{{party}}}
<div style="background-color:{{#switch:{{{party}}}
| PAP=#e5e7e9
| PAP=#e5e7e9
| WP=#aed6f1
| WP=#aed6f1
Line 8: Line 8:
| PV=#bb8fce
| PV=#bb8fce
| RDU=#d35400
| RDU=#d35400
| SDA=#dcff40
| SDA=#cbd500
| NSP=#ffa64d
| NSP=#ffa64d
| PPP=#ebb3ff
| PPP=#ebb3ff
| PAR=#e7781c
| PAR=#e7781c
| #566573
| #566573
| None
}}; padding:0; width:{{#expr:{{{votepercent}}} round 2}}px;">&nbsp;{{#expr:{{{votepercent}}} round 2}}%</div>
}}
 
[[category:templates]]
[[category:templates]]

Latest revision as of 15:28, 16 March 2025

<div style="background-color:

  1. 566573; padding:0; width:Expression error: Unrecognized punctuation character "{".px;"> Expression error: Unrecognized punctuation character "{".%