Wikipedia talk:Extended image syntax
From Wikipedia, the free encyclopedia
![]() Archives |
---|
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] "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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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:
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
-
[edit] 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)
[edit] 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.
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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)
[edit] 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.
[edit] "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)
[edit] 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)
[edit] 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)
[edit] 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)