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
 
mNo edit summary
Tag: 2017 source edit
Line 1: Line 1:
<includeonly>
<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|{{#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|{{#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>
| {{{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>
</includeonly>

Revision as of 12:37, 8 February 2022