Template:Bar-voted: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
| #default={{{party1}}} | | #default={{{party1}}} | ||
}}<span style="font-variant:big-caps;"> '''{{{party1}}}''': {{formatnum:{{{party1votes}}} }}</span> | }}<span style="font-variant:big-caps;"> '''{{{party1}}}''': {{formatnum:{{{party1votes}}} }}</span> | ||
| style="height:20px; align:right | | style="height:20px; align:right; padding:0; width:120px;" |<div style="background-color:{{#switch:{{{party1}}} | ||
| PAP=#e5e7e9 | | PAP=#e5e7e9 | ||
| WP=#aed6f1 | | WP=#aed6f1 | ||
Line 19: | Line 19: | ||
| PSP= [[file:Psp-logo.png| 30px]] | | PSP= [[file:Psp-logo.png| 30px]] | ||
| #default={{{party2}}} | | #default={{{party2}}} | ||
}}<span style="font-variant:big-caps;"> | }}<span style="font-variant:big-caps;"> '''{{{party2}}}''': {{formatnum:{{{party2votes}}} }}</span> | ||
| style="height:20px; align:right | | style="height:20px; align:right; padding:0; width:120px;" |<div style="background-color:{{#switch:{{{party2}}} | ||
| PAP=#e5e7e9 | | PAP=#e5e7e9 | ||
| WP=#aed6f1 | | WP=#aed6f1 | ||
Line 26: | Line 26: | ||
| #566573 | | #566573 | ||
}}; width:{{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 0}}px;"> {{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 0}}%</div> | }}; width:{{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 0}}px;"> {{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 0}}%</div> | ||
|- | |||
{{#if:{{{party3}}}| | |||
| style="height:20px; align:right; text-align:justify; padding:0; width:150px;" | {{#switch:{{{party3}}} | |||
| PAP= [[file:PAP logo.png| 30px]] | |||
| WP= [[file:WP logo.png| 30px]] | |||
| PSP= [[file:Psp-logo.png| 30px]] | |||
| #default={{{party3}}} | |||
}}<span style="font-variant:big-caps;"> <span style="font-variant:big-caps;">'''{{{party3}}}''': {{formatnum:{{{party3votes}}} }}</span> | |||
| style="height:20px; align:right; padding:0; width:120px;" |<div style="background-color:{{#switch:{{{party2}}} | |||
| PAP=#e5e7e9 | |||
| WP=#aed6f1 | |||
| PSP=#d98880 | |||
| #566573 | |||
}}; width:{{#expr:{{{party3votes}}}/{{{totalvotes}}}*100 round 0}}px;"> {{#expr:{{{party3votes}}}/{{{totalvotes}}}*100 round 0}}%</div> | |||
}} | |||
|} | |} |
Revision as of 15:20, 9 March 2025
{{{party1}}} {{{party1}}}: {{{party1votes}}} | <div style="background-color:
|
{{{party2}}} {{{party2}}}: {{{party2votes}}} | <div style="background-color:
|