Extension:RandomImagewithinCommons
Random Image within Commons Release status: beta |
|||
---|---|---|---|
Implementation | Tag, Parser function | ||
Description | Display a Random Image from the Wiki instance include Images that are store by Commons | ||
Author(s) | Thiemo Schuff (Starwhoopertalk) | ||
Latest version | 2.3 beta build 20140916 (2014-09-16 | )||
License | CC BY-SA 4.0 | ||
Download | http://download.schuff.eu/MediaWiki%20Extensions/RandomImagewithinCommons/ | ||
Example | http://thwiki.org | ||
|
|||
|
|||
Translate the RandomImagewithinCommons extension if it is available at translatewiki.net |
|||
Check usage and version matrix; code metrics |
What can this extension do?[edit | edit source]
It display a Randomize Image per view. But include the Images that was used over Creative Commons.
History[edit | edit source]
released Version 1.0 beta on 2. August 2011
Version 2.0 from 14. June 2012[edit | edit source]
- filter Namespace (use only normal Articles (namespace 0))
- repace all DB Querys with Mediawiki wfGetDB function
- the extension use the mediawiki own function to calculate the picture
Version 2.1 from 3. April 2014[edit | edit source]
- go to Multilanguage
- implement Ignorelist like $wgriwc['blacklist'] = array('x.svg', 'y.gif', 'z.jpg');
Version 2.2 from 30. August 2014[edit | edit source]
- Use Catogorys instead of the blacklist array
Version 2.3 from 16. September 2014[edit | edit source]
- optimize DB querys
- Add link to Blacklist on Specialpage of Versions
next Version[edit | edit source]
- skip images that are insert in Pages but not more exist
- ...
further versions[edit | edit source]
- fillup gallerys with random pictures (to create a picturewall)
- Proptet text configurable over Special:AllMessages
- Check if picture really exist (protect agians [[File:NONEXISTFILE.SAMPLE]])
Usage[edit | edit source]
Set tag <riwc />
Download instructions[edit | edit source]
You can download it from here: http://download.schuff.eu/MediaWiki%20Extensions/RandomImagewithinCommons/
Installation[edit | edit source]
1. create the folder "ricw" in the extension folder of your Mediawiki instance and copy the files from the downloaded zip in it.
2. Add the following to LocalSettings.php:
require_once("{$IP}/extensions/riwc/RandomImagewithinCommons.php");
Configuration parameters[edit | edit source]
Use $wgriwc['size'] = '400px'; to set the default size to 400 pixel. If it not set, it will be displayed in 200 pixel width.
To ignore any picture, you can add in to the Category [[Category:riwc blacklist]] to put in on blacklist.