Hello,
many work is put into images, and a lot of places use thumbnails in the article
and a [[Media:...|larger version]] link to a big version. This requires two
uploads and some complicated code, especialy if the image and its caption
should be right aligned floats.
I'd like to propose to make the software handle this frequent task. The image
syntax would be extended to provide an options field. This can be done
backwards compatible and similar to the options for table cells:
[[Image:Leopard.jpg|options|descriptive caption]]
Options are:
* thumbnail to generate a right aligned thumbnail of the image, using
the caption text as image caption, adding an enlarge icon
to the image and a [more] link to the big image
* thumbnail-left same as above, but left aligned.
* left, right makes the image a left/right aligned float, without a
caption, without resizing it. (e.g. for use on pages like
http://en2.wikipedia.org/wiki/Rudolf_Nebel )
* ___px renders the image inline, just like the classicale [[Image:,
but resizes it to ___ pixels width. Height is calculated
automatically.
[[Image:Leopard.jpg|250px|Leopard liegt auf einem Ast]]
could be used to generate the thumbnail at
http://de.wikipedia.org/wiki/Leopard
The thumbnails are stored on disk and are only generated if no thumbnail for
that size exists already.
Examples can be found at
http://jeluf.mormo.org/testwiki/wiki.phtml?title=Extended_image_syntax
The stylesheets are proof-of-concept, help on layout questions is welcome.
The code implementing the above is attached as a patch.
Best regards,
JeLuF