Difference between revisions of "Template:Abo"
From Stars!wiki
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <noinclude>Template to display results from a survey on which cheats should be banned. |
− | {| | + | |
− | |Allow || {{{1}}} || {{#expr:trunc(({{{1}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | + | Usage:<nowiki>{{abo| (votes for allow) | (votes for ban) | (votes for other) | (imagefilename)}}</nowiki> |
+ | |||
+ | eg: <nowiki>{{abo|4|6|10|Chaffresponse.png}}</nowiki> produces: {{abo|4|6|10|Chaffresponse.png}}</noinclude><includeonly> | ||
+ | {{#if: {{{4}}}|[[Image:{{{4}}}{{!}}left]]|}} | ||
+ | {|width=100px | ||
+ | |Allow: | ||
+ | |align='right'| '''{{{1}}}''' | ||
+ | |align='right'| {{#expr:trunc(({{{1}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | ||
|- | |- | ||
− | |Ban: || {{{2}}} || {{#expr:trunc(({{{2}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | + | |Ban: |
+ | |align='right'| '''{{{2}}}''' | ||
+ | |align='right'| {{#expr:trunc(({{{2}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | ||
|- | |- | ||
− | |Other: || {{{3}}} || {{#expr:trunc(({{{3}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | + | |Other: |
− | |}</includeonly> | + | |align='right'| '''{{{3}}}''' |
+ | |align='right'| {{#expr:trunc(({{{3}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | ||
+ | |}<br clear=left></includeonly> |
Latest revision as of 18:24, 11 January 2012
Template to display results from a survey on which cheats should be banned.
Usage:{{abo| (votes for allow) | (votes for ban) | (votes for other) | (imagefilename)}}
eg: {{abo|4|6|10|Chaffresponse.png}} produces:
Allow: | 4 | 20% |
Ban: | 6 | 30% |
Other: | 10 | 50% |