Extension:RandomPages
![]() Release status: betaCategory:Beta status extensions |
|
---|---|
Implementation | TagCategory:Tag extensions |
Description | Allows to return one or more randomly selected pages |
Author(s) | Aurelian Oancea |
Latest version | 0.5.0 (2018-04-06) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy |
Database changes | No |
License | GNU General Public License 3.0 or later |
Download | Category:Extensions in Wikimedia version control |
|
|
Quarterly downloads | 1 (Ranked 95th) |
Translate the RandomPages extension if it is available at translatewiki.net |
The Random Pages extension returns one or more randomly selected pages. The original version 0.2 doesn't work with MediaWiki 1.25+ (Original URL: http://locknet.ro/). Now version 0.5.0 supports all MediaWiki 1.25+ version.
Usage
RandomPages adds a new MediaWiki wiki parser tag: <randompages />
- Available options
Name | Type | Description | Default |
---|---|---|---|
limit | int | to control how many links should be fetched randomly from the database | 150 |
namespace | bool | true to restrict only to the global namespace | false |
levels | int | levels of CSS applied to each entry | 5 |
<randompages limit="10" namespace="true" levels="10" />
Gets 10 random pages from the global namespace with 10 levels of style
Installation
- Download and move the extracted
RandomPages
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RandomPages - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'RandomPages' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed. Category:Random page extensions
Category:All extensions
Category:Beta status extensions
Category:Extensions in Wikimedia version control
Category:Extensions not in ExtensionJson
Category:Extensions with release branches compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:Random page extensions
Category:Tag extensions