Template:Poll aux: Difference between revisions

Made the previous poll data optional.
mNo edit summary
(Made the previous poll data optional.)
Line 2: Line 2:
{{#widget:Crowdsignal|id={{{id}}}}}
{{#widget:Crowdsignal|id={{{id}}}}}
<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|}}}|
{| style="margin: 0 auto 10px; border: 1px rgba(96, 128, 96, 128) solid; border-radius: 8px; text-align: center;"
{{{!}} style="margin: 0 auto 10px; border: 1px rgba(96, 128, 96, 128) solid; border-radius: 8px; text-align: center;"
! 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)
|}</includeonly><noinclude>
{{!}}}
}}</includeonly><noinclude>


==Info==
==Info==
Line 24: Line 25:
|-
|-
! prevtitle
! prevtitle
| '''Yes''' ||  || Title of the previous poll.
| No ||  || Title of the previous poll.
|-
|-
! prevwinner
! prevwinner
| '''Yes''' ||  || Winner of the previous poll.
| No ||  || Winner of the previous poll.
|-
|-
! prevwinnerp
! prevwinnerp
| '''Yes''' ||  || Percentage of votes that the winner of the previous poll got.
| No ||  || Percentage of votes that the winner of the previous poll got.
|-
|-
! prevoptions
! prevoptions
| '''Yes''' ||  || Number of options that the previous poll had.
| No ||  || Number of options that the previous poll had.
|}
|}