Thread:Old McDonald/@comment-5108618-20150813162720/@comment-24494906-20150909140121

I ported two infoboxes to the new style and these are already live. For the next few, I'll have to write a new CSS theme and I don't know yet when I'll find the time for that.

I noticed two problems while porting these infoboxes, and they're both related to the image tag:
 * If the specified image is a [[file:]] link (notice the lower-case f), then the image tag does not recognize it as an image link. The fix was to change the lower-case f to upper-case.
 * Our infoboxes are historically a big wider than the standard layout of the new ones (300px instead of 270px) and the images were always scaled to exactly fill out the boxes, if they are large enough. I don't want to change the width of the boxes, as I don't know if this will create problems on pages, so I want to scale the images again to 300px. I can't do this when I use the image tag, though, as the image tag uses links to rescaled versions of the images, which are sometimes only 270px in width. If I then forcefully scale them up again to 300px with CSS, the image will look blurred. For this reason, I'm using the data tag instead of the image tag for now. I'd use the image tag again if I could give it a hint that it should try to load images of a larger width, i.e., if I could write something like  . Obviously, this hint should never lead to scaling up the image. The alternative is to respect the requested width in the image link provided through the image source.