var msg = ''; //For anons if (wgUserName == null) msg = msg + '

Did you read the instructions?

You are currently voting as an anonymous user. '; msg = msg + 'We require anonymous users or users with less than 100 edits to identify themselves as a user from an other Wikimedia project. You can do that by adding a diff to your vote. See for example: diff. For more information, see How to vote. For specific instructions, please see Diffmaking.

\n'; msg = msg + '

Anonymous votes will not be considered!

'; function EditCount() { req = sajax_init_object(); req.open('GET', '/w/api.php?action=query&list=usercontribs&uclimit=100&format=json&ucuser=' + encodeURIComponent(wgUserName), false); req.send(null); contribs = eval('(' + req.responseText + ')'); return contribs['query']['usercontribs'].length; } if (wgPageName == "Commons:Picture_of_the_Year/2006/Voting_phase_2") { addOnloadHook(function () { if (wgUserName != null) { if (EditCount() < 100) { msg = '

You are having less than 100 edits!

' + msg; } else { return; }} var p = document.getElementById("wikiPreview"); if (p) { if (!p.innerHTML) p.innerHTML = msg; //Only add message in edit form } }); }