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) Download the files into $IP/extensions/VoteNY
 * 2) Add require_once("$IP/extensions/VoteNY/Vote.php"); into the wiki's LocalSettings.php
 * 3) Create the required database table Vote by re-running the MediaWiki updater script, update.php from command line
 * 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.

Magic Words

 * : Returns the entire number of votes on the wiki.
 * : Returns the vote score on the current page.
 * : Returns the vote score on the given page.

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