Template:Votes: Difference between revisions

Want an adless experience? Log in or Create an account.
Undid revision 67446 by Locke (talk) nope, that makes it miscount empty inputs
(right, needs a return value)
(Undid revision 67446 by Locke (talk) nope, that makes it miscount empty inputs)
Line 1: Line 1:
<includeonly>{{#vardefine:VotesNum|0}}{{#while:|{{#explode:{{{1|}}}|{{N}}
<includeonly>{{#vardefine:VotesNum|0}}{{#while:|{{#explode:{{N}}
*|{{++|VotesNum}}}}|}}{{#var:VotesNum}}</includeonly><noinclude>
{{{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.