Introducing new image parameter 'upright' and corresponding variable $wgThumbUpright.
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 21 May 2007 18:56:03 +0000 (18:56 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 21 May 2007 18:56:03 +0000 (18:56 +0000)
commitf8014e24e5d3292a555fc704b63bd14509e4f774
tree996b7d9f03e55be8396af0fdba9ac5c52e4d81f1
parent5d4aa142908eb0a3484c9d19b5fe063a9a1b8072
Introducing new image parameter 'upright' and corresponding variable $wgThumbUpright.
This allows better proportional view of upright images related to landscape images on a page without nailing the width of upright images to a fix value which makes views for anon unproportional and user preferences useless
Usage:
* [[Image:pix.jpg|thumb|upright|caption]] = Upright image will be scaled down by $wgThumbUpright (default 0.75, seems to me the best value)
* [[Image:pix.jpg|thumb|upright=0.6|caption]] = Upright image will be scaled down by 0.6
Size of thumb is always rounded to full __0 px to avoid odd thumbsizes and spare the cache

If used in combination with a width, upright will be ignored.
RELEASE-NOTES
includes/DefaultSettings.php
includes/Linker.php
includes/Parser.php
languages/messages/MessagesEn.php