From mediawiki.org
Jump to navigation Jump to search
Other languages:
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
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.36+
License GNU General Public License 2.0 or later
Example Development/Testing wiki on Wikimedia Labs
  • $wgRandomGameDisplay
  • $wgRandomImageSize
Translate the RandomGameUnit extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

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


Along with one or more of the following extensions:


  • 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' );
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


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