Template:Poll aux: Difference between revisions
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#{{ | | [[Pikipedia:Poll#{{{prevtitle}}} | {{{prevtitle}}}]] | ||
|- | |- | ||
| Winner: '''{{{ | | 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. | ||
|- | |- | ||
! | ! prevtitle | ||
| '''Yes''' || || Title of the previous poll. | | '''Yes''' || || Title of the previous poll. | ||
|- | |- | ||
! | ! prevwinner | ||
| '''Yes''' || || Winner of the previous poll. | | '''Yes''' || || Winner of the previous poll. | ||
|- | |- | ||
! | ! 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. | ||
|- | |- | ||
! | ! 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 = | ||
| | |prevtitle = | ||
| | |prevwinner = | ||
|prevwinnerp = | |||
| | |prevoptions = | ||
| | |||
}} | }} | ||
</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 = }}