Template:Poll aux: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Ugh.)
(The "previous poll section" parameter isn't even needed, it seems. Other than that, I renamed the parameters to make them more immediately obvious when using the template.)
Line 6: Line 6:
! Previous poll
! Previous poll
|-
|-
| [[Pikipedia:Poll#{{#if:{{{psection|}}}|{{{psection}}}|{{{ptitle}}}}} | {{{ptitle}}}]]
| [[Pikipedia:Poll#{{{prevtitle}}} | {{{prevtitle}}}]]
|-
|-
| Winner: '''{{{pwinner}}}''' ({{{pwinnerp}}}% votes out of {{{poptions}}} options)
| Winner: '''{{{prevwinner}}}''' ({{{prevwinnerp}}}% votes out of {{{prevoptions}}} options)
|}</includeonly><noinclude>
|}</includeonly><noinclude>


Line 22: Line 22:
| No ||  || If specified, this is the maximum number of options the user can pick.
| No ||  || If specified, this is the maximum number of options the user can pick.
|-
|-
! ptitle
! prevtitle
| '''Yes''' ||  || Title of the previous poll.
| '''Yes''' ||  || Title of the previous poll.
|-
|-
! psection
! prevwinner
| No ||  || Name of the previous poll's section on [[Pikipedia:Poll]]. Use this when the title has italics (because the section name doesn't technically have italics in it). If not specified, it'll be the same as {{{ptitle}}}.
|-
! pwinner
| '''Yes''' ||  || Winner of the previous poll.
| '''Yes''' ||  || Winner of the previous poll.
|-
|-
! pwinnerp
! prevwinnerp
| '''Yes''' ||  || Percentage of votes that the winner of the previous poll got.
| '''Yes''' ||  || Percentage of votes that the winner of the previous poll got.
|-
|-
! poptions
! prevoptions
| '''Yes''' ||  || Number of options that the previous poll had.
| '''Yes''' ||  || Number of options that the previous poll had.
|}
|}
Line 41: Line 38:
<pre>
<pre>
{{poll aux
{{poll aux
|id       =  
|id         =  
|max     =  
|max         =  
|ptitle   =  
|prevtitle   =  
|psection =
|prevwinner =  
|pwinner =  
|prevwinnerp =  
|pwinnerp =  
|prevoptions =  
|poptions =  
}}
}}
</pre>
</pre>

Revision as of 07:31, February 1, 2017


This template populates the poll data to be used on Template:Poll. It is only an auxiliary template that makes it easier to update to a new poll.

Parameter Mandatory Default Detailed description
id Yes Poll ID used on polldaddy.com.
max No If specified, this is the maximum number of options the user can pick.
prevtitle Yes Title of the previous poll.
prevwinner Yes Winner of the previous poll.
prevwinnerp Yes Percentage of votes that the winner of the previous poll got.
prevoptions Yes Number of options that the previous poll had.

Skeleton

{{poll aux
|id          = 
|max         = 
|prevtitle   = 
|prevwinner  = 
|prevwinnerp = 
|prevoptions = 
}}