Open main menu

Extension:RandomImageByCategory

MediaWiki extensions manual
OOjs UI icon advanced.svg
RandomImageByCategory
Release status: stable
Implementation Tag
Description Displays a random image from a given category
Author(s)
Latest version 1.3.1 (2017-09-19)
MediaWiki 1.25+
Database changes No
License GNU General Public License 2.0 or later
Download
Hooks used
ParserFirstCallInit
Translate the RandomImageByCategory extension if it is available at translatewiki.net
Check usage and version matrix.

The RandomImageByCategory extension displays a random image from the given category or categories.

InstallationEdit

  • Download and place the file(s) in a directory called RandomImageByCategory in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'RandomImageByCategory' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

UsageEdit

Supported parameters are width, limit and categories.

Examples
<randomimagebycategory categories="Watermelons"/>
<randomimagebycategory width="200" categories="Featured Image"/>

See alsoEdit