Template:Votes: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
no edit summary
(explode loop counts one too many, so subtract the last one when returning.)
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:VotesNum|0}}{{#while:|{{#explode:{{{1|}}}|*|{{++|VotesNum}}}}|}}{{--|VotesNum}}</includeonly><noinclude>
<includeonly>{{#vardefine:VotesNum|0}}{{#while:|{{#explode:{{N}}
{{{1|}}}|{{N}}
*|{{++|VotesNum}}}}|}}{{--|VotesNum}}</includeonly><noinclude>
==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.

Navigation menu