On 7/12/07, Brianna Laugher <brianna.laugher(a)gmail.com> wrote:
Can someone invent a Image: namespace link or two for
purging image thumbnails?
1: thumb.php?f=filename.jpg&w=800 - the tricky bit here I suppose is
to convert "Image:Weißenbrunn im Landkreis Kronach.png" to
"Wei%C3%9Fenbrunn_im_Landkreis_Kronach.png" (ok, not _that_ tricky)
2. regular old &action=purge
it would be cool if these links only appeared if the file was over a
certain size and/or a PNG/SVG, but not sure if Javascript can be that
smart or not :)
There you go:
http://commons.wikimedia.org/wiki/Image:Wei%C3%9Fenbrunn_im_Landkreis_Krona…
Permanent: Add this to monobook.js
includePage('MediaWiki:ThumbnailPurger.js');
No size detection - could be only done through the image dimensions of
the thumbnail, but since that is assumed to be broken, who knows? I'd
need a broken thumbnail to test...
Cheers,
Magnus