Расширение:PictureGame

From mediawiki.org
This page is a translated version of the page Extension:PictureGame and the translation is 35% complete.
Справка по расширениям MediaWiki
PictureGame
Статус релиза: бета
Реализация Служебная страница
Описание Allows making picture games
Автор(ы) Aaron Wright, Ashish Datta, David Pean, Jack Phoenix
Последняя версия 4.4.0
MediaWiki 1.39+
Изменения в БД Да
Лицензия GNU General Public License 2.0 или позднее
Скачать
  • $wgCreatePictureGameThresholds
  • picturegameadmin
Ежеквартальные загрузки 1 (Ranked 143rd)
Переведите расширение PictureGame, если оно доступно на translatewiki.net
Проблемы Открытые задачи · Сообщить об ошибке

PictureGame extension allows users to create picture games and take them.

Special:PictureGameHome is the main page for picture games.

See Help:Extension:PictureGame for more information on how to use this extension.

Dependencies

  • New database tables: picturegame_images and picturegame_votes

Установка

  • Скачайте и распакуйте файл(ы) в папку с названием PictureGame в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PictureGame
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'PictureGame' );
    
  • Выполните скрипт обновления, который автоматически создаст необходимые таблицы, используемые расширением.
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

Права пользователей

This extension adds one new user right, picturegameadmin, which allows administering picture games. By default sysops and staff have this user right.

User points

Название Описание
$wgUserStatsPointValues['picturegame_created'] set this to something to give out points for creating new picture games.
$wgUserStatsPointValues['picturegame_vote'] set this to something to give out points for voting in existing picture games.

Параметры

Название Описание
$wgCreatePictureGameThresholds for example 'edits' => 5 if you want to require users to have at least 5 edits before they can create new picture games. Defaults to an empty array (no restrictions).
$wgPictureGameID this is the internal ID number of the current picture game and is used by PictureGame internally. It's documented here only for the sake of completeness. Do not set it!