Wikipedia talk:Extended image syntax/Archive 3: Difference between revisions
Content deleted Content added
m Replaced deprecated <source> tags with <syntaxhighlight> |
Fix Linter errors. (bogus image options) |
||
Line 457:
That is, must there be a frame for the caption to display? I can see why this might be required. But I don't get why I can't both specify a pixel width and have a caption. Can someone please clue me in? Thanks in advance. [[User:Eric|Eric]] [[User talk:Eric|<sup>talk</sup>]] 00:46, 14 March 2012 (UTC)
[[File:NO IMAGE YET.png|<!--100px|-->frame|This has 100px and frame]]<!--commented in Jan 2023 to remove Linter error-->
[[File:NO IMAGE YET.png|100px|thumb|This has 100px and thumb]]
:Specifying a size doesn't affect whether a caption will show or not. For displaying a caption, the essential item is either <code>frame</code> or <code>thumb</code>. The difference between these are that <code>frame</code> ignores the ''size'' parameter: it will always display at the image's "natural" maximum size (this is shown on the file description page: for the image at right, the file description page shows "173 × 21 pixels" so it's 173px wide); whereas <code>thumb</code> respects the ''size'' parameter, and if omitted it will use the default size for thumbnail images (220px) or the "natural" maximum size, whichever is smaller. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 12:53, 14 March 2012 (UTC)
|