Wikipedia talk:Extended image syntax/Archive 3: Difference between revisions

Content deleted Content added
m Fix Linter errors.
Fix Linter errors. (bogus image options)
 
(One intermediate revision by one other user not shown)
Line 391:
|}
:Not directly, but one can construct a table to suit:
<sourcesyntaxhighlight lang="text">
{| align=right
|(caption)
Line 397:
|[[File:Example.jpg|90px]]
|}
</syntaxhighlight>
</source>
:[[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 11:56, 16 July 2010 (UTC)
 
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)
Line 516:
: <nowiki>[[File:name.svg|lang=fr]]</nowiki>.
[[SVG]] file may contain following code:
<sourcesyntaxhighlight lang="xml">
 
<switch>
Line 523:
</switch>
 
</syntaxhighlight>
</source>
 
This is supported by [[rsvg]] and can be used to [[Language localisation|localisation]].
Line 602:
:{{replyto|Mac Dreamstate}} Please give examples. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 23:24, 13 January 2017 (UTC)
::[http://i.imgur.com/V7zog40.jpg This] how I'm currently viewing ''[[Darkness in a Different Light]]'', and other such use of borders. A year ago that border was a much darker grey, whereas it's barely even there now. [[User:Mac Dreamstate|Mac Dreamstate]] ([[User talk:Mac Dreamstate|talk]]) 01:40, 14 January 2017 (UTC)
:::Please don't use imgur, it slows my machine to a crawl; a [[WP:WPSHOT]] is preferable. The CSS rule is <sourcesyntaxhighlight lang=css>img.thumbborder {
border: 1px solid #eaecf0;
}</sourcesyntaxhighlight> and I have no idea where that comes from, nor if it's changed recently. [[WP:VPT]] ''may'' know. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 23:04, 14 January 2017 (UTC)
::::Will drop them a line, and noted re:Imgur. [[User:Mac Dreamstate|Mac Dreamstate]] ([[User talk:Mac Dreamstate|talk]]) 16:41, 15 January 2017 (UTC)