Template:Poll option: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (I can't tell what's wrong...)
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}}}%{{#if:{{{4|}}}|'''}}</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|}}}|'''}} }}</includeonly><noinclude>
{{!}} {{#if:{{{4|}}}|'''{{{3}}}'''|{{{3}}}}} }}</includeonly><noinclude>


==Info==
==Info==

Revision as of 08:23, 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.