Template:VoteSummary: Difference between revisions

Template page
(New page: <includeonly>{| class="messagebox" |- style="text-align: center;" ! class="" colspan="{{{typetotal}}}" | [[{{{page}}}]] |- valign="top" align="center" {{#ifeq:{{{support|0}}}|0|| {{!}} {{s...)
 
mNo edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="messagebox"
<includeonly>{| class="messagebox"
|- style="text-align: center;"
|- style="text-align: center;"
! class="" colspan="{{{typetotal}}}" | [[{{{page}}}]]
! class="infoboxheader" colspan="{{{typetotal}}}" | [[{{{page}}}]]
|- valign="top" align="center"
|- valign="top" align="center"
{{#ifeq:{{{support|0}}}|0|| {{!}} {{support}} Votes}}
{{#ifeq:{{{support|0}}}|0|| {{!}} {{support}} Votes}}
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|| {{!}} align="center" {{!}} {{{support}}} ({{roundup|{{#expr:({{{support}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{support|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{support}}} / {{{totalvotes}}}) * 100}} >= 80}}|1|class="infoboxheader"}} align="center" {{!}} {{{support}}} ({{roundup|{{#expr:({{{support}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{oppose|0}}}|0|| {{!}} align="center" {{!}} {{{oppose}}} ({{roundup|{{#expr:({{{oppose}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{oppose|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{oppose}}} / {{{totalvotes}}}) * 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}}}}%) }}
{{#ifeq:{{{keep|0}}}|0|| {{!}} align="center" {{!}} {{{keep}}} ({{roundup|{{#expr:({{{keep}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{keep|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{keep}}} / {{{totalvotes}}} * 100}}) >= 80}}|1|class="infoboxheader"}} align="center" {{!}} {{{keep}}} ({{roundup|{{#expr:({{{keep}}} / {{{totalvotes}}}) * 100}}}}%) }}
{{#ifeq:{{{delete|0}}}|0|| {{!}} align="center" {{!}} {{{delete}}} ({{roundup|{{#expr:({{{delete}}} / {{{totalvotes}}}) * 100}}}}%) }} |}</includeonly><noinclude>
{{#ifeq:{{{delete|0}}}|0|| {{!}} {{#ifeq:{{#expr:{{#expr:({{{delete}}} / {{{totalvotes}}} * 100}}) >= 80}}|1|class="infoboxheader"}} align="center" {{!}} {{{delete}}} ({{roundup|{{#expr:({{{delete}}} / {{{totalvotes}}}) * 100}}}}%) }} |- style="text-align: center;"
This template is used by the [[User:VoteBot|Vote Bot]] is displaying the votes that tallied. It will only show base on what is greater than 0.
! class="infoboxheader" colspan="{{{typetotal}}}" | Total Votes: {{{totalvotes}}}
|}</includeonly><noinclude>
This template is used by the [[User:VoteBot|Vote Bot]] is displaying the votes that tallied. It will only show base on what is greater than 0. A passing grade for the Battlestar Wiki is measured at 80% or higher, however, all [[BW:RFA]]'s and [[BW:RFB]]'s still have to be approved even if support is over or at 80%. All vote summaries get placed inside {{tl|votes}} on the [[BW:VOTE]] page. Only pages tagged with {{tl|vote-bot}} will get processed.
== Example Code & Output ==
== Example Code & Output ==
<pre>
<pre>
Line 22: Line 24:
| delete= 0
| delete= 0
| keep= 0
| keep= 0
| support= 8
| support= 1
| oppose=1
| oppose=1
| neutral= 2
| neutral= 2
| abstain= 2
| abstain= 2
| totalvotes=13
| totalvotes= 6
| typetotal= 4
| typetotal= 4
}}
}}
Line 34: Line 36:
| delete= 0
| delete= 0
| keep= 0
| keep= 0
| support= 8
| support= 1
| oppose=1
| oppose=1
| neutral= 2
| neutral= 2
| abstain= 2
| abstain= 2
| totalvotes=13
| totalvotes=6
| typetotal= 4
| typetotal= 4
}}
}}
[[Category:Poll Templates]]
[[Category:Poll Templates]]
</noinclude>
</noinclude>

Latest revision as of 03:40, 16 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. A passing grade for the Battlestar Wiki is measured at 80% or higher, however, all BW:RFA's and BW:RFB's still have to be approved even if support is over or at 80%. All vote summaries get placed inside {{votes}} on the BW:VOTE page. Only pages tagged with {{vote-bot}} will get processed.

Example Code & Output

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