Template:Bar-voted: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{| style="width:240px; padding:0;" | | {| style="width:240px; padding:0;" | | ||
|- | |- | ||
| style="height:20px; align:right; text-align:left; padding:0;" | {{#switch:{{{party1}}} | | style="height:20px; width:80px; align:right; text-align:left; padding:0;" | {{#switch:{{{party1}}} | ||
| PAP= [[file:PAP logo.png| 30px]] | | PAP= [[file:PAP logo.png| 30px]] | ||
| WP= [[file:WP logo.png| 30px]] | | WP= [[file:WP logo.png| 30px]] | ||
Line 15: | Line 15: | ||
}}; width:{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 2}}px;"> {{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 2}}%</div> | }}; width:{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 2}}px;"> {{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 2}}%</div> | ||
|- | |- | ||
| style="height:20px; align:right; text-align:justify; padding:0; width:130px;" | {{#switch:{{{party2}}} | | style="height:20px; width:80px; align:right; text-align:justify; padding:0; width:130px;" | {{#switch:{{{party2}}} | ||
| PAP= [[file:PAP logo.png| 30px]] | | PAP= [[file:PAP logo.png| 30px]] | ||
| WP= [[file:WP logo.png| 30px]] | | WP= [[file:WP logo.png| 30px]] | ||
Line 29: | Line 29: | ||
}}; width:{{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 2}}px;"> {{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 2}}%</div> | }}; width:{{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 2}}px;"> {{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 2}}%</div> | ||
|- | |- | ||
| style="height:20px; align:right; text-align:justify; padding:0 | | style="height:20px; width:80px; align:right; text-align:justify; padding:0;" | | ||
{{#if:{{{party3}}}| | {{#if:{{{party3}}}| | ||
{{#switch:{{{party3}}} | {{#switch:{{{party3}}} |
Revision as of 19:47, 9 March 2025
{{{party1}}} {{{party1}}}: | {{{party1votes}}} | <div style="padding:0; background-color:
|
{{{party2}}} {{{party2}}}: | {{{party2votes}}} | <div style="padding:0; background-color:
|
{{{party3}}} {{{party3}}}: |
{{{party3votes}}} |
<div style="padding:0; background-color:
|