Wikipedia talk:Extended image syntax/Archive 3: Difference between revisions
Content deleted Content added
AlanBarrett (talk | contribs) New archive page, from December 2005 to November 2008 |
Fix Linter errors. (bogus image options) |
||
(9 intermediate revisions by 5 users not shown) | |||
Line 12:
''Note: there is currently a vote and/or discussion going on at [[Wikipedia talk:Image use policy]] about removing the recommendation not to use fixed pixel sizes for images. [[User:Gerbrant|Shinobu]] 07:22, 13 December 2006 (UTC)''
''Note: As at July 2008, there is again discussion going on at [[Wikipedia talk:Manual of Style#Watering down of non-use of pixel sizes]] about removing the recommendation not to use fixed pixel sizes for images.'' --[[User:AliceJMarkham|AliceJMarkham]] ([[User talk:AliceJMarkham|talk]]) 07:19, 10 July 2008 (UTC)
== Suggestion: Add "link" option to Image syntax ==
Line 21:
If there is no way, I suggest that someone add a link option to the image syntax.
--[[User:Tiger_Marc|Tiger Marc]][[User talk:Tiger_Marc|<
: There is not a real way to do it. You can file a feature request. What is the exact application you are looking for? There is a template that provides this functionality, but it's a fragile hack in my opinion, and I'm not going to point you to it yet. :-) It only works in a few browsers, and not consistently. — [[User:Omegatron|Omegatron]] 23:55, 2 March 2006 (UTC)
Line 51:
== "Compatibility considerations" ==
<s>I am surprised to see the "Compatibility considerations" section Omnplex [http://en.wikipedia.org/w/index.php?title=Wikipedia:Extended_image_syntax&diff=45414414&oldid=43491009 added] recently, and I would like to remove it. Compatibility with browsers that don't support <
:Eh, I fixed it. ~[[User:Mdd4696 |MDD]][[User talk:Mdd4696 |46]][[Special:Contributions/Mdd4696 |96]] 17:51, 20 May 2006 (UTC)
Line 61:
I have suggested an extension that would allow a border to be put directly around the image proper at http://bugzilla.wikimedia.org/show_bug.cgi?id=6072. --[[User:Lambiam|Lambiam]][[User talk:Lambiam|<small><sup>Talk</sup></small>]] 11:58, 24 May 2006 (UTC)
:Yeah, the need for a border option is real. There are many places where tiny flag thumbnails are either not getting the border they need, or are getting the border using {{tl|border}} but messing up the text afterward.
== Enlarge bug ==
Line 82:
:::It's SVG, it must be trivial to combine them. That would be neater anyway. [[User:Gerbrant|Shinobu]] 10:40, 11 October 2006 (UTC)
::::Indeed, but they are separate for a reason :-P I'm making a template to create motorway signs like the one above - so the above would be given by <
== Background color of image box ==
Line 94:
Is there any way to centre short captions on wide images. It can look a bit untidy when the text is sitting on the left hand side.--[[User:203.214.91.152|203.214.91.152]] 11:55, 9 October 2006 (UTC)
:[[Image:Dingle peninsula panorama crop.jpg|thumb|
Very sparingly, if ever in articles, as it is contrary to the manual of style. Elsewhere, no big deal I would say. [[User:HighInBC|HighInBC]]<small> <sup>(Need help? [[User_talk:HighInBC|Ask me]])</sup></small> 03:18, 14 December 2006 (UTC)
Line 196:
[[Image:tst.png|left|200px|100px size]]Example image with 200px size.
<br style="clear:both;">
I can see enlarged images (at least in the preview).<br />
OK. In the saved page the images are enlarged too (tested in Internet Explorer and Firefox).<br />
--[[User:Ajvico|Ajvico]] 07:57, 7 September 2007 (UTC)
:Try it again with "thumbnail" as mentioned on the project page. --[[User:Van helsing|Van helsing]] 09:20, 7 September 2007 (UTC)
Line 207:
{{clr}}
:See? --[[User:Van helsing|Van helsing]] 09:22, 7 September 2007 (UTC)
::The text on the project page is ''"100px": Scales the image down to make it 100 pixels wide. Replace any number for 100. If you specify "thumbnail" and a value here, this value will take precedence. If the image is already smaller than your specified value, the image stays at its size.''<br />
::I think it's not clear that "''If the image is already smaller than your specified value, the image stays at its size''" only applies when "thumbnail" is used.<br />
::At least, I didn't understood such thing when I read it (but I'm spanish, so it could be a misunderstanding).<br />
::--[[User:Ajvico|Ajvico]] 15:25, 8 September 2007 (UTC)
== "border" option seems to have gone away (or broken) ==
For example, <
:I submitted this as a bug [http://bugzilla.wikimedia.org/show_bug.cgi?id=11338 Bugzilla 11338] [[User:Michael Daly|Michael Daly]] 17:15, 14 September 2007 (UTC)
Line 242:
== Requests for help ==
Those in need of help may get a faster response by asking at [[Wikipedia:Help desk]]. --—<i><b>— [[User:Gadget850|<
== Image syntax and parser functions ==
Line 248:
Is it possible for one to parse things like |thumb|left and such so that it would be <nowiki>[[Image:Image.jpg|{{{1|}}}|{{{1|}}}]]?</nowiki>
I ask because I am attempting to create a template from this, and I need the image map within the template to be able to be re-sized as the template is used.— '''[[User:Daedalus969|<
== How do you use upright?! ==
The article doesn't give any examples that I can see, and if you do {upright}, then it assumes that its the caption. Thank you. [[User:Noian|<span style="color:red;">'''ηoian'''</span>]] [[User_talk:Noian|<small><span style="color:MediumSeaGreen;">''‡orever ηew ‡rontiers''</span></small>]] 21:43, 8 November 2008 (UTC)
== Caption and alt text ==
“Unfortunately, it is not possible to specify different text for these two purposes.”
This seems to be out of date. Near as I can tell, an image gets a blank alt="" by default, but you can add an alt=xxx parameter. But the caption serves as alt text when it is not shown, but then if both are specified the alt overrides the caption. Is this correct? ''—[[User:Mzajac |Michael]] [[User talk:Mzajac |Z.]] <small>2008-12-08 00:23 z</small>''
:The "alt=" option is fairly new. I have attempted to document it now, but I am not sure that I got the details right. —[[User:AlanBarrett|AlanBarrett]] ([[User talk:AlanBarrett|talk]]) 21:38, 2 February 2009 (UTC)
== Other units besides PX? ==
Some images (such as those generated by the {{tl|music}} template) use images as a substitute for characters. In these cases it is more optimal to use size units that are tied to a given font type, such as EM or EX. I'd like to suggest that these units be supported aas well. Thanks. [[User:SharkD|SharkD]] ([[User talk:SharkD|talk]]) 20:05, 2 January 2009 (UTC)
:Try asking for a new feature at [[:bugzilla:]]. This page is concerned only with documenting existing features. —[[User:AlanBarrett|AlanBarrett]] ([[User talk:AlanBarrett|talk]]) 22:24, 2 February 2009 (UTC)
== Putting caption text on side of image? ==
Is this possible? I'd like the text to appear on the left or the right of an image, rather than underneath it. Can anyone tell me how that is possible or if it is? '''[[User:Wikidea|<span style="color:red;">Wik</span>]][[User:Wikidea|<span style="color:gold;">idea</span>]]''' 15:34, 2 February 2009 (UTC)
:You could create a table in which the image is on one cell and the text of your chouce is in another cell. But it wouldn't be a caption. —[[User:AlanBarrett|AlanBarrett]] ([[User talk:AlanBarrett|talk]]) 22:28, 2 February 2009 (UTC)
== image as background ==
It is possible that I missed it, but is it possible for text to overlap an image, like the image is a background? [[User:Bugboy52.40|Buɡboy52.4]] ([[User talk:Bugboy52.40|talk]]) 02:31, 8 March 2009 (UTC)
==Positioning==
Why does <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Autobahn&oldid=288041170#Current_density this version]</span> of the article [[Autobahn]] show the image of the Swiss network in IE8 (in strict mode) below the section "Speed limits", and in Firefox 3.0.4 also below that section, but overlaying the text of that section? IE7 shows that image as intended below the section "Current density/Switzerland" to the left of the text of that section, as does IE8 in Compatibility View. [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 05:23, 8 May 2009 (UTC)
== Link ==
'''Link''' works here, but it doesn't work on my mediawiki at work. Does anyone know what extensions or release incorporated this feature?
<code><nowiki>[[Image:Westminstpalace.jpg|200px|caption text|link=Westminster Abbey]]</nowiki></code>
Thanks. -[[User:Legaia|Legaia]] ([[User talk:Legaia|talk]]) 19:22, 1 May 2009 (UTC)
:IIRC, it was introduced in version 1.14 --[[User:Michael Daly|Michael Daly]] ([[User talk:Michael Daly|talk]]) 02:31, 1 July 2009 (UTC)
== disambig for Wikipedia and commons images with same file names ==
Is there a way to force an image to point to the commons, when images exist with identical names on both Wikipedia and Commons. http://en.wikipedia.org/wiki/File:Mission_Dolores.jpg and http://commons.wikimedia.org/wiki/File:Mission_Dolores.jpg I would like to point to the commons version, but when I do, I get the wikipedia version. [[User:SaltyBoatr|SaltyBoatr]] ([[User talk:SaltyBoatr|talk]]) 16:05, 18 August 2009 (UTC)
: I don't know of any way to do that within the image syntax. The usual way to fix this problem is to rename one of the images. You can request that one (presumably the English Wikipedia one) be renamed. [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 15:49, 19 August 2009 (UTC)
== Images Aligned Left & Numbered List text==
Hi, I have tried to align an image left and to put it in front of a numbered listed.
[[Qwan Ki Do]] See here in the Code of honour section
Unfortunately the Numbers of the list appear in the picture... Is there a way to correct that?
Thanks [[User:Fsjmax|Fsjmax]] ([[User talk:Fsjmax|talk]]) 14:14, 20 October 2009 (UTC)
:It clearly seems to be a bug. However, there are several workarounds (apart from positioning the image to the right). One is to construct a simple table which allows more control; I have left my attempt on that page – feel free to revert. -- [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 14:55, 20 October 2009 (UTC)
::Thanks a lot. It looks a lot better. Cheers [[User:Fsjmax|Fsjmax]] ([[User talk:Fsjmax|talk]]) 17:23, 20 October 2009 (UTC)
:::Applying a workaround is one thing, getting the bug fixed is another. For the benefit of those who want to investigate it, here is the link to the page in question when it exhibited the faulty behaviour: {{Querylink|Qwan Ki Do|qs=&oldid=320663515|"Qwan Ki Do" on 19 October 2009 06:34}}. -- [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 14:23, 21 October 2009 (UTC)
== Sound file linking ==
Is there an equivalent of this page for sound files? -- [[User:OlEnglish|<span style="font-size:x-large;">œ</span>]][[User talk:OlEnglish|<sup>™</sup>]] 02:06, 2 November 2009 (UTC)
: Sorry, not that I know of. [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 03:27, 2 November 2009 (UTC)
::Hmm, Perhaps there should be? -- [[User:OlEnglish|<span style="font-size:x-large;">œ</span>]][[User talk:OlEnglish|<sup>™</sup>]] 11:18, 8 November 2009 (UTC)
:::I think so, too. I've started a draft at [[User:Michael Bednarek/SandBox#Wikipedia:Extended image syntax]]. It's all trial and error, and I have now found the virtual [[Wikipedia:Namespace|namespace]] Media: which seems to behave differently from the File: namespace. In the meantime, may be that draft provides an answer to your immediate problem, or you could raise it here. -- [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 13:54, 8 November 2009 (UTC)
== 0.75, not 0.78 ==
A {{diff|Wikipedia:Extended image syntax|325386345|325350545|recent edit}} changed "0.75" to "0.78" with the comment "It's not 80% and it's not 75%... it calculates out to 77.777777777777777% or 78%". This calculation is incorrect. What Mediawiki does is take the default thumbnail size (typically 180px), multiply it by 0.75, and then round to the nearest 10. Since 180 × 0.75 is 135, this rounds to 140. Now, it's true that 140/180 is 0.777..., but the actual factor is 0.75, not 0.777.... You can verify this by setting the default thumbnail width to 200px. If you do that, the upright image will be 150px (200 × 0.75), not 160px (200 × 0.777..., rounded to the nearest 10). I've also verified this by reading the [[Mediawiki]] source code. I {{diff|Wikipedia:Extended image syntax|325390667|325386345|fixed}} the project page to make this clearer. [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 06:08, 12 November 2009 (UTC)
:Thanks for the investigation and clarification! [[User:Binksternet|Binksternet]] ([[User talk:Binksternet|talk]]) 13:01, 12 November 2009 (UTC)
== problems converting {{tl|click}} to new syntax ==
I've noticed that certain images don't seem to display correctly when I convert the deprecated {{tl|click}} to the new format. In other words, some images become slightly larger than with the {{tl|click}} template, even though I'm using the same parameters. Does anyone know why this might be happening? --[[User:Ixfd64|Ixfd64]] ([[User talk:Ixfd64|talk]]) 18:42, 12 November 2009 (UTC)
: Could you please give a specific example? [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 21:13, 12 November 2009 (UTC)
:: It seems to happen with certain images. I've provided an example below:
<code><nowiki>{{click|link=Wikipedia:Administrators|image=Goldenwiki.png|width=20|height=20|title=Example text.}}</nowiki></code>
produces
[[File:Goldenwiki.png|20x20px|link=Wikipedia:Administrators|Example text.]]
while
<code><nowiki>[[file:Goldenwiki.png|link=Wikipedia:Administrators|20px|title=Example text.]]</nowiki></code>
produces
[[file:Goldenwiki.png|link=Wikipedia:Administrators|20px|title=Example text.]]
:: As you can see, the lower image is slightly larger. --[[User:Ixfd64|Ixfd64]] ([[User talk:Ixfd64|talk]]) 07:20, 13 November 2009 (UTC)
: The lower image isn't using the correct syntax. You want this:
:: <code><nowiki>[[file:Goldenwiki.png|link=Wikipedia:Administrators|20x20px|Wikipedia administrators]]</nowiki></code>
: which produces an image [[file:Goldenwiki.png|link=Wikipedia:Administrators|20x20px|Wikipedia administrators]] that is the size you want and does not generate an unwanted "title=" in the tooltip or alt text. [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 08:08, 13 November 2009 (UTC)
:: I see. Thanks for clearing this up! --[[User:Ixfd64|Ixfd64]] ([[User talk:Ixfd64|talk]]) 18:18, 13 November 2009 (UTC)
== Orientation glitch ==
[[Image:Mcdonalds stratford.jpg|120px|right]]
[[Image:Mcdonalds stratford.jpg|122px|left]]
Here is an image which refuses to orient correctly unless the width is over 120px. A picture like this can't therefore be used in a gallery. Is the anomaly a function of width:height ratio? Can it be rectified by inserting additional code? It's occurred with only one of the pics in my [[User:Bjenks/Images|gallery of contributions]]. Cheers [[User:Bjenks|Bjenks]] ([[User talk:Bjenks|talk]]) 20:08, 20 November 2009 (UTC)
: There was something funky about ''[[:File:Mcdonalds stratford.jpg]]''. Whatever process was used to rotate it, lost information. I suspect that the rotation procedure created a JPEG image that the Wikimedia software can't grok. Anyway, I installed a version of that image that was rotated without losing info (I used [[libjpeg|jpegtran]]), in an attempt to fix the problem. Please feel free to revert if you don't like the result. Your gallery looks OK now, at least to me<s>; but interestingly enough it's not working in this talk page for me right now (a caching problem perhaps?)</s>. If the problem persists, I suggest taking it up at ''[[Wikipedia:Village pump (technical)]]''. [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 22:44, 20 November 2009 (UTC)
: This talk page also looks good to me now, so it was just a temporary caching problem after all. Hope you like the results. [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 22:45, 20 November 2009 (UTC)
::I dips me lid, great guru of daguerreotypic digitalis. The science of such rotation is far beyond my ken. :) Cheers [[User:Bjenks|Bjenks]] ([[User talk:Bjenks|talk]]) 03:03, 21 November 2009 (UTC)
== Placement of text ==
{| align=right
|Example<br />(left caption)||[[File:Example.jpg|90px]]||[[File:Simple shapes example.png|90px]]||Test<br />(right caption)
|}
Is there any way to place the caption text to the left or the right of the image? I can't find anything on it. [[User:Tom Reedy|Tom Reedy]] ([[User talk:Tom Reedy|talk]]) 20:41, 15 January 2010 (UTC)
:It's possible, but I don't understand why anyone would do that. -- [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 07:59, 16 January 2010 (UTC)
::Thanks. I want to stack several images of different sizes and I want to place the text to the left of the more narrow ones. [[User:Tom Reedy|Tom Reedy]] ([[User talk:Tom Reedy|talk]]) 20:35, 16 January 2010 (UTC)
== Stacking multiple images ==
I want to stack multiple images. They are different widths and I want them to line up to the left side. Is there any way to do that? [[User:Tom Reedy|Tom Reedy]] ([[User talk:Tom Reedy|talk]]) 00:05, 16 February 2010 (UTC)
== Problem with mouseover text when linking ==
Hi! I need help with changing the text that displays during mouseover when using |link= . I'm new to Wikipedia, but I've been editing a certain browser game's official Wiki for few months. I've now encountered a this problem which is beyond my skills and I hope to find a solution here. So basically, I've created a navigation template for pages on my user namespace. On the template I have used a small image which I have linked to a page, but now the text that appears when I bring my mouse over it is the name of the page and not the one I'd like to be displayed. Is there any way to change this, like using span title or something similar? [http://wiki.erepublik.com/index.php?title=User:Kuhaa/Template&action=edit Here's] the template's code if it helps. The file link is right after <nowiki><div style></nowiki> tag. Of course I could just lose the link and solve the problem, but I'm also curious if this even can be done.
I've tried pretty much everything, I even made an image map but it stretched the borders of the box so I decided not to use it. I have tried using <nowiki><span title=""></nowiki> inside and around the file link and I tried using <nowiki>{{!}}</nowiki> just in case. And just to make sure, it's not a caption I'm trying to make here, I just want a similar effect like when using span title. If the text is not even possible to be changed when linking, I'd like to know that too. ;) I hope you got what I'm trying to ask. Thank you in advance! --[[User:Kuhafile|Kuhafile]] ([[User talk:Kuhafile|talk]]) 22:27, 5 March 2010 (UTC)
: See [[WP:PIC#Plain pictures]]. For example, "<code><nowiki>[[File:Example.svg|x20px|link=Main page|alt=just another example|Woo hoo!]]</nowiki></code>" produces an image [[File:Example.svg|x20px|link=Main page|alt=just another example|Woo hoo!]] that says "Woo hoo!" when you mouse over it. [[User:Eubulides|Eubulides]] ([[User talk:Eubulides|talk]]) 23:31, 5 March 2010 (UTC)
::That was the very first thing I tried but it didn't work so I figured there must be some different trick to it. But the problem seems to be in our wiki engine, maybe it lacks an extension or something. So there's nothing I can do. Thank you anyway! --[[User:Kuhafile|Kuhafile]] ([[User talk:Kuhafile|talk]]) 08:42, 6 March 2010 (UTC)
== caption placing ==
Is there a way to put the caption above the image instead of below? I need it for a special case.--[[User:زرشک|Zereshk]] ([[User talk:زرشک|talk]]) 22:01, 15 July 2010 (UTC)
{| align=right
|(caption)
|-
|[[File:Example.jpg|90px]]
|}
:Not directly, but one can construct a table to suit:
<syntaxhighlight lang="text">
{| align=right
|(caption)
|-
|[[File:Example.jpg|90px]]
|}
</syntaxhighlight>
:[[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 11:56, 16 July 2010 (UTC)
== Re-sizing (with 'px') did not work. ==
I have been struggling to re-size images with the 'px' parameter. Only recently discovered that (surprise!) 'frame' disables re-sizing. Which is mentioned under 'frame', but not in the discussion of re-sizing. How about mentioning this under 'px' (the feature it disables)? - [[User:J. Johnson|J. Johnson (JJ)]] ([[User talk:J. Johnson|talk]]) 22:12, 4 August 2010 (UTC)
:added note in lead and 'size' section - good enough ? [[user:leevanjackson|Lee∴V]] [[User talk:leevanjackson|<span style="color:#a3bfb1;">(talk</span>]] • [[Special:Contributions/leevanjackson|<span style="color:#a3bfb1;">contribs)</span>]] 09:43, 5 August 2010 (UTC)
::That should work. Thanks - [[User:J. Johnson|J. Johnson (JJ)]] ([[User talk:J. Johnson|talk]]) 20:21, 12 August 2010 (UTC)
==Rotation==
No means to rotate by 90, 180 or 270 degrees? [[User:JMK|JMK]] ([[User talk:JMK|talk]]) 08:48, 8 October 2010 (UTC)
: I see in the archives this was requested before. Would be useful if someone can get this to work. [[User:JMK|JMK]] ([[User talk:JMK|talk]]) 08:50, 8 October 2010 (UTC)
== linking thumbnail to full resolution image? ==
What is the recommended way of creating thumbnails that link directly to the full size image, as opposed to the image description page? Since "thumb" and "link" can't both be defined, I'm guessing someone knows of a good alternative. <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Oayfer|Oayfer]] ([[User talk:Oayfer|talk]] • [[Special:Contributions/Oayfer|contribs]]) 18:02, 19 April 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
== File feature request - Defaulting to image description in Commons ==
It would be very cool and helpful if the ''File'' syntax could default the ''caption'' (using some parameters/flags) to the image descriptions as defined in [[:commons:Template:Information]] description field (optionally selecting English description automatically or allowing the user to chose the language). Without this feature, I find adding image descriptions/captions via pipes tedious and in some cases very redundant. Of course, this is for the case where the images are in Commons and use that template, which in the case of Wikipedia are a lot --[[User:Codrinb|Codrin.B]] ([[User talk:Codrinb|talk]]) 22:14, 23 January 2011 (UTC)
:This is an interesting automation idea. It's true that too many images end up without captions, or wrong captions. '''However,''' the "magically appearing" text might be confusing to editors, and might prompt them to edit the description at WP or Commons, which would be wrong... Adequate documentation could help, but still, I have my doubts. --[[User:Lexein|Lexein]] ([[User talk:Lexein|talk]]) 02:50, 21 May 2011 (UTC)
== Feature request: "title=" parameter ==
''Alt text'' is not universally displayed by default in all browsers (example: Chrome). But Title text seems to be. Additional image "mouseover" information would improve the reader experience. In the simplest case, if the ''alt='' text is copied to ''title='', then all readers could see the extended description offered to vision impaired readers. If there's a better place to discuss this, please say so... --[[User:Lexein|Lexein]] ([[User talk:Lexein|talk]]) 02:55, 21 May 2011 (UTC)
== Feature request: Cropping ==
Would it be possible to add on-the-fly cropping functionality to images? At the moment you can use {{tlx|Css Image Crop}}, but it doesn't let you float the image and it's incompatible with {{tlx|Infobox}}. I'd like to place this image in the infobox at [[William Ellis (missionary)]] please: [[User:Nagualdesign|nagualdesign]] ([[User talk:Nagualdesign|talk]]) 21:41, 4 December 2011 (UTC)
{{Css Image Crop| Image=William Ellis, missionary from the Society and Sandwich Islands, by Charles Taylor, 1827.jpg| bSize=250| cWidth=230| cHeight=210| oTop=15| oLeft=10| Location=right}}
<!-- Use this Lorem Ipsum to see the image float:
''Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus blandit, velit sit amet venenatis fringilla, nunc dui ornare urna, eu eleifend eros nisi at ligula. Praesent nisi leo, tincidunt a iaculis ut, dictum id enim. Curabitur mattis, neque ac elementum pharetra, nisi mauris tincidunt massa, nec rhoncus nisl ipsum id lorem. Vestibulum fringilla lectus eget augue sollicitudin mattis. Donec enim augue, malesuada interdum pharetra congue, interdum et elit. Mauris aliquet venenatis purus, in hendrerit urna vestibulum quis. Duis posuere urna id quam consectetur imperdiet. Curabitur lacus ipsum, molestie ac pellentesque id, mollis et massa.''
-->
:This will require a software update; see [[WP:BUG]]. ---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]<span style="color:darkblue"> </span>'''''<sup>[[User talk:Gadget850|''talk'']]</sup> 23:55, 4 December 2011 (UTC)
:It seems to me that image floating is supported by {{Tl|Css Image Crop}}.
<pre>
{{Css Image Crop
|Image = The Name of the image.
|bSize = The Base Image size (the image we are cropping on)
|cWidth = Crop Image Width in pixels
|cHeight = Crop image Height in pixels
|oTop = Offset Top in pixels
|oLeft = Offset Left in pixels
|Location = 'right', 'left', 'center' or 'none'. Determines placement of the image on the page.
Defaults to 'right' when description is provided (as is default for thumb images).
When description is blank, ___location on left (as is default for non-thumbs).
|Description = Description (will render out using thumbnail class)
}}
</pre>
:It is however possible that I am not paying attention. [[User:Fred_Gandt|'''<span style="font-family:arial;color:#055;font-size:16px;">f<i style="color:#0dd;font-size:10px;">red</i>g<i style="color:#0dd;font-size:10px;">andt</i></span>''']] 00:05, 5 December 2011 (UTC)
::Yes, it does seem to float against text (although it doesn't seem to like the <nowiki><pre></nowiki> box above). Not sure why I couldn't get it to work before. Anyhow, it's still incompatible with {{tlx|Infobox}}, passing excess wikimarkup from {{tlx|Css Image Crop}} as it does. Would it be better to simply create a derivative (cropped) image in a new file, or is what I'm trying to achieve useful? [[User:Nagualdesign|nagualdesign]] ([[User talk:Nagualdesign|talk]]) 00:23, 5 December 2011 (UTC)
== Size specification and caption incompatible? ==
Am I understanding correctly that the caption attribute will not work in these cases?:
# when the image size is specified
# when the "frame" attribute is not invoked?
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)
::Thanks for the clarification, Rr! So, if you have a minute and are curious, would you mind telling me if you see a cleaner way to put a "caption" under the frameless image here?: [[User:Eric]] --[[User:Eric|Eric]] [[User talk:Eric|<sup>talk</sup>]] 16:51, 14 March 2012 (UTC)
:::You've probably noticed that articles with infoboxes often have a caption under the infobox image, but the image isn't framed; for example, [[Reading Southern railway station]]. The infobox disguises the technique, but it's essentially the same as the method that you've used: there is a table, and the image and caption occupy the full width of two consecutive rows. I don't know of another way of doing it, unless two or more images are shown next to each other - for example at [[User:Redrose64#About me]] where there is a {{tlx|multiple image}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 18:59, 14 March 2012 (UTC)
::::Ok, thanks again! [[User:Eric|Eric]] [[User talk:Eric|<sup>talk</sup>]] 21:32, 14 March 2012 (UTC)
== Horizontal alignment to right of column ==
What I have is a page with a fairly long infobox down the right hand side. I'd like to mix text and pictures in the left hand space. It's OK floating left, because left of column is left of page, but floating right puts the image below the infobox rather than to the immediate left of it. Is there any way round, or do I live with it? [[User:Johnmperry|Johnmperry]] ([[User talk:Johnmperry|talk]]) 06:51, 17 November 2012 (UTC)<br />
:I've never seen a right-floated image to the left of an infobox, only below, so I guess that's the way it always behaves. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 09:42, 17 November 2012 (UTC)
{| align=right
|valign=top|[[File:Example.jpg|thumb|120px]]
|{{Infobox person
|name=Jimbo Wales
|image=147 GD-Preis 5280.jpg
|imagesize = frameless
|caption=Wales in January 2011
|birth_date={{Birth date and age|1966|8|7|mf=y}}
}}
|}
::It can be done with a right-aligned table, but that has several drawbacks. For one, the white space is not properly filled with text because the table forms a rectangle the size of the combined objects. In this example, if [[Jimmy Wales|Jimbo's]] infobox were it's real size, there would be considerable white space to its left below the example image. You can see this effect by sharply reducing the width of your browser window when viewing this page. Generally (and trivially) speaking, if there is not enough room in an article to accommodate many images, the article's text need to be expanded or images removed. Sometimes a gallery can help, but mostly a surfeit of images doesn't improve an article's encyclopedic value. -- [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 12:20, 17 November 2012 (UTC)
==We at WV are working on a main page redesign==
The primary proposal is here [http://en.wikivoyage.org/wiki/User:Nicholasjf21/MainPage]. The difficulty is that we need the image to stay on the page at different screen sizes. Anyway to do this? [[User:Jmh649|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Jmh649|talk]] · [[Special:Contributions/Jmh649|contribs]] · [[Special:EmailUser/Jmh649|email]]) (if I write on your page reply on mine) 09:05, 23 January 2013 (UTC)
== Changing an image in the same box / frame ==
Is there discussion elsewhere on the following please, or syntax I can use to change the image in a box on the same page by selecting two or three links / buttons? For example I'm working on a Portal for the new Welsh Coast Path [[http://cy.wikipedia.org/wiki/Porth:Llwybr_yr_Arfordir here]], which has a map of all 8 sub paths. I think it would be wonderful if a second map could be loaded and viewed instead of this one, showing the towns along the path; you can see the link is there, but alas, it opens a whole new window rather than replacing the Paths image with the towns image. All images would be the same size, of course. Any suggestions or pointers please? Feel free to edit on my namespace, should you wish to experiment or correct! [[User:Llywelyn2000|Llywelyn2000]] ([[User talk:Llywelyn2000|talk]]) 13:37, 9 May 2013 (UTC)
== Semi-protected edit request on 11 October 2014: Clean up syntax statement to make more readable ==
{{edit semi-protected|Wikipedia:Extended image syntax|answered=yes}}
<!-- Begin request -->
I suggest changing the syntax statement at the very beginning of the article from this:
:<code><nowiki>[[File:</nowiki></code>'''''Name'''''<code>|</code>'''''Type'''''<code>|</code>'''''Border'''''<code>|</code>'''''Location'''''<code>|</code>'''''Alignment'''''<code>|</code>'''''Size'''''<code>|link=</code>'''''Link'''''<code>|alt=</code>'''''Alt'''''<code>|</code>'''''Caption'''''<code>]]</code>
To this:
<code><nowiki>[[File:</nowiki>'''''Name'''''|'''''Type'''''|'''''Border'''''|'''''Location'''''|'''''Alignment'''''|'''''Size'''''|link='''''Link'''''|alt='''''Alt'''''|'''''Caption'''''<nowiki>]]</nowiki></code>
It would make it a lot more readable and understandable. Bolded+Italicized would indicate that you substitute strings into those positions, while regular font means you put down what you see.
Hope you understand.
<!-- End request -->
[[User:BlueFenixReborn|BlueFenixReborn]] ([[User talk:BlueFenixReborn|talk]]) 07:11, 11 October 2014 (UTC)
:[[File:Yes check.svg|20px|link=]] '''Done'''<!-- Template:ESp --> [[User:EoRdE6|EoRdE6]] ([[User talk:EoRdE6|talk]]) 18:38, 11 October 2014 (UTC)
== Parameter «lang=» not described ==
Please, add description of <code>lang=</code> parameter. Usage example:
: <nowiki>[[File:name.svg|lang=fr]]</nowiki>.
[[SVG]] file may contain following code:
<syntaxhighlight lang="xml">
<switch>
<text x="0" y="0" systemLanguage="en"> English text </text>
<text x="0" y="0" systemLanguage="fr"> French text </text>
</switch>
</syntaxhighlight>
This is supported by [[rsvg]] and can be used to [[Language localisation|localisation]].
[[Special:Contributions/94.180.44.12|94.180.44.12]] ([[User talk:94.180.44.12|talk]]) <span style="font-size: smaller;" class="autosigned"> — Preceding [[Wikipedia:Signatures|undated]] comment added 15:15, 24 April 2015 (UTC)</span><!--Template:Undated--> <!--Autosigned by SineBot-->
[[File:Gerrit patchset 25838 test.svg|thumb|110px|No language specified]] [[File:Gerrit patchset 25838 test.svg|lang=en|thumb|110px|{{para|lang|en}}]] [[File:Gerrit patchset 25838 test.svg|lang=fr|thumb|110px|{{para|lang|fr}}]]
:This has been possible for a couple of years now (examples at right). But this is the English Wikipedia: are we likely to want to display such images using non-English text? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 16:11, 24 April 2015 (UTC)
== non-uniform scaling possible? i.e. not keeping the aspect ratio ==
is it possible to scale images without keeping the aspect ratio? The following images should have a width of 70 and a height of 200:
[[File:Muzeul_Olteniei.JPG|70x200px]]
[[File:Muzeul_Olteniei.JPG|x200px]]
I tried <code>70x200px</code>" and also <code>70px|x200px</code> but it doesn't work. Thanks!
[[User:Mrazvan22|Razvan Marinescu]] ([[User talk:Mrazvan22|talk]]) 10:48, 17 August 2015 (UTC)
:{{ping|Mrazvan22}} The only way is to alter the image on your computer and upload a different image (with a different file name). However, the numbers you specified don't work at all with that image. The current aspect ratio (width divided by height) is about 1.28 and you are proposing an aspect ratio of 0.35. The enormous difference results in a highly distorted image. ―[[User:Mandruss|<span style="color:#775C57;">'''''Mandruss'''''</span>]] [[User talk:Mandruss|<span style="color:#AAA;">☎</span>]] 11:39, 17 August 2015 (UTC)
::thanks a lot Mandruss! I was afraid that was the case. It would be good to add functionality for non-uniform scaling in the future. I need it quite often when I make photo montages, so maybe I'll code it up when I have the time. And sure, the numbers I gave are just as an example, I wasn't meaning to use them in practice. [[User:Mrazvan22|Razvan Marinescu]] ([[User talk:Mrazvan22|talk]]) 11:52, 17 August 2015 (UTC)
== Animated GIF Thumbs ==
''Thumbnailing an animated GIF does not result in an error, so there is no warning, but the animated GIF is not processed. Instead the original animated GIF is shipped, and whether the animated GIF is subsequently scaled to fit the allotted space is down to the capabilities of the receiving browser.''
This is not true. [[The Spinning Dancer]] uses a very inefficient auto-generated thumbnail that is more than 4x the size of the original file. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/96.61.90.239|96.61.90.239]] ([[User talk:96.61.90.239|talk]]) 06:26, 18 May 2010 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
:I note [[commons:Category:Animated gifs exceeding the 12.5MP limit]] seems to explain when animated GIFs work. [[User:Markhurd|Mark Hurd]] ([[User talk:Markhurd|talk]]) 17:56, 11 September 2011 (UTC)
::I don't if this is the right place to ask this, but I just noticed that the "thumb" parameter for an animated GIF somehow prevents Mat Sadler's [https://github.com/matsadler/deanimator Deanimator] plugin from working. Safari extensions themselves use Javascript, but I don't see how the Deanimator one works from just looking at the code. [[User:Jimw338|Jimw338]] ([[User talk:Jimw338|talk]]) 07:31, 20 August 2015 (UTC)
==px guidance discrepancy==
[[WP:IMGSIZE]], part of a policy page, strongly discourages the use of '''px''' for thumbnails. This is for very good reason, as '''px''' defeats the user preference setting for default thumbnail size. Why does this guideline make no mention of that? ―[[User:Mandruss|<span style="color:#775C57;">'''''Mandruss'''''</span>]] [[User talk:Mandruss|<span style="color:#AAA;">☎</span>]] 23:26, 1 July 2015 (UTC)
:Because folks are scared there would be another riot?
:I'll continue making the obvious changes until the dragons awake... [[User:BushelCandle|BushelCandle]] ([[User talk:BushelCandle|talk]]) 02:32, 30 January 2016 (UTC)
== Use of link= ==
I'd love to get some participation at [[Wikipedia_talk:Image_use_policy#Reviving_discussion]], which regards the use of ''link=''. [[User:EEng|EEng]] ([[User talk:EEng|talk]]) 15:16, 10 January 2016 (UTC)
:I've confirmed at that page that I agree with the proposed change of text to "{{xt|If link is used with thumb, the linked image should generally be a full, uncropped image from which the thumbnail was cropped, or a full document from which thumbnail was a single page, or crop of a single page.}}" and I do agree it would be nice if others could comment too.. [[User:BushelCandle|BushelCandle]] ([[User talk:BushelCandle|talk]]) 02:36, 30 January 2016 (UTC)
==Needs move to "Extended file syntax"==
It is incorrect for this to be called extended "image" syntax, because in the past year or so it seems the developers decided to do away with the use of '''Image:''' and '''Sound:''' and '''Video:''' and now have replaced all three with the generic '''File:'''
And besides this document already includes sections on video and sounds so it isn't about just images (anymore). Need to update the article name to match the current situation. This would then become a legacy redirect to the new article name.
But this article is protected, so as a normal user I cannot do this. [[User:DMahalko|DMahalko]] ([[User talk:DMahalko|talk]]) 19:02, 9 January 2010 (UTC)
:Mmmm, that requested move seems entirely logical to me.
:Is it just that nobody helpful with time on their hands reads this page, or is there a subtle reason (that neither of us have imagined) why, after more than 6 years this obvious change has not been made? I'll make the move and see what crawls out of the woodwork to object... [[User:BushelCandle|BushelCandle]] ([[User talk:BushelCandle|talk]]) 02:27, 30 January 2016 (UTC)
:''Later'': I can't make the requested move because there is no "Move" button option visible. I suspect that page moves are limited to admins only (this is an important page)... [[User:BushelCandle|BushelCandle]] ([[User talk:BushelCandle|talk]]) 02:40, 30 January 2016 (UTC)
== Image placement dilemma ==
Hello. Just to note, I previously queried this at [https://en.wikipedia.org/w/index.php?title=Wikipedia:Help_desk&oldid=740532756#Image_placement_dilemma WP:HD], but {{u|Innisfree987|the replier}} referred me here for a better solution to this issue. The trouble I have experienced pertains to the positioning of a thumbnail at [[First Lord of the Treasury]]. The first edit I made to the article two days ago made the article [https://en.wikipedia.org/w/index.php?title=First_Lord_of_the_Treasury&oldid=740211428#List_of_First_Lords_of_the_Treasury.2C_1714.E2.80.931905 look like this], which was not helpful. I since moved the image to just below the infoboxes on the right side of the article, but I would prefer if the text could flow around the image within the [[First Lord of the Treasury#Official residence|#Official residence]] section. I am not sure how to remedy this. Thanks.--[[User:Neve-selbert|Nevé]][[Special:Contributions/Neve-selbert|–]][[User talk:Neve-selbert|selbert]] 17:30, 21 September 2016 (UTC)
:Images should be placed in the most relevant section. If this causes layout issues, {{tlx|stack begin}}/{{tlx|stack end}} may be used to group boxes together. To force a table to go below left-floated objects, style it <code>clear:left;</code>. It's not a good idea to force image sizes. In summary: {{diff|First Lord of the Treasury|740565220|740211830|these edits}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 21:37, 21 September 2016 (UTC)
::Many thanks, {{u|Redrose64}}.--[[User:Neve-selbert|Nevé]][[Special:Contributions/Neve-selbert|–]][[User talk:Neve-selbert|selbert]] 17:25, 22 September 2016 (UTC)
{{ping|Redrose64}} Hello again. I currently having trouble with the placement of an image over at [[John Stuart, 3rd Earl of Bute]]. Instead of appearing in the [[John Stuart, 3rd Earl of Bute#Life|#Life]] section where it should be, it appears all jumbled in the [[John Stuart, 3rd Earl of Bute#Family|#Family]] section (causing the numbered list to look awry). I've tried using the {{tl|Stack begin}} and {{tl|Stack end}} templates, but to no avail. Please help, thanks.--[[User:Neve-selbert|Nevé]][[Special:Contributions/Neve-selbert|–]][[User talk:Neve-selbert|selbert]] 17:55, 9 October 2016 (UTC)
:Stacking again, but in this case the image was being pulled down by the top edge of the {{tlx|toryism}} template, which was way down in the article instead of in the lede as is usual for [[WP:SIDEBAR]]s. See {{diff|John Stuart, 3rd Earl of Bute|prev|743445903|this edit}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 18:13, 9 October 2016 (UTC)
{{ping|Redrose64}} Sorry to bother you again, but could you have a look at [[Ronald Reagan#Early life]]? There is an extremely large white gap above the next section, and I'm unsure how to fix this (I have tried implementing the templates, but again to no avail.) Perhaps, the sidebar should be moved somewhere else. Thanks again.--[[User:Neve-selbert|Nevé]][[Special:Contributions/Neve-selbert|–]][[User talk:Neve-selbert|selbert]] 05:50, 15 October 2016 (UTC)
:Some people have an allergic aversion to any image opposite any other image or infobox, but it's nonsense if you're careful. Take a look. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 06:05, 15 October 2016 (UTC)
::Thanks {{u|EEng#s}}. What a simple solution!--[[User:Neve-selbert|Nevé]][[Special:Contributions/Neve-selbert|–]][[User talk:Neve-selbert|selbert]] 06:13, 15 October 2016 (UTC)
:::You may wire my fee to the usual account. It depends how you interpret [[WP:SANDWICH]]'s injunction to "avoid sandwiching text between two images that face each other, or between an image and infobox, navigation template, or similar". Some people interpret that to forbid ''any'' text between an box/image on the left and a box/image on the right, regardless of the boxes/images widths. But I interpret it to mean the text shouldn't be "sandwiched" in the sense of being squeezed into an unattractively narrow column because the total width of the boxes/images on either side takes up too much of the horizontal width. In this case both the images (on the left) and the box (on the right) are relatively narrow, so it looks fine.
:::I'm assuming you have a wide-screen display. Notice that if you simulate an older, narrower display by narrowing the window, something very satisfying happens, in that the images get forced down to the point where they're not opposite the infobox anymore anyway, so that either way there's no unsightly narrow column of text. The same technique is used at [[Widener_Library#Parallel_classification_systems_and_dual_catalogs]] and at [[Phineas_Gage#Accident]]. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 07:32, 15 October 2016 (UTC)
::::{{ping|EEng#s}} Hi again. I've replaced the thumbnails with {{tl|Multiple image}} to have the two images conjoined, but the placement is not where it should be. Not sure exactly how to work this one out. I've tried stacking, but again to no avail.--[[User:Neve-selbert|Nevé]][[Special:Contributions/Neve-selbert|–]][[User talk:Neve-selbert|selbert]] 19:42, 15 October 2016 (UTC)
:::::To the original q: the large white gap was simply the presence of {{tlx|Clear}}, nothing more. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 20:29, 15 October 2016 (UTC)
::::::While that's strictly true, but removing the /clear/ merely revealed another problem, which still needed solving. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 21:54, 15 October 2016 (UTC)
== Infobox images/borders ==
I couldn't find anything regarding the use of <code><nowiki>{{!}}border</nowiki></code> for infoboxes which do not have a <code>border =</code> field. Nothing at [[MOS:IMAGES]] or [[MOS:INFOBOX]] to explain it. So, I once saw an admin insert <code><nowiki>{{!}}border</nowiki></code> to a whitespace infobox image, but where did that switch come from? Is there a template or MOS for it? Despite how mysterious it is to me, I do enjoy using it wherever I see images in need of it (except for {{tl|Infobox album}}, which rightfully does make use of a <code>border =</code> field). Should I keep using it or try something else? [[User:Mac Dreamstate|Mac Dreamstate]] ([[User talk:Mac Dreamstate|talk]]) 23:36, 5 August 2016 (UTC)
:{{replyto|Mac Dreamstate}} The <code>{{tn|!}}</code> template emits a pipe character <code>|</code> which is not treated as a separator by the template parser, so it's passed through from the infobox as a pipe. So <code><nowiki>{{!}}border</nowiki></code> has the effect of putting {{para||border}} into an image specification, as described at [[WP:EIS#Border]]. Use this trick ''sparingly'' - only when the image is intentionally rectangular, has a white background, and no other method exists. Infoboxes with an appropriate parameter are few, for example it was added to {{tlx|Infobox album}} with {{diff|Template:Infobox album|prev|180566975|this edit}}. It's also provided with {{tlx|infobox book}}, {{tlx|infobox film}} and {{tlx|Infobox newspaper}} and some others. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 08:12, 6 August 2016 (UTC)
::Very good to know. If I were to add such a parameter to {{tl|Infobox boxer}}, which I use extremely often, would I simply copy and paste [https://en.wikipedia.org/w/index.php?title=Template:Infobox_album&diff=prev&oldid=180566975 this], or does it need tweaking? I also see the need for borders constantly at {{tl|Infobox video game}} and {{tl|Infobox person}}. [[User:Mac Dreamstate|Mac Dreamstate]] ([[User talk:Mac Dreamstate|talk]]) 15:53, 6 August 2016 (UTC)
:::The technique for adding support for {{para|border|yes}} (or similar) will vary between infoboxes, as they don't all have the same parameters (or underlying code) for images. For any given infobox, it's best to propose the change at its talk page, particularly for something as widely-used as {{tlx|Infobox person}} - this one would be discussed at [[Template talk:Infobox person]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 20:42, 6 August 2016 (UTC)
The current infobox border, whether invoked using <code>border=yes</code> or <code><nowiki>{{!}}border</nowiki></code>, is much too light now. On my LED display it's barely perceptible. Could it be made to look like it did a year ago? [[User:Mac Dreamstate|Mac Dreamstate]] ([[User talk:Mac Dreamstate|talk]]) 17:49, 13 January 2017 (UTC)
:{{replyto|Mac Dreamstate}} Please give examples. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[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 <syntaxhighlight lang=css>img.thumbborder {
border: 1px solid #eaecf0;
}</syntaxhighlight> 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]] 🌹 ([[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)
== Feature Request: Mirror ==
I'd like to request a new feature that allow a user to flip horizontally or mirror an image without having to upload a separate file that has been manually edited. I understand that CSS supports this functionality but it would be extremely helpful if it were built in the Wiki image syntax as it does not work well with thumb nail viewing. Thank you.--[[User:TriiipleThreat|TriiipleThreat]] ([[User talk:TriiipleThreat|talk]]) 16:03, 14 September 2017 (UTC)
:I'd be interested to know where this feature would be used. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 16:21, 14 September 2017 (UTC)
::We'll in journalism it is considered a faux pas to place an image so that it faces off-screen or away from the text. Because of this users are forced to choose a less desirable image that faces the correct way, alternate the image to the other side, or face the image off-screen.--[[User:TriiipleThreat|TriiipleThreat]] ([[User talk:TriiipleThreat|talk]]) 16:58, 14 September 2017 (UTC)
:::{{replyto|TriiipleThreat}} There is nothing that can be done here. If you want a new option in the image syntax, that would require a new feature in the MediaWiki software, in which case please file a request at [[phabricator:]]. If you want a new tool (like the existing tool at [[commons:]] that marks an image for rotation, to be actioned by a bot), I would suggest that the place to ask for advice would be [[c:COM:GVP]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 23:26, 14 September 2017 (UTC)
::::I [https://phabricator.wikimedia.org/T93634 did] a while ago but after some initial traction and support it went no where.--[[User:TriiipleThreat|TriiipleThreat]] ([[User talk:TriiipleThreat|talk]]) 01:35, 15 September 2017 (UTC)
:::I thought you'd say that. The problem is that there are very few images that can be reversed without creating a false portrayal. People certainly shouldn't be reversed -- see [[MOS:IMGLOC]]. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 00:47, 15 September 2017 (UTC)
::::It doesn't just apply to people but use for people is justified if they don't have distinguishing features like scars or birthmarks.--01:30, 15 September 2017 (UTC)
:::::No, it's not. Faces and bodies are rarely symmetric and you should not falsify what the reader sees to satisfy some picayune "rule". If you want, move the image to the opposite margin. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 02:27, 15 September 2017 (UTC)
::::::There is never a justification to mirror an image. -- [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 04:07, 15 September 2017 (UTC)
:::::::Well, not ''never'' [https://en.wikipedia.org/?oldid=800226022#cite_note-dags-126] but that's an extraordinary circumstance. I suppose it might be OK to reverse a bacterium or an unidentified dancer (say, to match a pose seen in another image) but even there I'm not sure. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 11:03, 15 September 2017 (UTC)
::::::::Again, this applies to more than just people and the opposite margin is not always an option. It's about drawing the readers attention towards the text, not away from it.--[[User:TriiipleThreat|TriiipleThreat]] ([[User talk:TriiipleThreat|talk]]) 12:25, 15 September 2017 (UTC)
:::::::::People, dogs, horses, cars, cliffs, boats, doesn't matter. We're not going to falsify images because of this preoccupation with "facing". Readers will find the text despite their attention being deflected. '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 12:32, 15 September 2017 (UTC)
::::::::::Images are already freely transformed on Wikipedia, this would just save a few steps. But it doesn't sound like I am going to convince you, so I'll withdraw my request and just let the status quo remain.--[[User:TriiipleThreat|TriiipleThreat]] ([[User talk:TriiipleThreat|talk]]) 13:28, 15 September 2017 (UTC)
:::::::::::Can you give an example of a human image being reversed? '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 14:27, 15 September 2017 (UTC)
::::::::::::There's [[c:Category:Flopped images]] at Commons. None of them ought to be used. -- [[User:Michael Bednarek|Michael Bednarek]] ([[User talk:Michael Bednarek|talk]]) 01:45, 16 September 2017 (UTC)
:::::::::::::Good heaven's, they even reversed the Queen! Is there no ''respect'' anymore? '''[[User:EEng#s|<span style="color:red;">E</span>]][[User talk:EEng#s|<span style="color:blue;">Eng</span>]]''' 02:12, 16 September 2017 (UTC)
:You can do this with CSS. Certainly it might be helpful for some images (e.g. an arrow) but in those few cases it's easier and more reliable to just save two copies of the image. Example (won't work on older browsers, and so not really advisable):
:{{Inline block|style=transform: scaleX(-1);|[[File:Bunny_Photo.jpg|thumb|none|This image and text is flipped.]]|div}}{{Inline block|[[File:Bunny_Photo.jpg|thumb|none|This is facing the right way.]]|div}}
:An example of legitimately flipped images on Commons is [[:File:Biochem_reaction_arrow_forward_NNNN_horiz_med.svg]] and its mirror [[:File:Biochem_reaction_arrow_reverse_NNNN_horiz_med.svg]]. [[User:GKFX]]<sup>[[User talk:GKFX|talk]]</sup> 22:13, 13 July 2018 (UTC)
: Dear [[User:TriiipleThreat|TriiipleThreat]], the [[Help:Pictures#Tips]] tutorial mentions the {{tlx|mirrorH}} template, and I see it currently being used on a few Wikipedia articles.
: I also see that [[Wikipedia:Image dos and don'ts]] suggests "Don't flip faces, text, or works of art." -- but that leaves lots of other things that are probably OK to flip. --[[User:DavidCary|DavidCary]] ([[User talk:DavidCary|talk]]) 18:09, 15 May 2019 (UTC)
== Video quality? ==
Is there a way to define the default video quality, other than setting the thumbnail size? I would like to display the video in a small frame but still with a high resolution as some details cannot be read otherwise. --[[User:Signimu|Signimu]] ([[User talk:Signimu|talk]]) 14:16, 20 November 2019 (UTC)
:Not sure, but the solution may lie in the ''|link='' parameter, which allows you to display one file in the thumb but actually take readers to a different file when they click. I use it sometimes to display a cropped closeup in the thumb but show readers the full image when they click -- for example the first two images (the map and the railroad tracks) at [https://en.wikipedia.org/?oldid=926587569#Life]. [[User:EEng#s|<b style="color: red;">E</b>]][[User talk:EEng#s|<b style="color: blue;">Eng</b>]] 20:24, 20 November 2019 (UTC)
::Ah thank you for the suggestion, that may be useful indeed, but my purpose is more to show directly a high-resolution video when the reader clicks on the play button, without having to follow a link. My typical use case would be like the [[WP:REFSTART#Using_refToolbar|video tutorial here]], which is unreadable even in full screen if the user is not pressing the gear icon to set a higher resolution, as by default the video player selects the quality not based on the user's internet speed but on the thumbnail size :-/ --[[User:Signimu|Signimu]] ([[User talk:Signimu|talk]]) 21:12, 20 November 2019 (UTC)
::To clarify, I mean it's weird that even when the video is enlarged in full screen, the resolution is not automatically changed to a higher quality. For a long time it fooled me into thinking there was no better quality available, and I am a computer scientist, so I expect most readers will be fooled as well {{=(}} An alternative solution is to make videos with big text that is readable even with a scaled-down thumbnail size, but it's not possible for all videos (such as the one I link above, since the text size is the one on Wikipedia as shown on a typical computer screen). --[[User:Signimu|Signimu]] ([[User talk:Signimu|talk]]) 21:15, 20 November 2019 (UTC)
:::Now that I see that the file at issue is an ogv, you're right that ''|link='' doesn't help -- in fact my experiments suggest that ''|link='' doesn't do anything with an ogv (though I didn't experiment exhaustively). [[User:EEng#s|<b style="color: red;">E</b>]][[User talk:EEng#s|<b style="color: blue;">Eng</b>]] 23:48, 20 November 2019 (UTC)
{{od|3}}
Should I open a ticket on WMFlabs maybe? To propose a parameter so that we can force a default quality explicitly? --[[User:Signimu|Signimu]] ([[User talk:Signimu|talk]]) 00:17, 21 November 2019 (UTC)
:I am not joking when I say you'd be lucky to see such a parameter become available anywhere between 3 and 5 years from now, if ever. I'd suggest you start by just waiting here a week or so to see if some image-syntax experts show up. [[User:EEng#s|<b style="color: red;">E</b>]][[User talk:EEng#s|<b style="color: blue;">Eng</b>]] 06:41, 21 November 2019 (UTC)
== Floating objet? ==
What is an [[visual floating object]] in markup languages, as HTML?. There is not a Wikipedia or Help page, section or definition about. Here there is a good guide, from [[W3C]]:
* [https://www.w3.org/TR/html401/present/graphics.html#h-15.1.3 Floating objects].<br />
--[[User:BoldLuis|BoldLuis]] ([[User talk:BoldLuis|talk]]) 18:57, 27 April 2020 (UTC)
:: How is this different from [[Wikipedia:Extended image syntax#Location]] and [[Wikipedia:Extended image syntax#Aligning thumbnails to fit into text]]? - [[User:Dcljr|dcljr]] ([[User talk:Dcljr|talk]]) 22:46, 27 April 2020 (UTC)
== Vertical alignment does not work in mobile page ==
If you look this page in mobile browser with MinervaNeue theme, the vertical alignment does not work. So what's wrong with it? [[User:Great Brightstar|Great Brightstar]] ([[User talk:Great Brightstar|talk]]) 02:51, 25 October 2018 (UTC)
:MinervaNeue does this sort of thing all the time; tables in particular are liable to get quite broken by Minerva if you've tried anything complex.
:However, in this specific case, something weird is happening; all the images appear to have vertical-align: middle on [[WP:EIS]], but if I copy the same content to [https://en.m.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=865647270 the sandbox], it works and all have the correct vertical-align set in a style parameter. I'll raise a bug on Phabricator. [[User:GKFX]]<sup>[[User talk:GKFX|talk]]</sup> 08:15, 25 October 2018 (UTC)
:Bug is at {{Phab|T207929}}. [[User:GKFX]]<sup>[[User talk:GKFX|talk]]</sup> 08:29, 25 October 2018 (UTC)
The bug was resolved on August 26 and it seems to now be working correctly. [[User:GKFX]]<sup>[[User talk:GKFX|talk]]</sup> 19:51, 13 September 2020 (UTC)
== Problem with vertical alignement and mobiles ==
Hi everyone,
Following the creation of a Wikipedia template, I just realized a problem with mobile positioning.
Indeed, when I insert an image by specifying a vertical-alignment "text-top", it is not reflected in the "style" attribute of the span allowing lazy-loading of the image in the mobile version of Wikipedia.
The template page: https://fr.wikipedia.org/wiki/Mod%C3%A8le:Lignes_trains_suisses/type
The page where I encounter the problem: https://fr.m.wikipedia.org/wiki/InterCity_(Switzerland)
It is still problematic that positioning attributes are poorly managed with lazy-loading on Wikipedia Mobile.
Best regards,
[[User:Remontees|Remontees]] ([[User talk:Remontees|talk]]) 07:56, 10 July 2020 (UTC)
:You mean https://fr.m.wikipedia.org/wiki/InterCity_(Suisse). I don't have help. [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 09:31, 10 July 2020 (UTC)
{{ping|Remontees}} This was fixed on August 25 and seems to be working okay now. Do check the rest of the talk page before making your own post as this was already being discussed above. [[User:GKFX]]<sup>[[User talk:GKFX|talk]]</sup> 19:53, 13 September 2020 (UTC)
== How do we specify background color? ==
How do we specify a background color, so that e.g. black text is visible on a black background? I'm looking at the info box in [[Atlantean language]]. Thanks. — [[User:Kwamikagami|kwami]] ([[User talk:Kwamikagami|talk]]) 06:37, 16 April 2021 (UTC)
:I have an idea. Give me 15 minutes... <b style="font:1.3em/1em Trebuchet MS;letter-spacing:-0.07em">[[User:nagualdesign|<b style="color:#000">nagual</b>]][[User talk:nagualdesign|<b style="color:#AA9">design</b>]]</b> 07:05, 16 April 2021 (UTC)
:..Took a little longer than expected. I created a new image file, [[:File:Dig Adlantisag.png]], and added it to the infobox. Ping me if you'd like any alterations. <b style="font:1.3em/1em Trebuchet MS;letter-spacing:-0.07em">[[User:nagualdesign|<b style="color:#000">nagual</b>]][[User talk:nagualdesign|<b style="color:#AA9">design</b>]]</b> 07:44, 16 April 2021 (UTC)
::Thanks! That looks beautiful; I was hoping for an easy fix rather than hand the work over to someone else, but there probably won't be many times we need to do something like this. — [[User:Kwamikagami|kwami]] ([[User talk:Kwamikagami|talk]]) 08:26, 16 April 2021 (UTC)
:::I don't mind in the least. It was pretty straightforward. I could do something similar for the [[Klingon language]] infobox if you like. <b style="font:1.3em/1em Trebuchet MS;letter-spacing:-0.07em">[[User:nagualdesign|<b style="color:#000">nagual</b>]][[User talk:nagualdesign|<b style="color:#AA9">design</b>]]</b> 08:34, 16 April 2021 (UTC)
:::..Since the Klingon fonts don't show up on desktop or mobile I went ahead and replaced the ''altname'' parameter with [[:File:tlhIngan Hol.png]]. <b style="font:1.3em/1em Trebuchet MS;letter-spacing:-0.07em">[[User:nagualdesign|<b style="color:#000">nagual</b>]][[User talk:nagualdesign|<b style="color:#AA9">design</b>]]</b> 10:26, 16 April 2021 (UTC)
== Displaying thumb of some video without that "Play the Video"-Button ==
[[File:Ward Cunningham, Inventor of the Wiki.webm|thumb|Interview with [[Ward Cunningham]], inventor of the wiki]]
Is there any way, any magic keyword to show just the preview image of a video without that Start-Button, like it is in [{{fullurl:Wiki|action=info}} Page information of Wiki]? --[[User:Wurgl|Wurgl]] ([[User talk:Wurgl|talk]]) 09:23, 21 May 2021 (UTC)
:I think your best bet would be [[WP:TemplateStyles]] to set <code>background-image: none</code> on <code>.mw-tmh-player.video > .mw-tmh-play:not(:hover)</code>. The last part of that makes sure the play button is able to reappear on hover. [[User:GKFX]]<sup>[[User talk:GKFX|talk]]</sup> 11:42, 21 May 2021 (UTC)
:: It is for german wikipedia where that template is missing. Importing that template (causing sure a lot of discussion) is too much effort for a very few (maybe 3) videos/images. I was hoping there might be some undocumented parameter. However, thanks. --[[User:Wurgl|Wurgl]] ([[User talk:Wurgl|talk]]) 09:34, 23 May 2021 (UTC)
|