Difference between revisions of "Template:Poll"

From partnersenproppersolutions
Line 6: Line 6:
 
|Title=
 
|Title=
 
|Next poll=
 
|Next poll=
 +
|Ready for next poll=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude><includeonly>{{#set: Ready for next poll={{{Ready for next poll|}}} }}
 
<div class="embed-responsive embed-responsive-16by9">{{#widget:Iframe responsive
 
<div class="embed-responsive embed-responsive-16by9">{{#widget:Iframe responsive
 
|url=https://www.proprofs.com/polls/poll/?title={{{Title|}}}
 
|url=https://www.proprofs.com/polls/poll/?title={{{Title|}}}
 
}}</div>
 
}}</div>
 +
{{#if: {{{Next poll|}}} | {{#ifeq: {{#show: {{FULLPAGENAME}} |?Ready for next poll}} | true |
 
{{Button
 
{{Button
 
|Text=Go to next poll
 
|Text=Go to next poll
Line 18: Line 20:
 
|Target=_blank
 
|Target=_blank
 
|Class=btn btn-primary
 
|Class=btn btn-primary
}}
+
}} }}
 
</includeonly>
 
</includeonly>

Revision as of 17:46, 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.