Template talk:Plain image with caption

Text size
Would it be possible to add an option of using the normal body-text style for the caption? I wanted to use this template for a chemical formula, but tags, which I used for optical-chirality symbols that are conventionally set in SMALL CAPS, had no effect, presumably because a small style was already in effect. —Odysseus1479 (talk) 23:26, 11 November 2010 (UTC)

What is the purpose of this template?


Hi, and. I don't understand the purpose here.

What's the difference between

and

except for the coloured triangle-arrow, and the lack/presence of borders? Please explain! Thanks. –Quiddity (talk) 19:58, 17 June 2013 (UTC)


 * The telescope image is probably a bad example. The template isn't meant for photographs (though I think it works quite well for them). Rather, it was built for SVG diagrams and stuff with a white or transparent background where a thumbnail border and gray rectangle becomes unnecessary and distracting, and ugly. Before, the solution was to just drop the |thumb parameter, like at Symmetry (though someone has gone and added a bunch of framed images). However you couldn't add any captions. This template is essentially a regular |thumb-less image plus a caption. See Chloroplast for examples of correct template use.
 * As for the triangle you ask? That's an optional addon—it's useful if you have two borderless images stacked up, and it helps readers tell which image each caption is for. —Kelvinsong (talk) 20:41, 17 June 2013 (UTC)
 * Oh, transparent backgrounds on diagrams. That makes sense. Hmmmm... Ok, I'll have to think about and investigate that a bit more.
 * It seems like the kind of thing we should create a fix for, in the normal thumbnail code, so that all Wikis (from the hundreds of Wikimedia ones, to all the other sites using Mediawiki) will be able to use the option.
 * Thanks for the explanation :) –Quiddity (talk) 20:27, 17 June 2013 (UTC)


 * Well that's what templates are for. :) I for one would like to see an easier way to center stuff like tables in MW code.
 * BTW, there's a shortcut to the template, just type . A lot of the code in the template is just idiotproofing, so you can write "File:xxx.png" or just "xxx.png", etc.—Kelvinsong (talk) 20:41, 17 June 2013 (UTC)

100x100px
Any way to support the syntax ? If you are unfamiliar with that, it sets the width or height to a maximum of 100px (whichever is greater). Thus, an image in landscape format will be 100px wide, but one in portrait format will be 100px tall. — howcheng  {chat} 22:00, 17 June 2015 (UTC)
 * ✅ I added the height parameter. --Great Brightstar (talk) 03:45, 17 September 2019 (UTC)

Reverted change because of linter error
Hi! I've just reverted 's change because it causes a Linter error "Bogus file options". That's because for certain parameters, it causes an empty option to show up. I noticed this at National Register of Historic Places listings in Texas, which uses

DigitalIceAge, could you try your changes in a sandbox first, so that we can work out this bug first? --rchard2scout (talk) 13:01, 31 January 2022 (UTC)
 * I figured out that this was caused by an errrant pipe between the end of the upright variable and the beginning of the width variable. Checked in my user sandbox to see if the testcase disappeared from Special:LintErrors/bogus-image-options—it seems to have done the trick. Thanks for pointing that out! DigitalIceAge (talk) 16:31, 31 January 2022 (UTC)
 * That looks like it worked! bogus-image-options in Article space is as empty as it should be, and lintHint is also telling me it works. Thanks! --rchard2scout (talk) 08:41, 1 February 2022 (UTC)