Release status: stable
|Implementation||Tag, Special page|
|Description||Adds a complex interface for giving pages ratings.|
|Author(s)||Adam Carter (UltrasonicNXTtalk)|
|Latest version||1.0.1 (29/07/12)|
|MediaWiki||Should work on 1.17 or above, may work below that, but targeted for 1.19|
|PHP||Any fairly decent version|
Translate the ArticleRatings extension if possible
|Check usage and version matrix; code metrics|
The ArticleRatings extension adds an interface for rating pages.
This extension was developed for Brickipedia, and is not as portable as it could be. If you need to use it on a separate MediaWiki installation, please don't hesitate to contact me on my Wikia talk page.
Installation[edit | edit source]
- Download and extract the files in a directory called
extensions/folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
- Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/ArticleRatings/ArticleRatings.php" );
- Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Configuration parameters[edit | edit source]
User rights[edit | edit source]
- changeRating - new user right allows user to change the ratings of pages.
Tags[edit | edit source]
<rating /> adds the rating of a page to a page.
<rating /> on it's own will add the rating of the page it is on, and
<rating page="title" /> will give the rating of
Special Pages[edit | edit source]
- Special:ChangeRating - interface for changing pages' ratings.
- Special:MassRatings - interface for getting the ratings of many pages at once.
Messages[edit | edit source]
- MediaWiki:Ratings - JSON file giving the name, codename (has to be 2 characters long), image, and link, for each rating. Should be an array of objects, in PHP-valid JSON.
- MediaWiki:Rating-default - the codename of the rating that should be give to pages that have not yet had their rating changed.
- MediaWiki:Rating-box - tells how the rating should be formatted when given by
<rating />. Has four parameters: $1=The rating's image, $2=rating name $3=link to change the rating, $4="Rating for:" prefix given when rating acquired by
<rating page="title" />.