Template:Candi-GRC: Difference between revisions

From PoliticalSG
No edit summary
No edit summary
Line 8: Line 8:
| style="width:20%;" | [[File:Portrait placeholder.png |x50px|link={{{party1-cand1}}}]]
| style="width:20%;" | [[File:Portrait placeholder.png |x50px|link={{{party1-cand1}}}]]
|}
|}
|
|
|
|-
|-
Line 19: Line 18:
| style="width:20%;" | '''[[{{{party1-cand1}}}]]'''  
| style="width:20%;" | '''[[{{{party1-cand1}}}]]'''  
|}
|}
| style="height:20px; align:right; text-align:justify; vertical-align:bottom; padding:0; width:150px;" | {{#switch:{{{party1}}}
| {{Bar-voted}}
| PAP=  [[file:PAP logo.png| 30px]] |party1color=#e5e7e9
| WP=   [[file:WP logo.png| 30px]] {{{party1color| #aed6f1}}}
| PSP=   [[file:Psp-logo.png| 30px]] {{{party1color| #d98880}}}
| #default={{{party1}}}
}}<span style="font-variant:big-caps;"> &nbsp; '''{{{party1}}}''': {{formatnum:{{{party1votes}}} }}</span>
| style="height:20px; align:right; vertical-align:bottom; padding:0; width:120px;" |<div style="background-color: {{#switch:{{{party1}}}
| PAP=#e5e7e9
| WP=#aed6f1
| PSP=#d98880
| #566573
}}; width:{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 0}}px;">&nbsp;{{#expr:{{{party1votes}}}/{{{totalvotes}}}*100 round 0}}%</div>
|-
|-
| style="height:20px; padding:0;" |  
| style="height:20px; padding:0;" |  
Line 40: Line 28:
| style="width:20%;" | '''[[{{{party2-cand1}}}]]'''  
| style="width:20%;" | '''[[{{{party2-cand1}}}]]'''  
|}
|}
| style="height:20px; align:right; text-align:justify; vertical-align:top; padding:0; width:150px;" | {{#switch:{{{party2}}}
|
| PAP= &nbsp; [[file:PAP logo.png| 30px]]
| WP= &nbsp; [[file:WP logo.png| 30px]]
| PSP= &nbsp; [[file:Psp-logo.png| 30px]]
| #default={{{party2}}}
}}<span style="font-variant:big-caps;"> &nbsp; <span style="font-variant:big-caps;">'''{{{party2}}}''': {{formatnum:{{#expr:{{{totalvotes}}}-{{{party1votes}}} }} }}</span>
| style="height:20px; align:right; vertical-align:top; padding:0; width:120px;" |<div style="background-color: {{#switch:{{{party2}}}
| PAP=#e5e7e9
| WP=#aed6f1
| PSP=#d98880
| #566573
}}; width:{{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 0}}px;">&nbsp;{{#expr:{{{party2votes}}}/{{{totalvotes}}}*100 round 0}}%</div>
|-
|-
| style="vertical-align:top;"|  
| style="vertical-align:top;"|  
Line 61: Line 38:
| style="width:20%;" | [[File:Portrait placeholder.png |x50px|link={{{party2-cand1}}}]]
| style="width:20%;" | [[File:Portrait placeholder.png |x50px|link={{{party2-cand1}}}]]
|}
|}
|
|
|
|}
|}

Revision as of 14:56, 9 March 2025

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

{{{party3}}}   {{{party3}}}:

{{{party3votes}}}

<div style="padding:0; background-color:

  1. 566573; width:Expression error: Unrecognized punctuation character "{".px;"> Expression error: Unrecognized punctuation character "{".%
[[{{{party2-cand5}}}]] [[{{{party2-cand4}}}]] [[{{{party2-cand3}}}]] [[{{{party2-cand2}}}]] [[{{{party2-cand1}}}]]
link={{{party2-cand5}}} link={{{party2-cand4}}} link={{{party2-cand3}}} link={{{party2-cand2}}} link={{{party2-cand1}}}