Extension:ExcludeRandom
![]() | This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintainedCategory:Unmaintained extensions |
|
---|---|
Implementation | MyWikiCategory:Personalization extensions |
Description | Allows pages to be excluded from Special:Random |
Author(s) | Matt Russell (ultradude25talk) |
Latest version | 2.0.0 (2018-09-08) |
MediaWiki | 1.16+Category:Extensions with manual MediaWiki version |
PHP | 5.1+ |
Database changes | No |
License | BSD 3-clause "Modified" License |
Download | Download master snapshot Note: |
|
|
The ExcludeRandom extension allows pages to be excluded from Special:Random. For example, this could be useful for hiding in-complete translation pages that have been yet to be moved to their own sub-domain.
Installation
- Download and place the file(s) in a directory called
ExcludeRandom
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'ExcludeRandom' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
- $wgExcludeRandomPages
- The list of pages to be excluded, in an array.
*
wildcard is supported (matches any amount of any characters).
Usage
$wgExcludeRandomPages = [ 'Main Page', '*/fr' ];
This will disallow Main Page
and anything/fr
from being selected by Special:Random.
Category:All extensions
Category:BSD licensed extensions
Category:Extensions in GitHub version control
Category:Extensions not in ExtensionJson
Category:Extensions with manual MediaWiki version
Category:Extensions without a compatibility policy
Category:Extensions without an image
Category:Personalization extensions
Category:Random page extensions
Category:SpecialRandomGetRandomTitle extensions
Category:Unmaintained extensions