Extension:VoteNY

Vote a.k.a VoteNY extension adds the &lt;vote&gt; parser hook tag to allow voting on articles where the tag is present.

The magic word can be used to display the number of votes in the database; this number is cached (in memcached) for 24 hours, so it's not totally up-to-date.

The special page Special:TopRatings displays the highest rated pages on the wiki. It supports filtering by category and namespace and its output can be embedded on wiki pages, so will show 10 ratings where the pages are in the "Adventure Games" category and the pages are in the main (0) namespace.

Parameters

 * $wgVoteDirectory &mdash; path to the extension's files. Defaults to $IP/extensions/VoteNY.

Installation

 * 1) Dump the files into $IP/extensions/VoteNY
 * 2) Create the required database table Vote (by re-running the MediaWiki updater script, update.php)
 * 3) Add require_once("$IP/extensions/VoteNY/Vote.php"); into the wiki's LocalSettings.php
 * 4) Installation can now be verified through the wiki's Special:Version

User rights
This extension adds one new user right, vote, which is required in order to vote. By default, anonymous users do not have this right and thus they cannot vote but registered users can.

Dependencies

 * New database table, Vote

Usage
&lt;vote /&gt;</tt> outputs a green square voting box, &lt;vote type=1 /&gt;</tt> outputs five voting stars.

To-do list

 * If user doesn't have 'vote' right or the DB is locked the extension should say that, not just fail silently or require the user to log in

Version history

 * 2.0 &mdash; less external dependencies, RSS & Publish stuff removed
 * 1.0 &mdash; initial cleaned-up version of extensions/wikia/Vote/ by Jack Phoenix