![]() 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.39+ |
License | GNU General Public License 2.0 or later |
Download | Download extension Git [?]: |
Hooks used
|
|
Quarterly downloads | 17 (Ranked 153rd) |
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
- Download and place the file(s) in a directory called
RandomImageByCategory
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php
wfLoadExtension( 'RandomImageByCategory' );
file: Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
Supported parameters are width
, limit
and categories
.
- Examples
<randomimagebycategory categories="Watermelons"/>
<randomimagebycategory width="200" categories="Featured Image"/>
See also
- Extension:Random In Category — Direct the user to a random page in a specified category
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.