Template:TSP Election/result/candidate: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
m (Fix percentage error)
Tag: 2017 source edit
m (CSS fix)
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>|- {{#ifeq: {{{1|}}} | win | style="background: #d2ffd2;" | {{#ifeq: {{{1|}}} | elim | style="background: #ffcccc;" |}} }}
<onlyinclude><includeonly>|- {{#ifeq: {{{1|}}} | win | style="background: #d2ffd2;" | {{#ifeq: {{{1|}}} | elim | style="background: #ffcccc;" |}} }}
| title="{{{party|Independent}}}" style="background: #{{TSP Election/meta/party|{{{party|Independent}}}}};" | &nbsp;
| title="{{{party|Independent}}}" style="background: #{{TSP Election/meta/party|{{{party|Independent}}}}}; width: 5px;" | &nbsp;
| style="text-align: left;" | {{#ifeq: {{{2|}}} | incumbent | {{#ifeq: {{{1|}}} | win | '''{{font color|green|&check;}}''' | {{#ifeq: {{{1|}}} | elim | '''{{font color|red|&cross;}}''' | {{#ifeq: {{{1|}}} | lose | '''{{font color|red|&cross;}}''' |}} }} }} |}} {{{name|}}}
| style="text-align: left;" | {{#ifeq: {{{2|}}} | incumbent | {{#ifeq: {{{1|}}} | win | '''{{font color|green|&check;}}''' | {{#ifeq: {{{1|}}} | elim | '''{{font color|red|&cross;}}''' | {{#ifeq: {{{1|}}} | lose | '''{{font color|red|&cross;}}''' |}} }} }} |}} {{{name|}}}
| {{{votes|0}}}
| {{{votes|0}}}
| <div style="box-sizing: border-box; border: 1px solid black; background: white; height: 1.3em; width: 100px; text-shadow: 0 0 0.2em white; text-align: center;"><div style="background-color: #{{TSP Election/meta/party|{{{party|Independent}}}}}; height: 100%; width: {{{percentage|0}}}%;">{{{percentage|0}}}%</div></div></includeonly></onlyinclude>
| style="width: 103px;" | {{TSP Election/meta/votebar|{{{percentage|0}}}|{{TSP Election/meta/party|{{{party|Independent}}}}}}}</includeonly></onlyinclude>

Latest revision as of 13:52, 11 November 2022