Template:TSP Election/result/candidate: Difference between revisions
Jump to navigation
Jump to search
(New template for regional election results) Tag: 2017 source edit |
m (Fix percentage error) Tag: 2017 source edit |
||
Line 3: | Line 3: | ||
| style="text-align: left;" | {{#ifeq: {{{2|}}} | incumbent | {{#ifeq: {{{1|}}} | win | '''{{font color|green|✓}}''' | {{#ifeq: {{{1|}}} | elim | '''{{font color|red|✗}}''' | {{#ifeq: {{{1|}}} | lose | '''{{font color|red|✗}}''' |}} }} }} |}} {{{name|}}} | | style="text-align: left;" | {{#ifeq: {{{2|}}} | incumbent | {{#ifeq: {{{1|}}} | win | '''{{font color|green|✓}}''' | {{#ifeq: {{{1|}}} | elim | '''{{font color|red|✗}}''' | {{#ifeq: {{{1|}}} | lose | '''{{font color|red|✗}}''' |}} }} }} |}} {{{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;"><div style="background-color: #{{TSP Election/meta/party|{{{party|Independent}}}}}; height: 100%; width: {{{percentage|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> |