Extension:Random In Category
|
Random In Category Release status: beta |
|
|---|---|
| Implementation | Special page |
| Description | Allows to direct the user to a random page in specified category |
| Author(s) | Victor Vasiliev (VasilievVVtalk) |
| Last version | 2.0 (2011-01-31) |
| MediaWiki | 1.16+ |
| Database changes | no |
| License | GPLv2 or later |
| Download | |
| Check usage and version matrix | |
The Random In Category extension allows you to direct the user to a random page in specified category.
Usage [edit]
Very similarly to Special:Random, you can specify a category name as a parameter to the page. Thus, Special:RandomInCategory/Foo will get you a page from the "Foo" category.
Download [edit]
You can download the extension directly from the MediaWiki source code repository (browse code). You can get:
- One of the extensions tags
Not all extensions have tags. Some extensions have tags for each release, in which case those tags have the same stability as the release. To download a tag
- Go to the tags list
- Click the name of the tag you want to download
- Click "snapshot"
- The latest version of one of the extensions branches
Each extension has a master branch containing the latest code (might be unstable). Extensions can have further branches as well.
- Go to the branches list
- Click the branch name
- Click "snapshot"
- A snapshot made during the release of a MediaWiki version.
This might be unstable and is not guaranteed to work with the associated MediaWiki version.
After you've got the code, save it into the extensions/RandomInCategory directory of your wiki.
If you are familiar with git and have shell access to your server, you can obtain the extension, with all its tags and branches, as follows:
cd extensions
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/RandomInCategory.git
Installation [edit]
- Create a directory
RandomInCategoryin the$IP/extensionsdirectory of your MediaWiki installation - Extract the files to this
$IP/extensions/RandomInCategorydirectory - Add to the end of LocalSettings.php:
require_once("$IP/extensions/RandomInCategory/RandomInCategory.php");
- Installation can now be verified through Special:Version on your wiki