Extension:ArticleRatings

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
ArticleRatings

Release status: stable

ArticleRatings.png
Implementation Tag, Special page
Description Adds a complex interface for giving pages ratings.
Author(s) Adam Carter (UltrasonicNXTtalk)
Latest version 2.2 (2014-02-15)
MediaWiki 1.17+
PHP 5.1+
License GPL
Download Project page

Git [Help]
Commit history
Note:
No localisation updates are provided by translatewiki.net.

https://github.com/Brickimedia/ARE

Example Brickimedia
Tags
<rating />
Added rights

change-rating

Hooks used
ParserFirstCallInit

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 Brickimedia, 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 Brickimedia talk page.

Installation[edit | edit source]

  • Download and extract the files in a directory called ArticleRatings in your 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 title.

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" />.