Template:Poll option: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "color: white" to "color: #fff")
 
(3 intermediate revisions by 2 users not shown)
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;"></div><div style="position: absolute; color: #fff;">{{#if:{{{4|}}}|'''{{{2}}}%'''|{{{2}}}%}}</div></div>
{{!}} {{#if:{{{4|}}}|'''{{{3}}}<nowiki></nowiki>'''|{{{3}}}}} }}</includeonly><noinclude>
{{!}} {{#if:{{{4|}}}|'''{{{3}}}'''|{{{3}}}}} }}</includeonly><noinclude>


==Info==
==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.
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.


[[Category:Utility templates]]
[[Category:Utility templates]]</noinclude>
</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.