Extension:RandomGameUnit

From Linux Web Expert

MediaWiki extensions manual
RandomGameUnit
Release status: stable
Implementation Parser extension
Description Displays a randomly chosen picture game, poll or a quiz
Author(s) Aaron Wright, David Pean, Jack Phoenix
Latest version 2.7 (2020-05-24)
MediaWiki 1.39+
License GNU General Public License 2.0 or later
Download
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 RandomGameUnit extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

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

Requirements

Along with one or more of the following extensions:

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/RandomGameUnit</tvar>|Download]] and move the extracted <tvar name=name>RandomGameUnit</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/RandomGameUnit
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'RandomGameUnit' );
    
  • 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>

Parameters

  • $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.