Extension:PictureGame

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎español • ‎日本語 • ‎polski
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
PictureGame

Release status:Extension status beta

ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Allows making picture games
Author(s)Template:Extension#username Aaron Wright, Ashish Datta, David Pean, Jack Phoenix
Latest versionTemplate:Extension#version 3.3 (2015-11-21)
MediaWikiTemplate:Extension#mediawiki 1.31+
Database changesTemplate:Extension#needs-updatephp Yes
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example Development/Testing wiki on Wikimedia Labs
ParametersTemplate:Extension#parameters
  • $wgCreatePictureGameThresholds
  • $wgPictureGameID
Added rightsTemplate:Extension#rights

picturegameadmin

Hooks usedTemplate:Extension#hook
SkinTemplateNavigation::SpecialPageManual:Hooks/SkinTemplateNavigation::SpecialPage
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates
RenameUserSQL

Translate the PictureGame extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

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

Special:PictureGameHome is the main page for picture games.

Dependencies[edit]

Installation[edit]

  • Download and place the file(s) in a directory called PictureGame in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'PictureGame' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

User rights[edit]

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

User points[edit]

Name Description
$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.

Parameters[edit]

Name Description
$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!