Template:Candi-GRC: Difference between revisions

From PoliticalSG
(Created page with "{| style="width:100%;" | | style="vertical-align:bottom;"| x50px|link={{{party1-cand1}}} | | |- | style="height:20px; padding:0;" | {| | '''[[{{{party1-cand1}}}]]''' | {{#if:{{{party1-cand2}}} | '''[[{{{party1-cand2}}}]]'''| }} | {{#if:{{{party1-cand3}}} | '''[[{{{party1-cand3}}}]]'''| }} | {{#if:{{{party1-cand4}}} | '''[[{{{party1-cand4}}}]]'''| }} | {{#if:{{{party1-cand5}}} | '''[[{{{party1-cand5}}}]]'''| }} |} | style="height:20px;...")
 
mNo edit summary
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="width:100%;" |
{| style="width:100%; padding:0;"
| style="vertical-align:bottom;"| [[File:Portrait placeholder.png |x50px|link={{{party1-cand1}}}]]
| style=""|
|
{|style="width:100%;"
|
| style="vertical-align:top;" |{{#if:{{{party1-cand5}}} | [[File:{{#if:{{{party1-5foto}}}|{{{party1-5foto}}}|Portrait placeholder.png}} |x50px|link={{{party1-cand5}}}]]</br><small>'''[[{{{party1-cand5}}}]]'''</small>| }}
| style="vertical-align:top;" |{{#if:{{{party1-cand4}}} | [[File:{{#if:{{{party1-4foto}}}|{{{party1-4foto}}}|Portrait placeholder.png}} |x50px|link={{{party1-cand4}}}]]</br><small>'''[[{{{party1-cand4}}}]]'''</small>| }}
| style="vertical-align:top;" | [[File:{{#if:{{{party1-3foto}}}|{{{party1-3foto}}}|Portrait placeholder.png}} |x50px|link={{{party1-cand3}}}]]</br><small>'''[[{{{party1-cand3}}}]]'''</small>
| style="vertical-align:top;" | [[File:{{#if:{{{party1-2foto}}}|{{{party1-2foto}}}|Portrait placeholder.png}} |x50px|link={{{party1-cand2}}}]]</br><small>'''[[{{{party1-cand2}}}]]'''</small>
| style="vertical-align:top;" | [[File:{{#if:{{{party1-1foto}}}|{{{party1-1foto}}}|Portrait placeholder.png}} |x50px|link={{{party1-cand1}}}]]</br><small>'''[[{{{party1-cand1}}}]]'''</small>
|}
|-
|-
| style="height:20px; padding:0;" |
| style="vertical-align:top;"|
{|
{|style="width:100%;"  
| '''[[{{{party1-cand1}}}]]'''  
| style="vertical-align:top;" |{{#if:{{{party2-cand5}}} | [[File:{{#if:{{{party2-5foto}}}|{{{party2-5foto}}}|Portrait placeholder.png}} |x50px|link={{{party2-cand5}}}]]</br><small>'''[[{{{party2-cand5}}}]]'''</small>| }}
| {{#if:{{{party1-cand2}}} | '''[[{{{party1-cand2}}}]]'''| }}
| style="vertical-align:top;" |{{#if:{{{party2-cand4}}} | [[File:{{#if:{{{party2-4foto}}}|{{{party2-4foto}}}|Portrait placeholder.png}} |x50px|link={{{party2-cand4}}}]]</br><small>'''[[{{{party2-cand4}}}]]'''</small>| }}
| {{#if:{{{party1-cand3}}} | '''[[{{{party1-cand3}}}]]'''| }}
| style="vertical-align:top;" | [[File:{{#if:{{{party2-3foto}}}|{{{party2-3foto}}}|Portrait placeholder.png}} |x50px|link={{{party2-cand3}}}]]</br><small>'''[[{{{party2-cand3}}}]]'''</small>
| {{#if:{{{party1-cand4}}} | '''[[{{{party1-cand4}}}]]'''| }}
| style="vertical-align:top;" | [[File:{{#if:{{{party2-2foto}}}|{{{party2-2foto}}}|Portrait placeholder.png}} |x50px|link={{{party2-cand2}}}]]</br><small>'''[[{{{party2-cand2}}}]]'''</small>
| {{#if:{{{party1-cand5}}} | '''[[{{{party1-cand5}}}]]'''| }}
| style="vertical-align:top;" | [[File:{{#if:{{{party2-1foto}}}|{{{party2-1foto}}}|Portrait placeholder.png}} |x50px|link={{{party2-cand1}}}]]</br><small>'''[[{{{party2-cand1}}}]]'''</small>
|}
|}
| style="height:20px; align:right; text-align:justify; vertical-align:bottom; padding:0; width:150px;" | {{#switch:{{{party1}}}
| PAP=&nbsp; [[file:PAP logo.png| 30px]] |party1color=#e5e7e9
| WP= &nbsp; [[file:WP logo.png| 30px]] {{{party1color| #aed6f1}}}
| PSP= &nbsp; [[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="vertical-align:top;"|
{|
{|style="width:100%;"  
| '''[[{{{party2-cand1}}}]]'''  
| style="vertical-align:top;" |{{#if:{{{party3-cand5}}} | [[File:{{#if:{{{party3-5foto}}}|{{{party3-5foto}}}|Portrait placeholder.png}} |x50px|link={{{party3-cand5}}}]]</br><small>'''[[{{{party3-cand5}}}]]'''</small>| }}
| {{#if:{{{party2-cand2}}} | '''[[{{{party2-cand2}}}]]'''| }}
| style="vertical-align:top;" |{{#if:{{{party3-cand4}}} | [[File:{{#if:{{{party3-4foto}}}|{{{party3-4foto}}}|Portrait placeholder.png}} |x50px|link={{{party3-cand4}}}]]</br><small>'''[[{{{party3-cand4}}}]]'''</small>| }}
| {{#if:{{{party2-cand3}}} | '''[[{{{party2-cand3}}}]]'''| }}
| style="vertical-align:top;" |{{#if:{{{party3-cand3}}} | [[File:{{#if:{{{party3-3foto}}}|{{{party3-4foto}}}|Portrait placeholder.png}} |x50px|link={{{party3-cand3}}}]]</br><small>'''[[{{{party3-cand3}}}]]'''</small>| }}
| {{#if:{{{party2-cand4}}} | '''[[{{{party2-cand4}}}]]'''| }}
| style="vertical-align:top;" |{{#if:{{{party3-cand2}}} | [[File:{{#if:{{{party3-2foto}}}|{{{party3-2foto}}}|Portrait placeholder.png}} |x50px|link={{{party3-cand2}}}]]</br><small>'''[[{{{party3-cand2}}}]]'''</small>| }}
| {{#if:{{{party2-cand5}}} | '''[[{{{party2-cand5}}}]]'''| }}
| style="vertical-align:top;" |{{#if:{{{party3-cand1}}} | [[File:{{#if:{{{party3-1foto}}}|{{{party3-1foto}}}|Portrait placeholder.png}} |x50px|link={{{party3-cand1}}}]]</br><small>'''[[{{{party3-cand1}}}]]'''</small>| }}
|}
|}
| 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;"| [[File:Portrait placeholder.png |x50px|link={{{party2-cand1}}}]]
|
|
|}
|}
<noinclude>
''How to use this template: See [[Template:Candi-GRC/doc]]''
[[Category:Templates]]
</noinclude>

Latest revision as of 21:27, 9 March 2025

[[File:{{{party1-5foto}}} |x50px|link={{{party1-cand5}}}]]
[[{{{party1-cand5}}}]]
[[File:{{{party1-4foto}}} |x50px|link={{{party1-cand4}}}]]
[[{{{party1-cand4}}}]]
[[File:{{{party1-3foto}}} |x50px|link={{{party1-cand3}}}]]
[[{{{party1-cand3}}}]]
[[File:{{{party1-2foto}}} |x50px|link={{{party1-cand2}}}]]
[[{{{party1-cand2}}}]]
[[File:{{{party1-1foto}}} |x50px|link={{{party1-cand1}}}]]
[[{{{party1-cand1}}}]]
[[File:{{{party2-5foto}}} |x50px|link={{{party2-cand5}}}]]
[[{{{party2-cand5}}}]]
[[File:{{{party2-4foto}}} |x50px|link={{{party2-cand4}}}]]
[[{{{party2-cand4}}}]]
[[File:{{{party2-3foto}}} |x50px|link={{{party2-cand3}}}]]
[[{{{party2-cand3}}}]]
[[File:{{{party2-2foto}}} |x50px|link={{{party2-cand2}}}]]
[[{{{party2-cand2}}}]]
[[File:{{{party2-1foto}}} |x50px|link={{{party2-cand1}}}]]
[[{{{party2-cand1}}}]]
[[File:{{{party3-5foto}}} |x50px|link={{{party3-cand5}}}]]
[[{{{party3-cand5}}}]]
[[File:{{{party3-4foto}}} |x50px|link={{{party3-cand4}}}]]
[[{{{party3-cand4}}}]]
[[File:{{{party3-4foto}}} |x50px|link={{{party3-cand3}}}]]
[[{{{party3-cand3}}}]]
[[File:{{{party3-2foto}}} |x50px|link={{{party3-cand2}}}]]
[[{{{party3-cand2}}}]]
[[File:{{{party3-1foto}}} |x50px|link={{{party3-cand1}}}]]
[[{{{party3-cand1}}}]]

How to use this template: See Template:Candi-GRC/doc