Extension:ImageRating/ru
From Linux Web Expert
ImageRating Статус релиза: стабильно |
|
---|---|
Реализация | Служебная страница |
Описание | Добавляет служебную страницу для категоризации и оценки изображений. |
Автор(ы) |
|
Последняя версия | 2.5.0 (2020-01-14) |
MediaWiki | 1.39+ |
Изменения в БД | Да |
Лицензия | Лицензия не указана |
Скачать | |
Ежеквартальные загрузки | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Использование общедоступными вики | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Переведите расширение ImageRating, если оно доступно на translatewiki.net | |
Проблемы | Открытые задачи · Сообщить об ошибке |
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.
Установка
- <translate> [[<tvar name=2>Special:ExtensionDistributor/ImageRating/ru</tvar>|Download]] and move the extracted <tvar name=name>
ImageRating/ru
</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%2Fru - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'ImageRating/ru' );
- 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>
Примечания
- ImageRating работает только на локально загруженных файлах
Документация по API
imagerating
imagerating | |
---|---|
Добавляет категории к изображению. <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
- ID страницы изображения.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/ru
- Special page extensions/ru
- Extensions with manual MediaWiki version
- Extensions with no license specified/ru
- Extensions in Wikimedia version control/ru
- All extensions/ru
- Extensions not in ExtensionJson
- Social tools/ru
- Extensions by Fandom/ru
- Extensions by ShoutWiki/ru