Template:Old poll: Difference between revisions
Jump to navigation
Jump to search
(Decimal place rounding.) |
m (Tweaks.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
''[https://polldaddy.com/poll/{{{id}}}/ Polldaddy link] {{{begin}}} – {{{end}}}. {{{votes}}} total votes.{{#if:{{{max|}}}|& | ''[https://polldaddy.com/poll/{{{id}}}/ Polldaddy link] {{{begin}}} – {{{end}}}. {{{votes}}} total votes.{{#if:{{{max|}}}| Voters can pick up to {{{max}}} options.}}'' | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 6: | Line 6: | ||
! Percentage || Votes | ! Percentage || Votes | ||
|- | |- | ||
{{poll option|1={{{1|}}}|2={{#expr:({{{2}}} / {{{votes}}} * 100) round 1}}|3={{{2}}}|4={{#ifeq:{{{ | {{poll option|1={{{1|}}}|2={{#expr:({{{2}}} / {{{votes}}} * 100) round 1}}|3={{{2}}}|4={{#ifeq:{{{wvotes}}}|{{{2}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{3|}}}|2={{#expr:({{{4}}} / {{{votes}}} * 100) round 1}}|3={{{4}}}|4={{#ifeq:{{{ | {{poll option|1={{{3|}}}|2={{#expr:({{{4}}} / {{{votes}}} * 100) round 1}}|3={{{4}}}|4={{#ifeq:{{{wvotes}}}|{{{4}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{5|}}}|2={{#expr:({{{6}}} / {{{votes}}} * 100) round 1}}|3={{{6}}}|4={{#ifeq:{{{ | {{poll option|1={{{5|}}}|2={{#expr:({{{6}}} / {{{votes}}} * 100) round 1}}|3={{{6}}}|4={{#ifeq:{{{wvotes}}}|{{{6}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{7|}}}|2={{#expr:({{{8}}} / {{{votes}}} * 100) round 1}}|3={{{8}}}|4={{#ifeq:{{{ | {{poll option|1={{{7|}}}|2={{#expr:({{{8}}} / {{{votes}}} * 100) round 1}}|3={{{8}}}|4={{#ifeq:{{{wvotes}}}|{{{8}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{9|}}}|2={{#expr:({{{10}}} / {{{votes}}} * 100) round 1}}|3={{{10}}}|4={{#ifeq:{{{ | {{poll option|1={{{9|}}}|2={{#expr:({{{10}}} / {{{votes}}} * 100) round 1}}|3={{{10}}}|4={{#ifeq:{{{wvotes}}}|{{{10}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{11|}}}|2={{#expr:({{{12}}} / {{{votes}}} * 100) round 1}}|3={{{12}}}|4={{#ifeq:{{{ | {{poll option|1={{{11|}}}|2={{#expr:({{{12}}} / {{{votes}}} * 100) round 1}}|3={{{12}}}|4={{#ifeq:{{{wvotes}}}|{{{12}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{13|}}}|2={{#expr:({{{14}}} / {{{votes}}} * 100) round 1}}|3={{{14}}}|4={{#ifeq:{{{ | {{poll option|1={{{13|}}}|2={{#expr:({{{14}}} / {{{votes}}} * 100) round 1}}|3={{{14}}}|4={{#ifeq:{{{wvotes}}}|{{{14}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{15|}}}|2={{#expr:({{{16}}} / {{{votes}}} * 100) round 1}}|3={{{16}}}|4={{#ifeq:{{{ | {{poll option|1={{{15|}}}|2={{#expr:({{{16}}} / {{{votes}}} * 100) round 1}}|3={{{16}}}|4={{#ifeq:{{{wvotes}}}|{{{16}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{17|}}}|2={{#expr:({{{18}}} / {{{votes}}} * 100) round 1}}|3={{{18}}}|4={{#ifeq:{{{ | {{poll option|1={{{17|}}}|2={{#expr:({{{18}}} / {{{votes}}} * 100) round 1}}|3={{{18}}}|4={{#ifeq:{{{wvotes}}}|{{{18}}}|y}}}} | ||
|- | |- | ||
{{poll option|1={{{19|}}}|2={{#expr:({{{20}}} / {{{votes}}} * 100) round 1}}|3={{{20}}}|4={{#ifeq:{{{ | {{poll option|1={{{19|}}}|2={{#expr:({{{20}}} / {{{votes}}} * 100) round 1}}|3={{{20}}}|4={{#ifeq:{{{wvotes}}}|{{{20}}}|y}}}} | ||
|} | |} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Line 55: | Line 55: | ||
| No || || If users can vote more than one option, specify that number here. | | No || || If users can vote more than one option, specify that number here. | ||
|- | |- | ||
! | ! wvotes | ||
| '''Yes''' || || Number of votes of the winner option(s). | | '''Yes''' || || Number of votes of the winner option(s). | ||
|} | |} | ||
Line 62: | Line 62: | ||
<pre> | <pre> | ||
{{old poll | {{old poll | ||
|id | |id = | ||
|begin = {{date|||}} | |begin = {{date|||}} | ||
|end | |end = {{date|||}} | ||
|votes = | |votes = | ||
|max | |max = | ||
| | |wvotes = | ||
|... | |... | ||
}} | }} |
Revision as of 08:50, June 1, 2016
Info
Use this template to provide info about an old poll. To be used on Pikipedia:Poll.
Parameter | Mandatory | Default | Detailed description |
---|---|---|---|
1, 3, 5, ..., 19 | No | Title of option 1, option 2, etc., up to 10 options. | |
2, 4, 6, ..., 20 | No | Number of votes for option 1, option 2, etc., up to 10 options. | |
id | Yes | Poll ID on polldaddy.com. | |
begin | Yes | Begin date for this poll. Use {{date}}. | |
end | Yes | End date for this poll. Use {{date}}. | |
votes | Yes | Total number of votes it got. | |
max | No | If users can vote more than one option, specify that number here. | |
wvotes | Yes | Number of votes of the winner option(s). |
Skeleton
{{old poll |id = |begin = {{date|||}} |end = {{date|||}} |votes = |max = |wvotes = |... }}