Wikipedia talk:Extended image syntax/Archive 3
This is an archive of past discussions on Wikipedia:Extended image syntax. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 |
Thumbnail px size
Should we discourage the use of literal px sizes for thumbnails? I think they should only be used for diagrams that need to be smaller but readable, for instance. Then recommend that if the user likes bigger thumbnails to change the setting in their preferences instead. — Omegatron 16:06, 29 December 2005 (UTC)
- I strongly believe we should discourage hard-coding pixel size in. We don't know what size screen an editor is using, so we have no idea what's appropriate. "thumb" is sufficient, with the default being the smallest (since users with small screens suffer from large pics more than users with large screens suffer from small pics). pfctdayelise 13:52, 3 January 2006 (UTC)
- This has really been bugging me recently. Whenever people specify an image size it's usually to make the image bigger than the default 180px, but they usually choose a size that's still too small for me. I'm going to be bold and add a note about this to the page (this was discussed before). ~MDD4696 17:41, 29 April 2006 (UTC)
- I agree we should discourage literal pixel sizes. After all, 100px may be 8.5cm or 8.5mm depending on the device used to view the page. Perhaps it would be nice if there were "magic words" to indicate sizes like "larger than a usual picture", "icon", "a multiple of the line height" (ems?), a percentage of the default size, or the like. Shinobu 00:03, 13 June 2006 (UTC)
- It still happens very often that a lot of images are being size fixed (usually to make them bigger). Considering the inherent problems of defining a fixed size for images, and the visual inconsistency when the article contains all kinds of images at all kinds of sizes, I think there is a need for a MoS directive on this. Who wants to help? Shinobu 08:42, 8 August 2006 (UTC)
- This has really been bugging me recently. Whenever people specify an image size it's usually to make the image bigger than the default 180px, but they usually choose a size that's still too small for me. I'm going to be bold and add a note about this to the page (this was discussed before). ~MDD4696 17:41, 29 April 2006 (UTC)
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. 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. --AliceJMarkham (talk) 07:19, 10 July 2008 (UTC)
Suggestion: Add "link" option to Image syntax
Is there a way to link to a different page other than the image's source?
I see this question asked above but not answered.
If there is no way, I suggest that someone add a link option to the image syntax. --Tiger MarcROAR! 20:37, 8 January 2006 (UTC)
- 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. — Omegatron 23:55, 2 March 2006 (UTC)
- For imaging licensing purposes such as attribution it is important that the image link to it's media page, links can be put in the caption. HighInBC (Need help? Ask me) 03:15, 14 December 2006 (UTC)
- This is true on wikipedia, but on some wikis it might be more convenient to have a simple way to make an image a direct link. (The hacks you have to go through for this right now are ridiculous, btw.) --Starwed 12:22, 21 July 2007 (UTC)
- For imaging licensing purposes such as attribution it is important that the image link to it's media page, links can be put in the caption. HighInBC (Need help? Ask me) 03:15, 14 December 2006 (UTC)
Any way to pad images?
Looking at the infobox on the current AT&T page, I noticed that the logo was cropped a little too closely; there's not enough white space on the top or bottom, especially the top. But I can't figure out a way to add some padding around the image. I know I could just edit the image itself, but I was wondering if there is any Wikimarkup in place to allow padding that I'm just not aware of. And if there isn't, could there be? --Aaron 03:39, 27 January 2006 (UTC)
- It probably could be. I don't know what you're asking, exactly. — Omegatron 23:54, 2 March 2006 (UTC)
- I'm looking for something similar, I would like to be able to pad the diagram image here (among other places) so that the frame matches the width of the picture below it (and is wide enough to fit the caption). I could mess around and add the extra space to the image itself, but that's reaallly ugly. - Mobius 18:04, 31 May 2006 (UTC)
picture below picture, still aligned
i've been looking for a while and i can't seem to find any way to have more than one picture aligned to the same side of the page with text on the other side rather than just in between the images. is it even possible? Amirman 22:38, 2 March 2006 (UTC)
Can't you just put them above each other?
Test test test goof pop rawr jig pow foo biz baz boom test test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boomtest test goof pop rawr jig pow foo biz baz boom
Or maybe I don't understand what you're asking... — Omegatron 23:52, 2 March 2006 (UTC)
"Compatibility considerations"
I am surprised to see the "Compatibility considerations" section Omnplex added recently, and I would like to remove it. Compatibility with browsers that don't support
float
is hardly a concern. If people are using browsers like IE5 or NN4, they've got to expect that web sites might look a little screwed up. All modern (as in, released within that past 2-3 years) support floats just fine. This legacy code just clutters up the wikicode. ~MDD4696 17:45, 20 May 2006 (UTC)
- Eh, I fixed it. ~MDD4696 17:51, 20 May 2006 (UTC)
Black and white
Is there a way to setup a color image to be displayed on a article in black and white?--BerserkerBen 18:35, 23 May 2006 (UTC)
Border around images
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. --LambiamTalk 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 {{border}} but messing up the text afterward. OzLawyer 19:19, 5 July 2006 (UTC)
Enlarge bug
As you can see in the 2nd part of the thumb/thumbnail subsection, the globe is not being enlarged on the project page. └ VodkaJazz / talk ┐ 12:31, 22 June 2006 (UTC)
Scaling should be done with Height, or both Height and Width
I am currently writing an article (in another Wiki-project) that requires a lot of pictures. All of them have varied widths and heights, some are very tall while others are flat and wide. The problem is that I have not that much text but a lot of images, so unless I scale down the pictures, I end up with a lot of space filled with nothing but images. If there was a way to scale down pictures with height I could easily fix this problem. --Ravenstorm 18:22, 17 July 2006 (UTC)
- OOoooh that would be a very nice feature (where you could specify max height, max width and have it size to fit). In the meantime I've always just calculated the width from the desired height, I know of no automatic way. - Mobius 18:51, 17 July 2006 (UTC)
- Resizing by height also gives problems with tall, thin images: it seems resized pictures are stored by width, and values are rounded, so trying to specify these by height leads to problems, especially if one is trying to place many tall, thin images next to each other and match the heights - as I am :-P
- Just in case you haven't a clue what I'm getting at, here's an example:
- — cBuckley (Talk • Contribs) 23:49, 10 October 2006 (UTC)
- It's SVG, it must be trivial to combine them. That would be neater anyway. Shinobu 10:40, 11 October 2006 (UTC)
- — cBuckley (Talk • Contribs) 23:49, 10 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
{{Motorway sign|M|1}}
. Any ideas? — cBuckley (Talk • Contribs) 11:31, 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
I have a transparent gif image
that does not display correctly on pages with white background. Is there any tag to change the background color of image box? --Nevit 17:20, 2 September 2006 (UTC)
- No, and you probably shouldn't try to make it happen using a hack either. It's a GIF - why don't you change the palette of the image so it does show up correctly? Make the while lines some shade of light blue or grey, for example? Shinobu 15:21, 4 September 2006 (UTC)
- Thanks --Nevit 19:12, 4 September 2006 (UTC)
Centre caption text?
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.--203.214.91.152 11:55, 9 October 2006 (UTC)
- Like this, you mean? Use sparingly, if at all. Shinobu 14:50, 9 October 2006 (UTC)
Very sparingly, if ever in articles, as it is contrary to the manual of style. Elsewhere, no big deal I would say. HighInBC (Need help? Ask me) 03:18, 14 December 2006 (UTC)
Image vs. image:
Is there a difference in whether the word image is capitalized or not when typing up the syntax? I normally write them as lower case, but someone is going through some articles and capitalizing them. Does this make any difference, or is this unneccessary? Thanks. 25or6to4 23:42, 20 October 2006 (UTC)
Changing Hue or Color Masking
Is there any kind of syntax that could change the hue of a image, or apply a color mask over a image? This could help with some situation where one can simply change the appearance of a base image to achieve the effect desired instead of uploading new images every time. -- G.S.K.Lee 08:47, 22 October 2006 (UTC)
Issue with thumbnails
I have a wiki of my own, but for some time now it has had issues with thumbnails.
Images show up fine in any other situation, but some do not want to show up when I designate them as thumbnails. If this is not the appropriate place to put this, please say so in my user page instead of deleting the comment outright.--Archdeco 16:33, 30 October 2006 (UTC)
Imgages as background
Is there any way to add an image as the background in a page?
- No. And if it could be done there would be MoS guide against it before you could say "consistency". Shinobu 09:29, 16 November 2006 (UTC)
Crop option
I haven't noticed any discussion about this. I've been looking at some images that I've uploaded for one page for one reason, such as this one, and thinking that it would be nice to be able to put a cropped version of the image onto another page (eg Bull bar, Ford Falcon, Tunnel) without having to upload several differently cropped versions of the same photo.
- Any chance that this might be considered in the future? --Athol Mullen 05:02, 24 November 2006 (UTC)
- Agreed, the ability to crop on a section of an image would be great. That way watermarks and such will still be on original images and the thumbnails won't break copyright. --Jecrell 15:00, 27 November 2006 (UTC)
Font size in image caption
I'm making Simple Wiktionary definitions of words with illustrative pictures in thumbnail format. (Example: wind) I'm concerned that the image captions are in too small a font. When I display them, the image caption is in a different font style and slightly smaller print than the regular text on the page. I want readers to notice the image captions because they might assume the caption is just copyright info or something and ignore it, and then they would miss the message of how the picture relates to the definition. I tried making the captions bigger with <big> (Example: touch) and am happy with the way it looks on my browser. But another user says the font size is the same for text and image captions on his browser and advises me not to play with the font size since it will display differently for different people. Is there a way to specify that the font in the image caption is to be the same font as the regular text font on the page, whatever the user has that set to? Thanks. --Coppertwig 16:11, 3 December 2006 (UTC)
Rotation?
Is it at all possible to rotate images without manually uploading a rotated version of the picture? PaulC/T+ 05:49, 17 December 2006 (UTC)
- No, it's not, but there is a wishlist type of discussion going on in Wikipedia talk:Image use policy, and I'll add it to the list. :) --Athol Mullen 00:44, 20 December 2006 (UTC)
External images
Hello! Is there any way to include images from external servers (like the html img command) in the Mediawiki software? And to prevent comments :-): I know that this is NOT the way to edit and use Wikimedia pages, I am just testing ways if I could run Mediawiki as a CMS on my site. Thank you in advance! -- 85.212.176.192 10:21, 15 January 2007 (UTC)
- I have found it on meta:Images#Embedding external images. Sorry for the unnecessary question! -- 85.212.179.141 15:34, 16 January 2007 (UTC)
Adding Image from another WiKi
How could I add an image from another WiKi without uploading that image again?
For example I want to add an image from an English language wiki article to French language wiki article? Do I need to upload the image again? Or is there an easy way to do the same?
- You may include a a link to an image from another namespace by using the interwiki notation — for instance, I can link to an image on the French Wikipedia by using fr:Image:Sadi_Carnot.jpeg. However, if you want to include the actual image, then it should be moved to the namespace where you want to insert the image. This can be done by downloading the image, then visiting the namespace to which you wish to upload the file and uploading the file to that namespace. — cBuckley (Talk • Contribs) 00:11, 26 March 2007 (UTC)
- Apart from the incorrect use of the word "namespace", you are quite right. But by far the best way to share an image between multiple wikis is to upload it to the Wikimedia Commons, whence it becomes available to all Wikimedia projects, as though it had been uploaded to all of them at once! - IMSoP 00:54, 26 March 2007 (UTC)
- There should be a better solution for this problem. Why do we have to upload the same image to different wikis? I know, Commons (probably) created for this purpose, but it seems to me that most of the contributors upload images to their own wikis. I think there should be a way to connect pictures from different wiki sites for the same articles, say, the same article in German wiki can include a picture from French wiki without uploading the same file locally. I wonder if this is too hard to do ?? --88.238.134.61 (talk) 16:53, 14 January 2008 (UTC)
Multiple Thumbnails on a Line?
Is there any way to specify a row of thumbnail images? I'm trying to clean up the Chmmr article, and that vertical stack of thumbnails at the bottom looks ridiculous. --Clayhalliwell 18:22, 16 April 2007 (UTC)
- Have a look at WP:GALLERY. — cBuckley (Talk • Contribs) 21:19, 16 April 2007 (UTC)
bandwidth waste issue with shrunken images
It seems to me that bandwith is being used unneccesarily by some images. When making thumbnails of large PNG images, they tend to be big, at times a lot bigger than the original. I think bandwith could be saved by adding some extra compression options for thumbnails, like the option to make them jpegs instead of pngs. This also seems to be a problem with some of the image pages from which full size images are accessible. Undeaf 04:47, 4 May 2007 (UTC)
Quick fix Put this in the LocalSettings.php $wgImageLimits = array ( array(1280,1024), array(10000,10000) );
See [bug 8858]. No problems if you just use the code that I have given you. Now there are less files in the folder and plus bandwidth is minimized.
Aspect ratio change?
I have some SVG images that I wish to change the aspect ratio on. Is there some way to do this? Gregvw 15:08, 5 May 2007 (UTC)
Invisible thumbnails
I've noticed that a lot of articles, like this one are coded to display thumbnails, but the thumbnails don't show. Does anyone know what the fix is? I'm disambiguating and looking at a lot of pages that I could fix if I knew how. --Steven J. Anderson 23:25, 14 May 2007 (UTC)
Images to screen width
With <div align="{{{align|left|- padding:1em;padding-top:0.5em;" }}}"> (please point out "unclean" usage, I produced this simply by trial&error), I managed to have an image fitted to screen width. —AldeBaer 17:25, 20 May 2007 (UTC)
What if the image is on the zh, de, etc. other wikipedias
- Jidanni
- What if the image is on the zh, de, etc. other wikipedias?!
- Van helsing
- This page is on and applies to the English Wikipedia
Yes, but what if the image is on the zh, de, etc. other wikipedias?! Please mention in the document what the syntax is to use the image, or mention it is impossible. Don't just be mum on the issue! Jidanni 04:01, 1 September 2007 (UTC)
Are the images enlarged or not?
Example image with its real size.
Example image with 100px size.
Example image with 200px size.
I can see enlarged images (at least in the preview).
OK. In the saved page the images are enlarged too (tested in Internet Explorer and Firefox).
--Ajvico 07:57, 7 September 2007 (UTC)
- Try it again with "thumbnail" as mentioned on the project page. --Van helsing 09:20, 7 September 2007 (UTC)
Example image with its real size.
Example image with 100px size.
Example image with 200px size.
- See? --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.
- 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.
- At least, I didn't understood such thing when I read it (but I'm spanish, so it could be a misunderstanding).
- --Ajvico 15:25, 8 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.
"border" option seems to have gone away (or broken)
For example, [[Image:Flag of Japan.svg|22px|border]]
→ . This is a widely used and incredibly useful feature of MediaWiki syntax - what happened? Andrwsc 07:45, 9 September 2007 (UTC)
- I submitted this as a bug Bugzilla 11338 Michael Daly 17:15, 14 September 2007 (UTC)
- Actually, it's been "fixed" (sort of) as per the discussion thread at MediaWiki talk:Common.js#Internet Explorer fix for PNG transparency. There is no MediaWiki problem as far as I know. Andrwsc 18:37, 14 September 2007 (UTC)
- As per the resolution on the bug, this is a problem for versions prior to MW 1.11. It has been fixed in the latest. Michael Daly 22:18, 17 September 2007 (UTC)
Pic code not working
I tried putting my first image into an article today - a pic of USS Card into the Seattle-Tacoma Shipbuilding page. Unfortunately the code won't do what it's supposed to. It seems like it will only obey two commands but not three. Like for example, at the moment I've got it where I want it and the size I want, but it won't display the caption. If I get it to display the caption, I lose the size or the location parameter.
I'm using IE 7, don't know if that makes any difference. But the pics on all the other pages display fine, so why not this one?Gatoclass 14:51, 21 October 2007 (UTC)
Resizing of Some GIFs Rendering Poorly; Setting Needs Changing?
The resizing of images for thumbnails generally works great, but for some reason it does not for a small subset of images. This subset seems to be GIF images with large transparent backgrounds, e.g. logos. When they are being resized, some of the foreground is being dropped. This dropping does not occur if you resize in Photoshop. Could it be that a simple change in setting is needed?
Examples:
- [1]
- [2] —Preceding unsigned comment added by 72.94.249.34 (talk) 23:26, 2 March 2008 (UTC)
Image background color for transparencies
How can you change the background color from the default white, when using transparent PNGs? --Adoniscik(t, c) 23:51, 24 March 2008 (UTC)
Requests for help
Those in need of help may get a faster response by asking at Wikipedia:Help desk. --—— Gadget850 (Ed) talk - 11:35, 17 June 2008 (UTC)
Image syntax and parser functions
Is it possible for one to parse things like |thumb|left and such so that it would be [[Image:Image.jpg|{{{1|}}}|{{{1|}}}]]?
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.— Dædαlus Contribs /Improve 08:57, 14 October 2008 (UTC)
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. ηoian ‡orever ηew ‡rontiers 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? —Michael Z. 2008-12-08 00:23 z
- The "alt=" option is fairly new. I have attempted to document it now, but I am not sure that I got the details right. —AlanBarrett (talk) 21:38, 2 February 2009 (UTC)
Other units besides PX?
Some images (such as those generated by the {{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. 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. —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? Wikidea 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. —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? Buɡboy52.4 (talk) 02:31, 8 March 2009 (UTC)
Positioning
Why does this version 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. 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?
[[Image:Westminstpalace.jpg|200px|caption text|link=Westminster Abbey]]
Thanks. -Legaia (talk) 19:22, 1 May 2009 (UTC)
- IIRC, it was introduced in version 1.14 --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://wiki.riteme.site/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. 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. 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 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. -- Michael Bednarek (talk) 14:55, 20 October 2009 (UTC)
- Thanks a lot. It looks a lot better. Cheers 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: "Qwan Ki Do" on 19 October 2009 06:34. -- Michael Bednarek (talk) 14:23, 21 October 2009 (UTC)
- Thanks a lot. It looks a lot better. Cheers Fsjmax (talk) 17:23, 20 October 2009 (UTC)
Sound file linking
Is there an equivalent of this page for sound files? -- Ϫ 02:06, 2 November 2009 (UTC)
- Sorry, not that I know of. Eubulides (talk) 03:27, 2 November 2009 (UTC)
- Hmm, Perhaps there should be? -- Ϫ 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 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. -- Michael Bednarek (talk) 13:54, 8 November 2009 (UTC)
0.75, not 0.78
A 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 fixed the project page to make this clearer. Eubulides (talk) 06:08, 12 November 2009 (UTC)
- Thanks for the investigation and clarification! Binksternet (talk) 13:01, 12 November 2009 (UTC)
problems converting {{click}} to new syntax
I've noticed that certain images don't seem to display correctly when I convert the deprecated {{click}} to the new format. In other words, some images become slightly larger than with the {{click}} template, even though I'm using the same parameters. Does anyone know why this might be happening? --Ixfd64 (talk) 18:42, 12 November 2009 (UTC)
- Could you please give a specific example? Eubulides (talk) 21:13, 12 November 2009 (UTC)
- It seems to happen with certain images. I've provided an example below:
{{click|link=Wikipedia:Administrators|image=Goldenwiki.png|width=20|height=20|title=Example text.}}
produces
while
[[file:Goldenwiki.png|link=Wikipedia:Administrators|20px|title=Example text.]]
produces
- As you can see, the lower image is slightly larger. --Ixfd64 (talk) 07:20, 13 November 2009 (UTC)
- The lower image isn't using the correct syntax. You want this:
[[file:Goldenwiki.png|link=Wikipedia:Administrators|20x20px|Wikipedia administrators]]
- which produces an image that is the size you want and does not generate an unwanted "title=" in the tooltip or alt text. Eubulides (talk) 08:08, 13 November 2009 (UTC)
- I see. Thanks for clearing this up! --Ixfd64 (talk) 18:18, 13 November 2009 (UTC)
Orientation glitch
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 gallery of contributions. Cheers 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 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
; but interestingly enough it's not working in this talk page for me right now (a caching problem perhaps?). If the problem persists, I suggest taking it up at Wikipedia:Village pump (technical). 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. 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 Bjenks (talk) 03:03, 21 November 2009 (UTC)
Placement of text
Example (left caption) |
Test (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. Tom Reedy (talk) 20:41, 15 January 2010 (UTC)
- It's possible, but I don't understand why anyone would do that. -- 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. 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? 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? Here's the template's code if it helps. The file link is right after <div style> 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 <span title=""> inside and around the file link and I tried using {{!}} 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! --Kuhafile (talk) 22:27, 5 March 2010 (UTC)
- See WP:PIC#Plain pictures. For example, "
[[File:Example.svg|x20px|link=Main page|alt=just another example|Woo hoo!]]
" produces an image that says "Woo hoo!" when you mouse over it. 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! --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.--Zereshk (talk) 22:01, 15 July 2010 (UTC)
(caption) |
- Not directly, but one can construct a table to suit:
{| align=right
|(caption)
|-
|[[File:Example.jpg|90px]]
|}
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)? - J. Johnson (JJ) (talk) 22:12, 4 August 2010 (UTC)
- added note in lead and 'size' section - good enough ? Lee∴V (talk • contribs) 09:43, 5 August 2010 (UTC)
- That should work. Thanks - J. Johnson (JJ) (talk) 20:21, 12 August 2010 (UTC)
Rotation
No means to rotate by 90, 180 or 270 degrees? 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. 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. — Preceding unsigned comment added by Oayfer (talk • contribs) 18:02, 19 April 2011 (UTC)
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 --Codrin.B (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. --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... --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 {{Css Image Crop}}
, but it doesn't let you float the image and it's incompatible with {{Infobox}}
. I'd like to place this image in the infobox at William Ellis (missionary) please: nagualdesign (talk) 21:41, 4 December 2011 (UTC)
- This will require a software update; see WP:BUG. ---— Gadget850 (Ed) talk 23:55, 4 December 2011 (UTC)
- It seems to me that image floating is supported by {{Css Image Crop}}.
{{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) }}
- It is however possible that I am not paying attention. fredgandt 00:05, 5 December 2011 (UTC)
- Yes, it does seem to float against text (although it doesn't seem to like the <pre> box above). Not sure why I couldn't get it to work before. Anyhow, it's still incompatible with
{{Infobox}}
, passing excess wikimarkup from{{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? nagualdesign (talk) 00:23, 5 December 2011 (UTC)
- Yes, it does seem to float against text (although it doesn't seem to like the <pre> box above). Not sure why I couldn't get it to work before. Anyhow, it's still incompatible with
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. Eric talk 00:46, 14 March 2012 (UTC)
- Specifying a size doesn't affect whether a caption will show or not. For displaying a caption, the essential item is either
frame
orthumb
. The difference between these are thatframe
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); whereasthumb
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. --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 --Eric talk 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
{{multiple image}}
. --Redrose64 (talk) 18:59, 14 March 2012 (UTC)- Ok, thanks again! Eric talk 21:32, 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
- 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 --Eric talk 16:51, 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? Johnmperry (talk) 06:51, 17 November 2012 (UTC)
- 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. --Redrose64 (talk) 09:42, 17 November 2012 (UTC)
|
- 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 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. -- Michael Bednarek (talk) 12:20, 17 November 2012 (UTC)
We at WV are working on a main page redesign
The primary proposal is here [3]. The difficulty is that we need the image to stay on the page at different screen sizes. Anyway to do this? Doc James (talk · contribs · 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 [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! Llywelyn2000 (talk) 13:37, 9 May 2013 (UTC)
Semi-protected edit request on 11 October 2014: Clean up syntax statement to make more readable
This edit request to Wikipedia:Extended image syntax has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I suggest changing the syntax statement at the very beginning of the article from this:
[[File:
Name|
Type|
Border|
Location|
Alignment|
Size|link=
Link|alt=
Alt|
Caption]]
To this:
[[File:Name|Type|Border|Location|Alignment|Size|link=Link|alt=Alt|Caption]]
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. BlueFenixReborn (talk) 07:11, 11 October 2014 (UTC)
Parameter «lang=» not described
Please, add description of lang=
parameter. Usage example:
- [[File:name.svg|lang=fr]].
SVG file may contain following code:
<switch>
<text x="0" y="0" systemLanguage="en"> English text </text>
<text x="0" y="0" systemLanguage="fr"> French text </text>
</switch>
This is supported by rsvg and can be used to localisation. 94.180.44.12 (talk) — Preceding undated comment added 15:15, 24 April 2015 (UTC)
- 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? --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:
I tried 70x200px
" and also 70px|x200px
but it doesn't work. Thanks!
Razvan Marinescu (talk) 10:48, 17 August 2015 (UTC)
- @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. ―Mandruss ☎ 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. Razvan Marinescu (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. —Preceding unsigned comment added by 96.61.90.239 (talk) 06:26, 18 May 2010 (UTC)
- I note commons:Category:Animated gifs exceeding the 12.5MP limit seems to explain when animated GIFs work. Mark Hurd (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 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. 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? ―Mandruss ☎ 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... 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=. EEng (talk) 15:16, 10 January 2016 (UTC)
- I've confirmed at that page that I agree with the proposed change of text to "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.. 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. 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... 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)... BushelCandle (talk) 02:40, 30 January 2016 (UTC)
Image placement dilemma
Hello. Just to note, I previously queried this at WP:HD, but 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 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 #Official residence section. I am not sure how to remedy this. Thanks.--Nevé–selbert 17:30, 21 September 2016 (UTC)
- Images should be placed in the most relevant section. If this causes layout issues,
{{stack begin}}
/{{stack end}}
may be used to group boxes together. To force a table to go below left-floated objects, style itclear:left;
. It's not a good idea to force image sizes. In summary: these edits. --Redrose64 (talk) 21:37, 21 September 2016 (UTC)- Many thanks, Redrose64.--Nevé–selbert 17:25, 22 September 2016 (UTC)
@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 #Life section where it should be, it appears all jumbled in the #Family section (causing the numbered list to look awry). I've tried using the {{Stack begin}} and {{Stack end}} templates, but to no avail. Please help, thanks.--Nevé–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
{{toryism}}
template, which was way down in the article instead of in the lede as is usual for WP:SIDEBARs. See this edit. --Redrose64 (talk) 18:13, 9 October 2016 (UTC)
@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.--Nevé–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. EEng 06:05, 15 October 2016 (UTC)
- Thanks EEng#s. What a simple solution!--Nevé–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. EEng 07:32, 15 October 2016 (UTC)
- Thanks EEng#s. What a simple solution!--Nevé–selbert 06:13, 15 October 2016 (UTC)
- @EEng: Hi again. I've replaced the thumbnails with {{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.--Nevé–selbert 19:42, 15 October 2016 (UTC)
- To the original q: the large white gap was simply the presence of
{{Clear}}
, nothing more. --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. EEng 21:54, 15 October 2016 (UTC)
- To the original q: the large white gap was simply the presence of
- @EEng: Hi again. I've replaced the thumbnails with {{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.--Nevé–selbert 19:42, 15 October 2016 (UTC)
Infobox images/borders
I couldn't find anything regarding the use of {{!}}border
for infoboxes which do not have a border =
field. Nothing at MOS:IMAGES or MOS:INFOBOX to explain it. So, I once saw an admin insert {{!}}border
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 {{Infobox album}}, which rightfully does make use of a border =
field). Should I keep using it or try something else? Mac Dreamstate (talk) 23:36, 5 August 2016 (UTC)
- @Mac Dreamstate: The
{{!}}
template emits a pipe character|
which is not treated as a separator by the template parser, so it's passed through from the infobox as a pipe. So{{!}}border
has the effect of putting|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{{Infobox album}}
with this edit. It's also provided with{{infobox book}}
,{{infobox film}}
and{{Infobox newspaper}}
and some others. --Redrose64 (talk) 08:12, 6 August 2016 (UTC)- Very good to know. If I were to add such a parameter to {{Infobox boxer}}, which I use extremely often, would I simply copy and paste this, or does it need tweaking? I also see the need for borders constantly at {{Infobox video game}} and {{Infobox person}}. Mac Dreamstate (talk) 15:53, 6 August 2016 (UTC)
- The technique for adding support for
|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{{Infobox person}}
- this one would be discussed at Template talk:Infobox person. --Redrose64 (talk) 20:42, 6 August 2016 (UTC)
- The technique for adding support for
- Very good to know. If I were to add such a parameter to {{Infobox boxer}}, which I use extremely often, would I simply copy and paste this, or does it need tweaking? I also see the need for borders constantly at {{Infobox video game}} and {{Infobox person}}. Mac Dreamstate (talk) 15:53, 6 August 2016 (UTC)
The current infobox border, whether invoked using border=yes
or {{!}}border
, 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? Mac Dreamstate (talk) 17:49, 13 January 2017 (UTC)
- @Mac Dreamstate: Please give examples. --Redrose64 🌹 (talk) 23:24, 13 January 2017 (UTC)
- 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. 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 and I have no idea where that comes from, nor if it's changed recently. WP:VPT may know. --Redrose64 🌹 (talk) 23:04, 14 January 2017 (UTC)
img.thumbborder { border: 1px solid #eaecf0; }
- Will drop them a line, and noted re:Imgur. Mac Dreamstate (talk) 16:41, 15 January 2017 (UTC)
- Please don't use imgur, it slows my machine to a crawl; a WP:WPSHOT is preferable. The CSS rule is
- 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. Mac Dreamstate (talk) 01:40, 14 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.--TriiipleThreat (talk) 16:03, 14 September 2017 (UTC)
- I'd be interested to know where this feature would be used. EEng 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.--TriiipleThreat (talk) 16:58, 14 September 2017 (UTC)
- @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. --Redrose64 🌹 (talk) 23:26, 14 September 2017 (UTC)
- I did a while ago but after some initial traction and support it went no where.--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. EEng 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. EEng 02:27, 15 September 2017 (UTC)
- There is never a justification to mirror an image. -- Michael Bednarek (talk) 04:07, 15 September 2017 (UTC)
- Well, not never [4] 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. EEng 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.--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. EEng 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.--TriiipleThreat (talk) 13:28, 15 September 2017 (UTC)
- Can you give an example of a human image being reversed? EEng 14:27, 15 September 2017 (UTC)
- There's c:Category:Flopped images at Commons. None of them ought to be used. -- Michael Bednarek (talk) 01:45, 16 September 2017 (UTC)
- Good heaven's, they even reversed the Queen! Is there no respect anymore? EEng 02:12, 16 September 2017 (UTC)
- There's c:Category:Flopped images at Commons. None of them ought to be used. -- Michael Bednarek (talk) 01:45, 16 September 2017 (UTC)
- Can you give an example of a human image being reversed? EEng 14:27, 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.--TriiipleThreat (talk) 13:28, 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. EEng 12:32, 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.--TriiipleThreat (talk) 12:25, 15 September 2017 (UTC)
- Well, not never [4] 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. EEng 11:03, 15 September 2017 (UTC)
- There is never a justification to mirror an image. -- Michael Bednarek (talk) 04:07, 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. EEng 02:27, 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)
- @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. --Redrose64 🌹 (talk) 23:26, 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.--TriiipleThreat (talk) 16:58, 14 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):
- 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:GKFXtalk 22:13, 13 July 2018 (UTC)
- Dear TriiipleThreat, the Help:Pictures#Tips tutorial mentions the
{{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. --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. --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 [5]. EEng 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 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 :-/ --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). --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). EEng 23:48, 20 November 2019 (UTC)
Should I open a ticket on WMFlabs maybe? To propose a parameter so that we can force a default quality explicitly? --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. EEng 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:
--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? - 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? 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 the sandbox, it works and all have the correct vertical-align set in a style parameter. I'll raise a bug on Phabricator. User:GKFXtalk 08:15, 25 October 2018 (UTC)
- Bug is at T207929. User:GKFXtalk 08:29, 25 October 2018 (UTC)
The bug was resolved on August 26 and it seems to now be working correctly. User:GKFXtalk 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,
Remontees (talk) 07:56, 10 July 2020 (UTC)
- You mean https://fr.m.wikipedia.org/wiki/InterCity_(Suisse). I don't have help. PrimeHunter (talk) 09:31, 10 July 2020 (UTC)
@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:GKFXtalk 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. — kwami (talk) 06:37, 16 April 2021 (UTC)
- I have an idea. Give me 15 minutes... nagualdesign 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. nagualdesign 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. — kwami (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. nagualdesign 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. nagualdesign 10:26, 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. — kwami (talk) 08:26, 16 April 2021 (UTC)
Displaying thumb of some video without that "Play the Video"-Button
Is there any way, any magic keyword to show just the preview image of a video without that Start-Button, like it is in Page information of Wiki? --Wurgl (talk) 09:23, 21 May 2021 (UTC)
- I think your best bet would be WP:TemplateStyles to set
background-image: none
on.mw-tmh-player.video > .mw-tmh-play:not(:hover)
. The last part of that makes sure the play button is able to reappear on hover. User:GKFXtalk 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. --Wurgl (talk) 09:34, 23 May 2021 (UTC)