The secret behind POTY’s voting script
Large-scale on-wiki image ballots
This is what you see.
And this is what actually happens.
Machine-assisted voting is required
POTY: number of voters in the final
3390 eligible voters�(Final round) in POTY 2012
POTY: vote count in round 1
130 000 votes
What is POTY’s voting script technically?
Features
[[:commons:Help:EnhancedPOTY.js]]
Basics for the technical stuff
Eligibility check
Features
Local eligibility�(Commons)
Eligible
Not locally eligible
Global eligibility�(Commons)
Eligible
Enable ballot buttons
Resize thumbnails
Features
/w/api.php?action=query&prop=imageinfo
<img src=”new image size”>
Browser sends request for new image size
MediaWiki image scaler scales image
<gallery widths=300 ...>
<gallery widths=400 ...>
Seeded randomization
Features
Candidates
Randomization algorithm
Username�(Seed)
Fight the edit-conflict-hell with POTY’s script!
Photo: U.S. Air Force photo/Tech. Sgt. Rey Ramon; PD-US-Gov
Was this all?
It does a lot of other tiny stuff like
Can I customize it?
Missing but wanted
Still don’t know how it works
Points not covered here:�
Study the source code or wait until everything is documented.
[[:commons:MediaWiki:EnhancedPOTY.js]]
POTY-Barnstar:�LadyofHats [Public domain]
Banner-Photo:�Llorenzi [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons
LTR:�Logo 1: Binnium [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)]
Logo 2: Mystère Martin [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)]
Logo 3: TMg [CC-BY-SA-3.0-de (http://creativecommons.org/licenses/by-sa/3.0/de/deed.en)]
Logo 4: Peter Southwood [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)]
Logo 5: Pequod76 [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)]
Logo 6: By Lluis Valls [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)]
via Wikimedia Commons
The right tool for your election?
By smial GFDL 1.2 (http://www.gnu.org/licenses/old-licenses/fdl-1.2.html)], via Wikimedia Commons