Extension:RandomImageByCategory

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
RandomImageByCategory

Release status:Extension status stable

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Displays a random image from a given category
Author(s)Template:Extension#username Aaron Wright
David Pean
Jack Phoenix
Latest versionTemplate:Extension#version 1.0
MediaWikiTemplate:Extension#mediawiki 1.12+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GPLv2+
Download
ExampleTemplate:Extension#example <randomimagebycategory width="200" categories="Featured Image"/>
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/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.

Installation[edit]

  • 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:
require_once "$IP/extensions/RandomImageByCategory/RandomImageByCategory.php";
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

Supported parameters are width, limit and categories.

Example
<randomimagebycategory categories="Watermelons"/>

See also[edit]