Release status: stable |
|
|---|---|
| Implementation | Special page |
| Description | Adds a special page to categorize and rate images. |
| Author(s) |
|
| Latest version | 2.5.0 (2020-01-14) |
| MediaWiki | 1.39+ |
| Database changes | Yes |
| License | GNU General Public License 2.0 or later |
| Download | Download extension Git [?]: |
|
Hooks used
|
|
| Quarterly downloads | 1 (Ranked 169th) |
| Translate the ImageRating extension if it is available at translatewiki.net | |
| Issues | Open tasks · Report a bug |
The ImageRating extension adds a new special page, Special:ImageRating, where privileged users can categorize and rate images.
By default all registered users are given the rateimage {{ll|Manual:User rights|user right}}, which is required for users to be able to access this special page.
The rating functionality uses VoteNY extension, and thus VoteNY is a hard dependency for this extension, i.e. you cannot install and/or use ImageRating without installing VoteNY, too.
Installation
- Download and place the file(s) in a directory called
ImageRatingin yourextensions/folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'ImageRating' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Notes
- ImageRating only works on locally uploaded files
API documentation
imagerating
| imagerating | |
|---|---|
| Adds categories to an image. This module cannot be used as a generator. | |
| Prefix | |
| Required rights | rateimage |
| Post only? | Yes |
| Generated help | Current |
This API receives new messages.
To call the API, use action=imagerating along with 2 parameters, pageId and categories.
pageId- The page ID of the image.categories- The categories to add to the image. The categories should be separated by commas without spaces.
| This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.