Template:Election candidate results: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
m (Fixed #ifeq condition)
Tag: 2017 source edit
m (CSS fix)
Tag: 2017 source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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;" |}} }}
| 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'' |}} }}}
| 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|}}}
| {{{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></includeonly>
| style="text-align: left;" | {{Election vote share | {{{vote|0}}} | {{{ballots|0}}} | {{{color|#109aed}}} }}</includeonly></onlyinclude>

Latest revision as of 10:22, 9 February 2022