Template:Poll option: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|! {{{1}}} | <includeonly>{{#if:{{{1|}}}|! {{{1}}} | ||
{{!}} <div style="width: 200px; height: 20px; background-color: #800;"><div style="position:absolute; width: {{#expr:{{{2}}}*2}}px; height: 20px; background-color: #080; z: 10;"></div><div style="position: absolute; width: 100%; color: white; z: 11;">{{#if:{{{4|}}}|'''{{{2}}}%'''|{{{2}}}%}}</div></div> | {{!}} <div style="width: 200px; height: 20px; background-color: #800;"><div style="position:absolute; width: {{#expr:{{{2}}}*2}}px; height: 20px; background-color: #080; z: 10;"></div><div style="position: absolute; width: 100%; color: white; z: 11;">{{#if:{{{4|}}}|'''{{{2}}}%'''|{{{2}}}%}}</div></div> | ||
{{!}} {{#if:{{{4|}}}|'''{{{3}}} | {{!}} {{#if:{{{4|}}}|'''{{{3}}}'''|{{{3}}}}} }}</includeonly><noinclude> | ||
==Info== | ==Info== |
Revision as of 08:34, June 1, 2016
Info
For use with the Template:Old poll. It populates a table's row with data about the option. Does nothing if the first parameter is empty. The first template is the option's name, second template is the percentage of votes, third is the number of votes, and fourth is whether this option is the winner or not.