Template:Votes: Difference between revisions

Want an adless experience? Log in or Create an account.
should fix inputs with operators causing errors
No edit summary
(should fix inputs with operators causing errors)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#vardefine:VotesNum|0}}{{#while:|{{#explode:{{N}}
<onlyinclude><includeonly>{{#vardefine:VotesNum|0}}{{#while:|{{NotEmpty|{{#explode:{{N}}
{{{1|}}}|{{N}}
{{{1|}}}|{{N}}
*|{{++|VotesNum}}}}|}}{{--|VotesNum}}</includeonly></onlyinclude>
#|{{++|VotesNum}}}}}}|}}{{--|VotesNum}}</includeonly></onlyinclude>
==Purpose==
==Purpose==
This template is used to automatically count the rolling votes in featured content nominations.
This template is used to automatically count the rolling votes in featured content nominations.
Line 9: Line 9:


<pre>{{subst:Votes/Template}}</pre>
<pre>{{subst:Votes/Template}}</pre>
This code can also be found in the edittools box when editing a nomination page.




{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}