Template:Poll option: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Text replacement - "color: white" to "color: #fff") |
||
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;"></div><div style="position: absolute; color: | {{!}} <div style="width: 200px; height: 20px; background-color: #800;"><div style="position:absolute; width: {{#expr:{{{2}}}*2}}px; height: 20px; background-color: #080;"></div><div style="position: absolute; color: #fff;">{{#if:{{{4|}}}|'''{{{2}}}%'''|{{{2}}}%}}</div></div> | ||
{{!}} {{#if:{{{4|}}}|'''{{{3}}}'''|{{{3}}}}} }}</includeonly><noinclude> | {{!}} {{#if:{{{4|}}}|'''{{{3}}}'''|{{{3}}}}} }}</includeonly><noinclude> | ||
Latest revision as of 19:25, April 30, 2023
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.