Template:Bar-voted: Difference between revisions

From PoliticalSG
mNo edit summary
mNo edit summary
Line 2: Line 2:
|-
|-
| style="height:20px; padding:0;" | '''[[{{{party1-cand1}}}]]''' {{#if:{{{party1-cand2}}} | '''[[{{{party1-cand2}}}]]'''| }}
| style="height:20px; padding:0;" | '''[[{{{party1-cand1}}}]]''' {{#if:{{{party1-cand2}}} | '''[[{{{party1-cand2}}}]]'''| }}
| style="height:20px; text-align:justify; padding:0; width:100px;" | {{#switch:{{{party1}}}
| style="height:20px; text-align:justify; padding:0; width:120px;" | {{#switch:{{{party1}}}
| PAP=  [[file:PAP logo.png| 30px]] |party1color=#e5e7e9
| PAP=  [[file:PAP logo.png| 30px]] |party1color=#e5e7e9
| WP=   [[file:WP logo.png| 30px]] {{{party1color| #aed6f1}}}
| WP=   [[file:WP logo.png| 30px]] {{{party1color| #aed6f1}}}
Line 15: Line 15:
}}; width:{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 0}}px;">&nbsp;{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 0}}%</div>
}}; width:{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 0}}px;">&nbsp;{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 0}}%</div>
|-
|-
| style="height:20px; padding:0;" | '''[[{{{party2-cand2}}}]]''' {{#if:{{{party2-cand2}}} | '''[[{{{party2-cand2}}}]]'''| }}
| style="height:20px; padding:0;" | '''[[{{{party2-cand1}}}]]''' {{#if:{{{party2-cand2}}} | '''[[{{{party2-cand2}}}]]'''| }}
| style="height:20px; text-align:justify; padding:0; width:100px;" | {{#switch:{{{party2}}}
| style="height:20px; text-align:justify; padding:0; width:120px;" | {{#switch:{{{party2}}}
| PAP= &nbsp; [[file:PAP logo.png| 30px]]
| PAP= &nbsp; [[file:PAP logo.png| 30px]]
| WP= &nbsp; [[file:WP logo.png| 30px]]
| WP= &nbsp; [[file:WP logo.png| 30px]]

Revision as of 13:29, 9 March 2025

[[{{{party1-cand1}}}]] [[{{{party1-cand2}}}]] {{{party1}}}   {{{party1}}}: {{{party1votes}}} <div style="background-color:
  1. 566573; width:Expression error: Unrecognized punctuation character "{".px;"> Expression error: Unrecognized punctuation character "{".%
[[{{{party2-cand1}}}]] [[{{{party2-cand2}}}]] {{{party2}}}   {{{party2}}}: Expression error: Unrecognized punctuation character "{". <div style="background-color:
  1. 566573; width:Expression error: Unrecognized punctuation character "{".px;"> Expression error: Unrecognized punctuation character "{".%