Last modified: 2014-10-20 17:24:11 UTC
This is a web accessibility issue. We ought be providing alt text for images (especially those whose only content is a link, otherwise it outputs the file name as alt text). It has also recently become a requirement for FA. See http://en.wikipedia.org/wiki/Wikipedia:Alternate_text_for_images Rather than reproducing the alternate text every time the image is called, it would be useful to provide it at the file description page, with a magic word or template and for it to be provided as the default alt text whenever it the image is displayed. When I asked at the village pump (provided URL), MZMcBride told me "It sounds as though you want a modification made to the image table to store alt text in a column." Ideally, we should be able to override the alt-text contained at the image page with local code. So, say at [[File:Foo.png]], we had something like {{DEFAULTALT:A picture of a typical sized foo on a blue background.}} Whenever Image:Foo.png was called, this would be the alt-text provided for screen readers and the like. However if you needed some different alt text (perhaps this is an article on Foo in general and you need to describe each foo at greater length), you could provide it in the usual way. [[File:Foo.png|alt=A typical sized foo on a blue background. This particular foo is shaped like a bar.]] The alternative is having bots editing every page that uses the image and inserting the alt-text, obviously this way would make things much, much easier.
I strongly oppose this idea. Alt text depends heavily on context, as explained in our guidelines for alt text. http://en.wikipedia.org/wiki/Wikipedia:Alternative_text_for_images#Context
That is why I have asked for the option to over-ride the default provided at the image page. The current method of including it when the image is called clearly isn't scaling. There are certain images used on over thousands of pages. Take, for example, a medal. Does the alt text of an image of a medal change with context? Probably not. So, you would rather edit thousands of pages to include a boilerplate alt-text for the medal? This is sub-optimal.
Still disagree. Concerning icons, the best solution for both usability and accessibility is to remove the link and leave an empty alt. What should we do if a general alt text is added ? It would't do any good. Plus, many decorative thumbnail images contain enough description in the caption. And, concerning the thumbnails only, alt text should not duplicate the caption. In those cases, we should only add some short alt text, only to prevent a screen reader from reading the filename. Again, what should we do if some longer alt text is added ?
You can only remove the link for public domain images, otherwise you run into a cc-by-sa attribution violation. I think it would be eminently useful and in the cases where context matters, it can be overridden. Else, we would need a bot to propagate the alt text for frequently used images. You may disagree with turning this feature on for en.wiki; that's not something we should debate here. The developers can program this feature and then individual mediawiki installations can enable it or not, at their discretion. I'm fine with this feature not being enabled by default, and having a community discussion once it is ready.
Ok, but this feature should be disabled for images containing a "|link=" parameter. Because if the image links to another page, a general alt text can't be used, it needs a special alt text. Plus, if the image contains an empty "|link=" parameter, then it should be disabled too. :-)
I would endorse both those contingencies. As I understand it, "link=" (empty) is generally used to denote entirely an decorative (// public domain! //) image that doesn't require alt text.
I would like to endorse the above suggestion. If you read Wikipedia:Alternative text for images, you'll see that the requirements for alt text generally do not depend on the image's use. A local override can deal with the exceptions. Having the alt text associated with the image makes it easy to find images that lack alt text and would enable a maintenance project to systematically add them.
Strong endorsement as well. When an image is used in several locations, it's cumbersome to have to manually reproduce the alt text on each article, rather than have it be automatically drawn from the central image file. Local overrides can handle any cases where the alt text needs to be different.
*** Bug 22726 has been marked as a duplicate of this bug. ***
As suggested by [[en:user:Iridescent]], the {{DEFAULTALT}} magicword should also accept a language parameter. {{DEFAULTALT:en:This is a foo}} {{DEFAULTALT:fr:Il s'agit d'un truc}}
Very strong endorsement.
(In reply to comment #0) > When I asked at the village pump (provided URL), MZMcBride told me "It sounds > as though you want a modification made to the image table to store alt text in > a column." would or wouldn't sites need to $wgEnableScaryTranscluding to access the default alt-text of images on a shared repository viz. commons? :s
(In reply to comment #12) > (In reply to comment #0) > > When I asked at the village pump (provided URL), MZMcBride told me "It sounds > > as though you want a modification made to the image table to store alt text in > > a column." > > would or wouldn't sites need to $wgEnableScaryTranscluding to access the > default > alt-text of images on a shared repository viz. commons? :s Not sure. We already 'scarily' transclude description pages from commons, so obviously there's something going on there already without scaryTransclusion being enabled.