Extension:Random In Category

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
Random In Category
Release status: stableCategory:Stable extensions
Implementation Special page Category:Special page extensions
Description Direct the user to a random page in a specified category
Author(s) Victor Vasiliev (VasilievVVtalk)
Latest version 2.2.0 (2019-04-04)
MediaWiki 1.25+Category:Extensions with manual MediaWiki version
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Translate the Random In Category extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The Random In Category extension allows you to direct the user to a random page in a specified category.

Usage

Very similarly to Special:Random, you can specify a category name as a parameter to the page. Thus, Special:RandomInCategory/Foo or Special:RandomPageInCategory/Foo (MW ≥ MW 1.22) will get you a page from the "Foo" category.

Comparison to Core

MediaWiki version:
1.22

In MediaWiki 1.22, a Special:RandomInCategory feature was added to core. The core version gives much more biased results than this extension (However, it has much less performance overhead). Versions of this extension for MediaWiki 1.22 and greater change the name that this extension provides from Special:RandomInCategory to Special:RandomPageInCategory to prevent conflict with the core feature.

Installation

  • Download and move the extracted RandomInCategory folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RandomInCategory
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'RandomInCategory' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed. Category:Random page extensions
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Random page extensions Category:Special page extensions Category:Stable extensions