Template:Old poll: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
m (Changed the older polls link.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>''[https://poll.fm/{{{id}}}/ Crowdsignal page]. {{{begin}}} &ndash; {{{end}}}. {{{votes}}} total votes.{{#if:{{{max|}}}|&#32;Voters can pick up to {{{max}}} options.|&#32;Voters can only pick one option.}}''
<includeonly>''[https://poll.fm/{{{id}}} Crowdsignal page]. {{{begin}}} &ndash; {{{end}}}. {{{votes}}} total votes.{{#if:{{{max|}}}|&#32;Voters can pick up to {{{max}}} options. Note that the percentages are of the number of votes, not the number of voters.|&#32;Voters can only pick one option.}}''


{| class="wikitable"
{| class="wikitable"
Line 24: Line 24:
|-
|-
{{poll option|1={{{19|}}}|2={{#expr:({{{20}}} / {{{votes}}} * 100) round 1}}|3={{{20}}}|4={{#ifeq:{{{wvotes}}}|{{{20}}}|y}}}}
{{poll option|1={{{19|}}}|2={{#expr:({{{20}}} / {{{votes}}} * 100) round 1}}|3={{{20}}}|4={{#ifeq:{{{wvotes}}}|{{{20}}}|y}}}}
|}
|}</includeonly><noinclude>
</includeonly><noinclude>
 
==Info==
==Info==
Use this template to provide info about an old poll. To be used on [[Pikipedia:Poll]].
Use this template to provide info about an old poll. To be used on [[Pikipedia:Poll/older polls]].


{| class="wikitable"
{| class="wikitable"
Line 51: Line 51:
|-
|-
! max
! max
| No ||  || If users can vote more than one option, specify that number here.
| No ||  || If users can vote for more than one option, specify the maximum number here.
|-
|-
! wvotes
! wvotes
Line 58: Line 58:


==Skeleton==
==Skeleton==
<pre>{{old poll
<pre>
{{old poll
|id    =  
|id    =  
|begin  = {{date|||}}
|begin  = {{date|||}}
Line 66: Line 67:
|wvotes =  
|wvotes =  
|...
|...
}}</pre>
}}
</pre>


[[Category:Utility templates]]</noinclude>
[[Category:Utility templates]]</noinclude>

Latest revision as of 04:37, April 14, 2024


Info

Use this template to provide info about an old poll. To be used on Pikipedia:Poll/older polls.

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 crowdsignal.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 for more than one option, specify the maximum number here.
wvotes Yes Number of votes of the winner option(s).

Skeleton

{{old poll
|id     = 
|begin  = {{date|||}}
|end    = {{date|||}}
|votes  = 
|max    = 
|wvotes = 
|...
}}