Template:Poll aux: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(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.)
(...And then MediaWiki decides to change its mind.)
Line 6: Line 6:
! Previous poll
! Previous poll
|-
|-
| [[Pikipedia:Poll#{{{prevtitle}}} | {{{prevtitle}}}]]
| [[Pikipedia:Poll#{{#if:{{{prevsection|}}}|{{{prevsection}}}|{{{prevtitle}}}}} | {{{prevtitle}}}]]
|-
|-
| Winner: '''{{{prevwinner}}}''' ({{{prevwinnerp}}}% votes out of {{{prevoptions}}} options)
| Winner: '''{{{prevwinner}}}''' ({{{prevwinnerp}}}% votes out of {{{prevoptions}}} options)
Line 24: Line 24:
! prevtitle
! prevtitle
| '''Yes''' ||  || Title of the previous poll.
| '''Yes''' ||  || Title of the previous poll.
|-
! prevsection
| No ||  || If the previous poll has any formatting, write the unformatted version here, so that the link to the old poll's section on [[Pikipedia:Poll]] can work correctly.
|-
|-
! prevwinner
! prevwinner
Line 41: Line 44:
|max        =  
|max        =  
|prevtitle  =  
|prevtitle  =  
|prevsection =
|prevwinner  =  
|prevwinner  =  
|prevwinnerp =  
|prevwinnerp =  

Revision as of 07:33, 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.
prevsection No If the previous poll has any formatting, write the unformatted version here, so that the link to the old poll's section on Pikipedia:Poll can work correctly.
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   = 
|prevsection = 
|prevwinner  = 
|prevwinnerp = 
|prevoptions = 
}}