![]() | 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 |
From the text:
"and the alternate text is used as alt=-attribute for use as mouse popup and for screen reader."
No, no, no, no, NO. The alt attribute is not for mouse popup text. The alt attribute sets alternate text (instead of the image); the title attribute is recommended for use as such things as mouse-over popups (as well as the image). I'm glad to see the software seems to get this right, in as much as the title attribute is being set to the same thing as the alt, but we really shouldn't be encouraging their perception as one and the same. I can see that for most wikipedia purposes a sensible caption will be suitable as both supplementary and replacement, but could the wording on this and any other help pages make clear that this is not the alt= text. [Apologies for going off on a rant. I must be stressed.] - IMSoP 11:54, 30 Jan 2004 (UTC)
I am sorry but this help page just does not work. At best it's extremely confusing for wiki beginners like me. In the opening para,
[ [ Image:Westminstpalace.jpg|caption] ]
is mentioned as the format that "used" to work for captions. The next section says
[ [ Image:Westminstpalace.jpg|alt text ] ]
"used" to work for alt text. But these two are the same. This is rather confusing. It seems that the latter is now working, but just the caption is gone. . . The only way I am able to get the caption to show up is by putting a frame on the image (see Kazi Nazrul Islam, Durga) but maybe I am missing something.
Personally I think the older format was better, since caption text is much more frequently used than alt text. I mean, most of us acquire 70% of the information in an article by reading figure captions and we need to make it easier for wikipedians to provide captions. Alternate text has its value in special situations, but it should be easier to put captions than to do alt text!! Also, why is it that captions should be there only with a frame, isn't that a bit arbitrary - and confusing with thumbnails (deep down personally I guess I dislike frames they are so boring ;-) Or maybe I am just plain dumb and am missing something altogether! - User:Mukerjee (newcomer)
IMSoP is correct that alt
is not intended for tooltips. Unfortunately the Wikipedia software is currently too flawed to produce any good result. For example, someone listening to Buckingham Palace should hear this ("→" represents a sound that will vary between screenreaders):
But with the current image syntax, they'll hear this instead:
That first paragraph is just gibberish. Unfortunately if you leave the alternate text field blank, you'll still get gibberish:
"Westminstpalace.jpg"? That's not even English. What is someone using a screenreader supposed to think when they hear that? If they're technically-minded enough to realize it's an image filename, they'll think "oh, they're making fun of me by giving me technical details about an image I can't see".
Until this is fixed, there's little point in providing guidelines on how to use the image syntax (other than "use raw HTML instead"). Almost anything you do with the Wikipedia syntax will be wrong.
If an accessibility-minded programmer wants to fix this, they should:
alt
, leaving the current field for title
.)-- Mpt 11:51, 10 Jun 2004 (UTC)
I think more than one piped text should be assigned to the title, alt, or caption text. What I mean is:
[[Image:foo.png|frame|Caption text]]
will currently make an image with "Caption text" as the alt tag, title tag, and the visible caption at the bottom of the frame. It is impossible to make one different from the other with the current markup (without adding HTML), but people want it and it is the way the tags are meant to be used, and it should definitely be possible with the extended markup. I propose that one piped text behaves exactly the same as it currently does, but any additional piped text become one or more of the other types of "captions":
[[Image:foo.png|frame|Alt and Title text|Displayed caption text]]
So with two "caption texts", one gets mapped to both the title and alt, and the other gets mapped to the visible caption.
[[Image:foo.png|frame|Alt text|Title text|Displayed caption text]]
For three caption texts, one is mapped to alt, one to title, and one to visible caption.
This seems like it would be easy to add to the code and would be backwards compatible. - Omegatron 15:05, Jun 21, 2004 (UTC)
[[Image:foo.png|frame|thumb|Caption text]]
[[Image:foo.png|frame||Alt text|Title text|Caption text]]
There's a discussion on these topics at MediaWiki [1], which seems the most appropriate place as technical changes may be required. It also seems like a good idea to work all this out at once. (I've made this same note at Wikipedia talk:Extended image syntax#Alternate text / Title text / Caption text and Wikipedia talk:Captions#Captions vs. alt text.)-- kop 18:14, 5 Sep 2004 (UTC)
Can anybody explain the alignment oddity with captions with the word "centre" in them, seen here and here? It seems to be picking on British English... --rbrwrˆ 23:04, 27 May 2004 (UTC)
Shouldn't the background color of the frame be white, with a gray border? Images with transparency have a gray background the way it is now. - Omegatron 21:15, Jun 11, 2004 (UTC)
I've noticed all of a sudden that thumbnailed images seem to have gone to the far left of the article space and overlap with the taskbar. I dont know if anyone else has experienced this or whether it's only me. But it wasn't doing it a few days ago. G-Man 23:48, 9 Jun 2004 (UTC)
Coventry is an example, although it only seems to be doing it on one computer I use. I was using another computer earlier and it was fine. G-Man 19:52, 10 Jun 2004 (UTC)
Borrowing from Wikipedia:Featured picture candidates two image rendering examples follow.........- Bevo 18:48, 10 Jun 2004 (UTC)
Case 1:
The image below looks OK (Monobook skin or Standard skin, Mozilla FireFox 0.8): (also looks OK with either skin using IE 6)
{|
|[[Image:Painter's algorithm.png|thumb|left|400px|Painter's algorithm]]
|---
| Illustration for [[painter's algorithm]]. Early crappy attempt at vector drawing from me, but I'm giving this nomination a shot anyway. [[User:Fredrik|Fredrik]] 15:21, 30 May 2004 (UTC)
|}
![]() |
Illustration for painter's algorithm. Early crappy attempt at vector drawing from me, but I'm giving this nomination a shot anyway. Fredrik 15:21, 30 May 2004 (UTC) |
Case 2:
The image below does not look OK (Monobook skin or Standard skin, Mozilla FireFox 0.8): (but does look OK with either skin using IE6)
{|
|[[Image:Painter's algorithm.png|thumb|left|400px|Painter's algorithm]]
| Illustration for [[painter's algorithm]]. Early crappy attempt at vector drawing from me, but I'm giving this nomination a shot anyway. [[User:Fredrik|Fredrik]] 15:21, 30 May 2004 (UTC)
|}
![]() |
Illustration for painter's algorithm. Early crappy attempt at vector drawing from me, but I'm giving this nomination a shot anyway. Fredrik 15:21, 30 May 2004 (UTC) |
Case 3:
The image below looks OK.
[[Image:Painter's algorithm.png|thumb|left|400px|Painter's algorithm]]
Illustration for [[painter's algorithm]]. Early crappy attempt at vector drawing from me, but I'm giving this nomination a shot anyway. [[User:Fredrik|Fredrik]] 15:21, 30 May 2004 (UTC)
<br style="clear:left"/>
Illustration for painter's algorithm. Early crappy attempt at vector drawing from me, but I'm giving this nomination a shot anyway. Fredrik 15:21, 30 May 2004 (UTC)
Interesting that Mozilla FireBird 0.7 (the previous version of FireFox) renders both images correctly. So, maybe there is a bug in FireFox 0.8 ? - Bevo 14:22, 11 Jun 2004 (UTC)
I'm having this problem too. FireFox 0.8 here. Fredrik (talk) 09:14, 13 Jun 2004 (UTC)
Looks ok for me after removing the table (Case 3). This also has the advantage to work better for really small screens (pdas etc). You can use the same techique with the <br style="clear:left"/> at the end for photo galleries as well, the images will wrap to the available screen width then. -- Gabriel Wicke 22:02, 13 Jun 2004 (UTC)
Suddenly, this afternoon the image in Case 2 above is rendering OK using Mozilla FireFox 0.8. - Bevo 19:15, 14 Jun 2004 (UTC)
How to update the images at editing help? Specifically the required markup is as follows. Jamesday 02:17, 8 Jul 2004 (UTC)
This is the markup for the puzzle sphere on the left. At present the caption is missing due to broken backwards compatibility. Note the requirement to maintain transparency for this image - using "frame" breaks that and displays white instead of transparent. Looks as though only the doing it by hand approach with a div can now achieve this result?
This one is still fine. [[Image:Wiki.png]] works as it used to. No update needed.
[[Image:Wiki.png|jigsaw globe]] works as it used to, complete with the inaccurate description of hover text as alt text. No update needed. However, alternate text isn't very useful since we usually want a caption instead, to give attribution or a description. This one should probably be replaced, perhaps as suggested: [[Image:Wiki.png|frame|none|jigsaw globe]]?
[[Image:Wiki.png|right|jigsaw globe]] no longer works due to broken backwards compatibility - "jigsaw globe" is displayed as hover text instead of as a caption. The caption text is displayed as hover text instead of as a caption. This one should probably be updated to [[Image:Wiki.png|frame|right|jigsaw globe]] to display the image in the now-preferred box. Breaks the transparency, though. The backwards compatibility might also need to be fixed - no idea how many articles now look inaccurate because the caption explaining an image is now missing.
[[Image:Wiki.png|right|]] still works fine. No update needed.
Acegikmo1 04:33, 25 Jul 2004 (UTC)
I've just come up with a new item in the preferences: preferred size of the default thumbnail box. I've noticed that a couple of contributors define the width of the thumbnail when there is no reasons. I think most of the time, they do this, so the page looks nice. Now, what looks nice on a small screen might look rather weird on a big one, and vice versa.
My suggestion is to let users choose. Of course, there are cases when we want exactly 237px width (e.g. if the picture is that size). So, I suggest we have a preference to set the default size of thumbnails. Next, we of course encourage all Wikipedians not to add fixed size unless needed.
Can I at this stage also mention, that thumb should be used, because it includes the given description as a caption... many contributors seem to to know that thumb, right etc. are not exclusive statements... Kokiri 13:35, 28 Jul 2004 (UTC)
Forgive me if there's already some discussion about this somewhere: are there any plans to improve the image auto-thumbnail process to account for PNGs with indexed color? I'd much rather upload a high-resolution image and let the thumbnail be generated automatically, but since they're converted to true-color, the thumbnail often ends up larger (in bytes) than the original (for instance, the six images on Four-stroke cycle), or almost as large (the rotor breakdown on Enigma machine). Seems to me it should be a fairly simple matter to have the thumbnailing script (or whatever it is) look at the color depth in the original image, and convert appropriately (using true-color only for the intermediate resizing). I've noticed some rather heated disagreements over this issue that would be neatly solved if thumbnailing worked better for indexed PNGs. -- Wapcaplet 16:53, 31 Jul 2004 (UTC)
Is there any way to keep an image from overlapping with, say, a navigation box on the bottom of a page (see [2] for an example) besides, of course, making the image smaller or adding a bunch of text (I was forced to do both on Pope Gregory XV)?
The page about Shuttle Buran had problems rendering thumbnail images on 05:17, 23 Oct 2004. (now it's ok) It probable due to mixing Image markup with HTML with New syntax like this:
<div class="floatright">
[[Image:Buran_front_energia.jpg|center|thumb|250px|Illustration of the Buran Shuttle]]
</div>
There must have been recently a change to the floatright
class which introduced an incompatibility because since 19 Aug 2004 when the change was made to use the class none obected any strange layout.
So while the page about the new syntax states "The new syntax is backward compatible, so articles don't have to be changed." it can actually be incompatible with some strangely formulated pages.
Do I understand this correctly, the only picture that can be enlarged is the "thumb" one?
[[Image:Westminstpalace.jpg|1000px|none]]
[[Image:Westminstpalace.jpg|100px|none]]
[[Image:Westminstpalace.jpg|100px|frame|none]]
[[Image:Westminstpalace.jpg|600px|thumb|none]]
When the image is uploaded at the exact size for display, it makes little sense to have a link to the original image file; this makes even less sense for images that are meant to function as icons, small logos, etc. But how to specify an image for display without showing the link to the uploaded image?
The “project page” says that if an alignment of ‘none’ is specified, then “The image will be rendered inline, even if the thumbnail-option is set”. However, this is not always true.
If the image with ‘none’ alignment is inside an external link, MediaWiki will show the external link icon, then a line break, then the image, then another line break; this is very far from rendering the image inline.
What is the correct way to deal with such situations?
Gniw 20:32, 5 Feb 2005 (UTC)
I'm about to maintain few articles in both en.wikipedia.org and ru.wikipedia.org
I have uploaded some images, like this one as {{PD-release}}.
Is there a way to NOT duplicate these images for articles on ru.wikipedia.org?
In general, do I have a mean to crosslink wiki documents posted in different languages?
Of course, I mean a wiki way to do this.
--jno 16:24, 14 Feb 2005 (UTC)
I am trying to replace this:
With this (it's a table):
![]() |
PNP | ![]() |
P-channel |
![]() |
NPN | ![]() |
N-channel |
BJT | JFET |
But I can't figure out how to hijack the frame div markup to make it look pretty in a frame:
This is the best I can get:
Can anyone help? - Omegatron 17:35, Mar 12, 2005 (UTC)
- Omegatron 16:49, Mar 21, 2005 (UTC)
Here's a pretty good imposter. CSS isn't that hard! - Omegatron 19:52, Mar 21, 2005 (UTC)
Except that a long caption makes it weird because of the width:auto;
![]() |
PNP | ![]() |
P-channel |
![]() |
NPN | ![]() |
N-channel |
BJT | JFET |
in firefox it resizes itself as you wiggle the window size back and forth. i take it the thumbcaption class needs an extra tag or two? implementing a bugfix type thing would help this greatly. This would fit in well with my proposal for a table namespace, letting us offload the table itself to Table:Transistor types, and call it like an image: [[Table:Transistor types|framed|right|Transistor symbols of different types]]
. - Omegatron 20:11, Mar 21, 2005 (UTC)
Fie and curses! I had thought to brilliantly throw the float syntax behind a template, but then I realized that the pipe characters would muck up the template syntax. Ooh! But wait! I suppose it could be used for something like the following:
{{float_begin|side=left}} {| border="0" cellpadding="10" cellspacing="0" style="font-size: 85%; border: 1px solid #CCCCCC;" |- align = "center" | [[Image:BJT_symbol_PNP.png]] || PNP || [[Image:JFET_symbol_P.png]] || P-channel |- align = "center" | [[Image:BJT_symbol_NPN.png]] || NPN || [[Image:JFET_symbol_N.png]] || N-channel |- align = "center" | BJT || || JFET || |} {{float_end|caption=Transistor symbols of different types}}
or, really,
{{float_begin|side=right}} [[Image:Foobar_season1.jpg|none|300px|Season 1 logo]]<br> [[Image:Foobar_season2.jpg|none|300px|Season 2 logo]]<br> [[Image:Foobar_season3.jpg|none|300px|Season 3 logo]]<br> [[Image:Foobar_season4.jpg|none|300px|Season 4 logo]]<br> [[Image:Foobar_season5.jpg|none|300px|Season 5 logo]]<br> [[Image:Foobar_season6.jpg|none|300px|Season 6 logo]] {{float_end|caption=Logos from each of the opening sequences}}
This uses Template:float_begin and Template:float_end
which would generate the same wikicode. Is this an optimal solution, do you think? The transformation is pretty trivial, but it would solve most of the problems mentioned. Thoughts or enhancements? Is there already something like this? I didn't see any mention of formatting templates in Wikipedia:Template messages. grendel|khan 20:07, 2005 Mar 21 (UTC)
Ok I did it: - Omegatron 22:08, Mar 21, 2005 (UTC)
There seems to be an issue with small images. Namely, since the box size is based on the image size, the caption is chopped short. Is there a way to get a larger frame, or should I make a bug report? Shimmin 14:43, Apr 21, 2005 (UTC)
Is there any way to get Wikipedia's customized <img> tag to link to pictures from Wikimedia Commons? I'm trying to add some of the images there to the Interlingua wikipedia, but it didn't work, so I had to upload it to the Interlingua server manually. That seems like a waste. Almafeta 12:14, 27 Apr 2005 (UTC)
I'm thinking the same thing. How do you link to a pic in commons?--Jaysscholar 03:04, 1 October 2005 (UTC)
In my 1.5b3 wiki, if I use a thumb tag in the image syntax, the image doesn't show up. The caption appears correctly, but no picture is visible. I can force the image to the right of the page and a smaller size using right|200px, but then I don't get a caption. What could be stopping me from using the thumb tag?