Last modified: 2006-11-09 17:21:25 UTC
I was hoping we could have a {{random image}} tag, or something to that effect. I suppose you could easily infer what it would do... Maybe also a pixel size switch like {{random image|200px}}...
(In reply to comment #0) >... > suppose you could easily infer what it would do... >... Random on first save (subst:) / all saves of that page / page rendering into cache / every page retrieval (ad rotator) ? It could be a syntax extension, e.g. <randomimage width="200px" />, depending on the intention. See [[meta:Extending wiki markup]].
It's not exactly what you requested, but on sites with constant uploads like wikipedia, {{Special:Newimages/1}} produces a pseudo-random image (the last one uploaded) in a gallery.
http://meta.wikimedia.org/wiki/RandomImage
That is exactly what I was looking for... and THAT is why I love the MediaWiki dev team! Thanks Rob! Cheers!
Should this extension maybe be brought into core? I think a lot of people would really enjoy this... Just a thought.
I'd rather it wasn't, since I'll get bitched at when people discover it doesn't work well with caches. Extensions are self-contained add-ons, that's the whole point of them. It's simple enough to download and install it.
You make a good point Rob... If they can't install an extension, they probably have no business running a web server. With that said, it is too bad there isn't better communication / organization of all the neat extensions that exist. Then again, that is another story altogether... Cheers.
(In reply to comment #7) > With that said, it is too bad there isn't better communication / organization of > all the neat extensions that exist. Then again, that is another story altogether... I believe there are efforts to set up some sort of catalogue on MediaWiki.org, although like most MediaWiki documentation projects, it might well be stalled or abandoned now. :)