Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:VoteSummary: Difference between revisions

Template page
Shane (talk | contribs)
mNo edit summary
Shane (talk | contribs)
mNo edit summary
Line 9: Line 9:
{{#ifeq:{{{keep|0}}}|0|| {{!}} {{keep}} Votes}}
{{#ifeq:{{{keep|0}}}|0|| {{!}} {{keep}} Votes}}
{{#ifeq:{{{delete|0}}}|0|| {{!}} {{delete}} Votes}} |- valign="top"
{{#ifeq:{{{delete|0}}}|0|| {{!}} {{delete}} Votes}} |- valign="top"
{{#ifeq:{{{support|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{support}}} / ({{{totalvotes}}} - {{{abstain}}})) * 100}} >= 80}}|1|class="infoboxheader"}} align="center" {{!}} {{{support}}} ({{roundup|{{#expr:({{{support}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{support|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{support}}} / ({{{totalvotes}}} - {{{abstain}}} - {{{neutral}}})) * 100}} >= 80}}|1|class="infoboxheader"}} align="center" {{!}} {{{support}}} ({{roundup|{{#expr:({{{support}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{oppose|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{oppose}}} / ({{{totalvotes}}} - {{{abstain}}})) * 100}} >= 80}}|1|class="infoboxheader"}} align="center" {{!}} {{{oppose}}} ({{roundup|{{#expr:({{{oppose}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{oppose|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{oppose}}} / ({{{totalvotes}}} - {{{abstain}}} - {{{neutral}}})) * 100}} >= 80}}|1|class="infoboxheader"}} align="center" {{!}} {{{oppose}}} ({{roundup|{{#expr:({{{oppose}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{neutral|0}}}|0|| {{!}} align="center" {{!}} {{{neutral}}} ({{roundup|{{#expr:({{{neutral}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{neutral|0}}}|0|| {{!}} align="center" {{!}} {{{neutral}}} ({{roundup|{{#expr:({{{neutral}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{abstain|0}}}|0|| {{!}} align="center" {{!}} {{{abstain}}} ({{roundup|{{#expr:({{{abstain}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{abstain|0}}}|0|| {{!}} align="center" {{!}} {{{abstain}}} ({{roundup|{{#expr:({{{abstain}}} / {{{totalvotes}}}) * 100}}}}%) }}

Revision as of 21:14, 15 May 2008

This template is used by the Vote Bot is displaying the votes that tallied. It will only show base on what is greater than 0.

Example Code & Output

{{VoteSummary
| page= Battlestar Wiki talk:Think Tank/Video Ext
| delete= 0
| keep= 0
| support= 15
| oppose=1
| neutral= 2
| abstain= 2
| totalvotes=20
| typetotal= 4
}}
Battlestar Wiki talk:Think Tank/Video Ext
Support Votes Oppose Votes Neutral Votes Abstain Votes
15 (75%) 1 (5%) 2 (10%) 2 (10%)
Total Votes: 20