Page MenuHomePhabricator

Allow editors to provide default alt text on Wikimedia Commons file description pages
Open, MediumPublic

Description

Many Wikimedia images lack alt text, causing accessibility problems. While the ability to provide an alt text in the image thumbnail syntax is valuable, it is unrealistic to expect that it could be used all the time; also there are various ways in which an image can show up without being associated to thumbnail data such as caption and alt text (e.g. on category pages, or the file page itself). There should be a way to provide a default alt text that can be used automatically when there is no better, context-specific alt text. With Structured Data on Commons available, that would be the obvious option.

(Structured data has the disadvantage that it's only available on fairly complex Wikibase-enabled wiki farms, so there is some value in a different solution that can be used on a vanilla MediaWiki, but that's unlikely to happen soon and as such outside the scope of this task; it's discussed in T21906: Allow default alternate text for images to be provided on the file description page.)

There are two SDC-based approaches:

  • use a dedicated property (which would have to be created first), or
  • use P2096 (media legend) with an appropriate qualifier (e.g. P3831 (object has role) with the value Q1067764 (alt attribute) or Q60844786 (alt text)).

Given how much we expect this information to be used both internally and by external software (which is less prepared to handle qualifier-based intricacies), the dedicated property seems vastly preferable.

There have been two property proposals in the past:

  • alt - had some objections about alt text being context-dependent (which per above is not a good reason not to have default alt tags), about alt-text being language-dependent and about the property name. Rejected with "might be relevant to propose it again once structured data is available on Commons".
  • alt tag - largely the same discussion

(There is also has alt-text which sounds similar but was actually intended for describing images not hosted by us.)

The alt text is multilingual so this is blocked by T86517: [Story] Add a new datatype for multilingual text (although Wikidata does allow property proposals for planned item types, they are added to Wikidata:Property proposal/Pending for the time being.

Related Objects

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptMay 22 2017, 9:27 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Note on alt text: This is for the benefit of people using Commons, i.e., when there is no contextual consideration, but where "Painting of X" or "Headshot of Joe Film" might be helpful to sort through images with sometimes unreadable names.

Wikipedia editors might or might not choose to copy the basic alt text, but if they did, they could easily change it whenever "Painting of X" or "Headshot of Joe Film" was not the appropriate description in their context.

Izno added a subscriber: Izno.May 22 2017, 9:33 PM

The Wikidata "alt" property proposal is stalled, but an "alt" attribute is basically how you would do it. Structured data can handle that. (I don't know if structured data is meant to be included in Wiki* via Lua/magic word or used only on Commons.)

This task is probably a resolved duplicate, I simply don't know where to point it.

Izno added a comment.May 22 2017, 9:34 PM

Above said, that property proposal is interesting reading, so @Whatamidoing-WMF might consider reviewing it for context.

thiemowmde triaged this task as Medium priority.May 30 2017, 2:30 PM
Dvorapa added a subscriber: Dvorapa.
Tgr renamed this task from Please include suggested alt text for images to Allow editors to provide default alt text on Wikimedia Commons file description pages.EditedSun, Jan 5, 3:35 AM
Tgr added a project: Commons.
Tgr updated the task description. (Show Details)
Tgr added a subscriber: Tgr.

Repurposed this to be SDC-specific (for a non-SDC approach there's already T21906: Allow default alternate text for images to be provided on the file description page). The next step would be to write a property proposal (and do it better than the rejected past attempts, which were not very well written).

Currently we use several monolingual text statement for multilingual text data. This is only a workaround.

Pigsonthewing added a subscriber: Pigsonthewing.EditedSun, Jan 5, 10:57 PM

The Wikidata property proposal was rejected, and for good reason. Please see my comments -and those of others, not least Graham87 - and example image on that page.

Please do not progress this proposal without first consulting with screen reader users and/or accessibility professionals.

Abbe98 added a subscriber: Abbe98.Tue, Jan 7, 1:18 PM