Extension:RandomGameUnit
From Linux Web Expert
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 | |
Expand | |
Expand | |
Expand | |
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 totrue
.$wgRandomGameDisplay['random_quiz']
— display a random quiz. Defaults totrue
.$wgRandomGameDisplay['random_picturegame']
— display a random picture game. Defaults totrue
.
$wgRandomImageSize
— width (in pixels) for game images. Defaults to50
.
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions
- Extensions without an image
- Parser extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- All extensions
- Social tools