Extension:ImageRating
From Linux Web Expert
ImageRating 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 | |
Expand | |
Expand | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
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
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
- <translate> [[<tvar name=2>Special:ExtensionDistributor/ImageRating</tvar>|Download]] and move the extracted <tvar name=name>
ImageRating
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageRating - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'ImageRating' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Notes
- ImageRating only works on locally uploaded files
API documentation
imagerating
imagerating | |
---|---|
Adds categories to an image. <translate> This module cannot be used as a [[<tvar|1>Special:MyLanguage/API:Query#Generators</>|generator]].</translate> | |
<translate> Prefix</translate> | |
<translate> Required rights</translate> | rateimage |
<translate> Post only?</translate> | <translate> Yes</translate> |
<translate> Generated help</translate> | <translate> Current</translate> |
This API module allows adding categories to an image page.
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.
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions
- Extensions without an image
- Special page extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- All extensions
- Social tools
- Extensions by Fandom
- Extensions by ShoutWiki