Jump to content

Extension:RandomImageByCategory

From mediawiki.org
Revision as of 22:31, 13 August 2012 by KrenairBot (talk | contribs) (This extension appears to be in SVN, not Git.)
MediaWiki extensions manual
RandomImageByCategory
Release status: stable
Implementation Parser extension
Description Displays a random image from a given category
Author(s) Aaron Wright
David Pean
Jack Phoenix
Latest version 1.0
MediaWiki 1.12+
License GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
Example <randomimagebycategory width="200" categories="Featured Image"/>
Quarterly downloads 6 (Ranked 128th)
Translate the RandomImageByCategory extension if it is available at translatewiki.net

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

Supported parameters are width, limit and categories.

Installation

  1. Download the file and place it in $IP/extensions/RandomImageByCategory/
  2. Add the line
    require_once("$IP/extensions/RandomImageByCategory/RandomImageByCategory.php");
    
    into the wiki's LocalSettings.php
  3. Installation can now be verified through the wiki's Special:Version