Extension:RandomImageByCategory
From Linux Web Expert
RandomImageByCategory 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 | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
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
- <translate> [[<tvar name=2>Special:ExtensionDistributor/RandomImageByCategory</tvar>|Download]] and move the extracted <tvar name=name>
RandomImageByCategory
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RandomImageByCategory - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'RandomImageByCategory' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions
- Extensions without an image
- Tag extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- All extensions
- Random content extensions
- Image extensions