Difference between revisions of "Template:Abo"
From Stars!wiki
Line 4: | Line 4: | ||
eg: <nowiki>{{abo|4|6|10|Chaffresponse.png}}</nowiki> produces: {{abo|4|6|10|Chaffresponse.png}}</noinclude><includeonly> | eg: <nowiki>{{abo|4|6|10|Chaffresponse.png}}</nowiki> produces: {{abo|4|6|10|Chaffresponse.png}}</noinclude><includeonly> | ||
− | {| | + | {| |
|- | |- | ||
− | + | |{{#if: {{{4}}}|[[File:{{{4}}}]]|}} | |
+ | {|width=100px | ||
|Allow: | |Allow: | ||
|align='right'| '''{{{1}}}''' | |align='right'| '''{{{1}}}''' | ||
Line 18: | Line 19: | ||
|align='right'| '''{{{3}}}''' | |align='right'| '''{{{3}}}''' | ||
|align='right'| {{#expr:trunc(({{{3}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | |align='right'| {{#expr:trunc(({{{3}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}% | ||
+ | |} | ||
|}</includeonly> | |}</includeonly> |
Revision as of 03:16, 14 March 2011
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% |