Extensions & MediaWiki robchurch on 20 Aug 2007 01:05 am
RandomImage 1.4
Some updates to the RandomImage extension:
- Captions will now be pulled from the image description page, if possible. Text within
<randomimage></randomimage>tags is preferred, if present, otherwise, the first paragraph of the description is used. This idea came from Dave Cook. - The extension can now perform a more complex SELECT to ensure that non-images are excluded from selection.
Update: Dave caught a bug, which I’ve fixed - when a size was specified, the caption wasn’t showing. This is due to the fact that I’m a touch lazy and the extension just generates wiki markup, passing it to the parser to do the actual work. Of course, this results in MediaWiki’s slightly inconsistent sizing/framing behaviour.
Leave a Reply
You must be logged in to post a comment.