Template:Election vote share: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
(Template for displaying vote share bars)
Tag: 2017 source edit
 
mNo edit summary
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#expr: {{{1|0}}} / {{{2|0}}} }}%<br><div style="box-sizing: border-box; border: 1px solid black; background: white; height: 1.15em;"><div style="background-color: {{{3|#109aed}}}; height: 100%; width: {{#expr: {{{1|0}}} / {{{2|0}}} }}%)"></div></div></includeonly>
<onlyinclude><includeonly>{{#expr: {{{1|0}}} / {{{2|1}}} * 100 round 2 }}%<br><div style="box-sizing: border-box; border: 1px solid black; background: white; height: 1.15em;"><div style="background-color: {{{3|#109aed}}}; height: 100%; width: calc(100% * {{{1|0}}} / {{{2|1}}})"></div></div></includeonly></onlyinclude>

Latest revision as of 09:35, 9 February 2022