Difference between revisions of "Template:Poll"

From partnersenproppersolutions
Line 23: Line 23:
 
</div>
 
</div>
 
<div class="row">
 
<div class="row">
{{#if: {{{Next poll|}}} | {{#ifeq: {{#show: {{FULLPAGENAME}} |?Ready for next poll}} | true |  
+
{{#if: {{{Next poll|}}}  
{{Button
+
| {{#ifeq: {{#show: {{FULLPAGENAME}} |?Ready for next poll}} | true | {{Button
 
|Text=Go to next poll
 
|Text=Go to next poll
 
|Href=/{{{Next poll|}}}
 
|Href=/{{{Next poll|}}}
 
|Target=_blank
 
|Target=_blank
 
|Class=btn btn-primary
 
|Class=btn btn-primary
}} }}
+
}}
 
| {{#autoedit: form=Poll | target={{FULLPAGENAME}} | Poll[Ready for next poll]=Yes}}
 
| {{#autoedit: form=Poll | target={{FULLPAGENAME}} | Poll[Ready for next poll]=Yes}}
 
}} }}
 
}} }}
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 18:45, 1 February 2017

This is the "Poll" template. It should be called in the following format:

{{Poll
|Title=
|Next poll=
|Ready for next poll=
}}

Edit the page to see the template text.