Template:Poll aux: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Text replacement - "}}↵{{#widget:Crowdsignal|id={{{id}}}}}" to "}}<div>{{#widget:Crowdsignal|id={{{id|}}}}}</div>")
m (Changed the older polls link.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{max|}}}|''You may select up to {{{max}}} options.''<br>}}<div>{{#widget:Crowdsignal|id={{{id|}}}}}</div>
<includeonly>{{#if:{{{max|}}}|''You may select up to {{{max}}} options.''<br>}}
<div style="margin-top:5px">{{#widget:Crowdsignal|id={{{id|}}}}}</div>
<div style="font-size: 8pt; text-align: center;">({{tt|Not showing?|If you cannot see the poll, consider disabling any ad-blocking extensions on Pikipedia. Alternately, click the link to the right to be taken to the poll page.}} <span class="plainlinks">[https://poll.fm/{{{id}}} [Link<nowiki>]</nowiki>]</span>)</div>
<div style="font-size: 8pt; text-align: center;">({{tt|Not showing?|If you cannot see the poll, consider disabling any ad-blocking extensions on Pikipedia. Alternately, click the link to the right to be taken to the poll page.}} <span class="plainlinks">[https://poll.fm/{{{id}}} [Link<nowiki>]</nowiki>]</span>)</div>
{{#if:{{{prevtitle|}}}|
{{#if:{{{prevtitle|}}}|
Line 5: Line 6:
! Previous poll
! Previous poll
{{!}}-
{{!}}-
{{!}} [[Pikipedia:Poll/Older polls#{{anchorencode:{{{prevtitle}}}}}|{{{prevtitle}}}]]
{{!}} [[Pikipedia:Poll/older polls#{{anchorencode:{{{prevtitle}}}}}|{{{prevtitle}}}]]
{{!}}-
{{!}}-
{{!}} Winner: '''{{{prevwinner}}}''' ({{{prevwinnerp}}}% votes out of {{{prevoptions}}} options)
{{!}} Winner: '''{{{prevwinner}}}''' ({{{prevwinnerp}}}% votes out of {{{prevoptions}}} options)

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


Info

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, since this way, the editor doesn't have to find what to replace in the middle of Template:Poll's code.

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

Skeleton

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