Extension:Rating

From MediaWiki.org

Jump to: navigation, search

             

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
Rating

Release status: experimental

Ratings.jpg
Implementation  Tag, Page action, Special page
Description Add a Rating box to each MediaWiki page. Ask the readers a question and ask them to rank from 1 to any number.
Author(s)  Sanford Poon contrib
Last Version  1.1.2 (Mar 29, 2007)
MediaWiki  Tested on 1.9.3, 1.10.x and 1.12.0 but should work in earlier versions
License No license specified
Download here

check usage (experimental)


Contents

[edit] What can this extension do?

  • Add a Rating box to each MediaWiki page. Ask the readers a question and ask them to rank from 1 to any number.
  • A comment form (with added spam protection from ReCaptcha for anonymous users) that allows user to leave comments.
  • If the name field in the comment form matches the current logged in user, a link to the User page is provided.
  • Page navigation facilities provided for more than 10 comments.
  • Add a Special Page for moderators to monitor comments and poll irregularities.

[edit] Usage

This extension adds a tag <Rating> to the MediaWiki. The first new line inside the tag is the title of the poll, and the lines below are poll item descriptions that will be shown in the drop-down box of the Rating form.

<Rating>
Poll Title
Poll Item 1 (Weigh = 1)
Poll Item 2 (Weigh = 2)
...
Poll Item n (Weigh = n)
</Rating>

[edit] Parameters

  • vote - default is true, setting vote to false removes the vote widget from the resulting ratings box, leaving only the comment box.
Note: Setting vote to false makes Poll Title and Poll Items invisible to the user, however when having multiple comment boxes in the same page, it is important to fill in an identifier in the Poll Title field so the extension can separate one comment box from another.
  • comment - default is true, setting comment to false removes the comment widget from the resulting ratings box, leaving only the vote widget.
Setting both vote and comment to false is the same as having true in both parameters.

[edit] Example

Page with multiple comment boxes

<Rating vote=false>
Question 1
</Rating>

<Rating vote=false>
Question 2
</Rating>

<Rating vote=false>
Question 3
</Rating>

Page with a single rating (1-5) but without the comment widget

<Rating comment=false>
How do you think about the A380 airbus?
1 (Hated it)
2
3
4
5 (Loved it)
</Rating>

Page with a single rating (1-5) with the comment widget

<Rating>
What did you think about the A380 airbus?
1 (Hated it)
2
3
4
5 (Loved it)
</Rating>

[edit] Installation

See Extension Homepage

[edit] See also

[edit] Sites Using This Extension