Extension:RandomGameUnit

From MediaWiki.org
Jump to navigation Jump to search

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

Release status:Extension status stable

ImplementationTemplate:Extension#type Parser extension
DescriptionTemplate:Extension#description Displays a randomly chosen picture game, poll or a quiz
Author(s)Template:Extension#username Aaron Wright, David Pean, Jack Phoenix
Latest versionTemplate:Extension#version 2.4 (2016-04-01)
MediaWikiTemplate:Extension#mediawiki 1.31+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example Development/Testing wiki on Wikimedia Labs
ParametersTemplate:Extension#parameters
  • $wgRandomGameDisplay
  • $wgRandomImageSize
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

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

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

RandomGameUnit extension displays a randomly chosen picture game, poll or a quiz through the <randomgameunit> tag.

Requirements[edit]

Along with one or more of the following extensions:

Installation[edit]

  • Download and place the file(s) in a directory called RandomGameUnit in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'RandomGameUnit' );
    
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


Parameters[edit]

  • $wgRandomGameDisplay — controls what games are enabled.
    • $wgRandomGameDisplay['random_poll'] — display a random poll. Defaults to true.
    • $wgRandomGameDisplay['random_quiz'] — display a random quiz. Defaults to true.
    • $wgRandomGameDisplay['random_picturegame'] — display a random picture game. Defaults to true.
  • $wgRandomImageSize — width (in pixels) for game images. Defaults to 50.