Extension:RandomImageByCategory
Appearance
From mediawiki.org
Release status: stable |
|
|---|---|
| Implementation | Tag |
| Description | Displays a random image from a given category |
| Author(s) |
|
| Latest version | 1.4.0 (2020年05月24日) |
| MediaWiki | 1.43+ |
| Licence | GNU General Public License 2.0 or later |
| Download | |
| Translate the RandomImageByCategory extension if it is available at translatewiki.net | |
The RandomImageByCategory extension displays a random image from the given category or categories.
Installation
[edit ]- Download and move the extracted
RandomImageByCategoryfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cdextensions/ gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/RandomImageByCategory - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'RandomImageByCategory' );
- Yes Done – Navigate to
Special:Versionon your wiki to verify that the extension is successfully installed.
Usage
[edit ]Supported parameters are width, limit and categories.
- Examples
<randomimagebycategory categories="Watermelons"/>
<randomimagebycategory width="200" categories="Featured Image"/>
See also
[edit ]- Extension:Random In Category — Direct the user to a random page in a specified category
This extension is included in the following wiki farms/hosts and/or packages: