On 11/5/06, Sherool wrote:
Basicaly some way to spesify an id and class value for an image *from the image description page*
Not sure what kind of syntax would be best for this, "traditional" magic words don't take parameters so something like __META id ="ifd" class="ifd"__ might seem "ugly" or strange, on the other hand a more function-ish appraoch like {{#meta: id="ifd"|class="ifd"}} would not be expected to have the effect I'm suggesting. Ideas on this would be most welcome ("meta" is probably not the best name either).
Anyway the general idea is this: By whatever means is deemed the best syntax it should be possible to spesify an arbitrary id and class value (except one that colide with existing "hard coded" values, maybe prefix all user spesified values in some way to avoid problems) for an image from it's description page. The "thumbnailing code" would then apply this to either the div or img tag of the image (depending on wether or not it's framed). The admins on any given Wiki are then free to add JavaScript functions and CSS classes to interact with the image in just about any way they can imagine.
I assume the images have some unique id in the database anyway, so maybe it would be easier to just use that as the id, unless people didn't want to expose that for some reason.
It seems a little difficult because when I load an article with a image pending deletion tagged with, say, a {{DELETE}} magic word, where is the trigger to change the class for that image coming from? The parser would need to look at all the image pages every time it loaded an article checking for these magic words I guess. That might not be super difficult I don't know.
It does seem like a useful feature though, since so many images get added back, you start to think people don't realize why they were removed in the first place. :)