Difference between revisions of "Template:Abo"

From Stars!wiki
Jump to: navigation, search
Line 5: Line 5:
 
eg: <nowiki>{{abo|4|6|10}}</nowiki> produces: {{abo|4|6|10}}</noinclude><includeonly>
 
eg: <nowiki>{{abo|4|6|10}}</nowiki> produces: {{abo|4|6|10}}</noinclude><includeonly>
 
{|
 
{|
||Allow:  
+
|Allow:  
 
|align='right'| '''{{{1}}}'''  
 
|align='right'| '''{{{1}}}'''  
 
|align='right'| {{#expr:trunc(({{{1}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}%
 
|align='right'| {{#expr:trunc(({{{1}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}%
 
|-
 
|-
||Ban:  
+
|Ban:  
 
|align='right'| '''{{{2}}}'''  
 
|align='right'| '''{{{2}}}'''  
 
|align='right'| {{#expr:trunc(({{{2}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}%
 
|align='right'| {{#expr:trunc(({{{2}}}*100)/({{{1}}}+{{{2}}}+{{{3}}}))}}%
 
|-
 
|-
||Other:  
+
|Other:  
 
|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:03, 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) }}

eg: {{abo|4|6|10}} produces: [[Image:{{{4}}}|left]]

Allow: 4 20%
Ban: 6 30%
Other: 10 50%