Extension:RandomImageByCategory
![]() Release status: stableCategory:Stable extensions |
|
---|---|
Implementation | TagCategory:Tag extensions |
Description | Displays a random image from a given category |
Author(s) |
|
Latest version | 1.4.0 (2020-05-24) |
MediaWiki | 1.43+Category:Extensions with manual MediaWiki version |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control |
Quarterly downloads | 5 (Ranked 91st) |
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 move the extracted
RandomImageByCategory
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/RandomImageByCategory - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'RandomImageByCategory' );
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 extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
Category:All extensions
Category:Extensions in Wikimedia version control
Category:Extensions included in Miraheze
Category:Extensions with manual MediaWiki version
Category:Extensions without a compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:Image extensions
Category:ParserFirstCallInit extensions
Category:Random content extensions
Category:Stable extensions
Category:Tag extensions