On 7/2/07, Platonides <Platonides(a)gmail.com> wrote:
Magnus Manske wrote:
Well, it could generate said categories as e.g.
(on human.svg)
[[Category:Knee|Human.svg (box:10,10,20,20)]]
JavaScript could check for these for each image on the page. Might be
JS overkill, though.
I took me a while to understand what you mean with this. I was thinking
in including into an article (maybe with a tagged parameter), not into
the automatic preview on categories. Interesting thought, though quite
open for category abusing.
Oh, I think now I see what /you/ meant :-)
I thought you thought to display all "marking boxes" that are encoded
in an image description in each article that contains that image.
So I thought it would be faster to add the coordinates to the category
sort key, because that is much easier to access from javascript.
What you actually meant (i think...) was to add "marking boxes" for an
image on an article that actually uses it, and to show them only
there. Correct?
Anyway, I'm already done with the basic
box-display-based-on-article-html thing. I might demo a version on one
of my own images on commons today or tomorrow. Note that for people
not using my demo javascript, the whole thing will be completely
invisible, except for a template or two in the image description
source.
Magnus