Template:Election candidate results: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
(Template for a candidate's result in an election results table)
Tag: 2017 source edit
 
m (CSS fix)
Tag: 2017 source edit
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<onlyinclude><includeonly>{{#ifeq: {{{1|}}} | win | style="background: #d2ffd2;" | {{#ifeq: {{{1|}}} | elim | style="background: #ffcccc;" |}} }}
|-{{#ifeq: {{{1|}}} | win | style="background: #d2ffd2;" | {{#ifeq: {{{1|}}} | elim | style="background: #ffcccc;"}} }}
| 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|{{#ifeq: {{{2|}}} | RON | ''Re-Open Nominations'' |}} }}}
| {{{vote|0}}}
| {{{vote|0}}}
| {{{percent|0}}}%<br><div style="box-sizing: border-box; border: 1px solid #aaa; background: white; height: 1.15em;"><div style="background-color: #109aed; height: 100%; width: {{{percent|0}}}%"></div></div>
| style="text-align: left;" | {{Election vote share | {{{vote|0}}} | {{{ballots|0}}} | {{{color|#109aed}}} }}</includeonly></onlyinclude>
</includeonly>

Latest revision as of 10:22, 9 February 2022