Page MenuHomePhabricator

Minor improvements to Pywikibot documentation's landing page
Closed, ResolvedPublic

Description

During my review of the landing page (T304756) I identified a few small improvements we could make:

Accessibility:

  • Alt text fields for images displayed on the page do not contain useful information. If we consider these images as purely decorative, then they should not contain alt text at all. If we consider them informative, they should contain the description of what the image is showing, not attribution info or file name. The four images spelling out "Bots" in the middle of the screen are particularly unhelpful here. See https://knowbility.org/blog/2019/an-alt-text-primer/ for more information.
  • The search form does not have an associated label. We should add a title, label, or the aria-labelledby attribute.

Introductory text:

  • The introductory text does not appear in search results - what we get instead is a part of the translation box followed by contents of the first box (Running a bot). Is it possible for us to feature specific text in search results?

Event Timeline

KBach changed the task status from Open to In Progress.Nov 15 2022, 10:52 AM

I applied some of the accessibility changes on the landing page - https://www.mediawiki.org/w/index.php?title=Manual:Pywikibot&diff=prev&oldid=5591787&diffmode=source. The search now has an arialabel attribute, and all decorative images have alt text set to null (as per https://www.w3.org/WAI/tutorials/images/decision-tree/). However, this removed some image credits (alt text is not a good place for that anyway).

If we want to credit image authors, perhaps we could create a dedicated section, like in my sandbox https://www.mediawiki.org/wiki/User:KBach-WMF/Sandbox/PywikibotLandingPage:

<translate>
== Image credits ==
* Sanko Seisakusyo (三幸製作所) – Tin Wind Up – Tiny Sparkling Robo – Front.jpg
* Swedish script images by Robosk, Roberto94, Honsvu
* Wikimedia Hackathon 2013, Amsterdam - Flickr - Sebastiaan ter Burg (22).jpg
</translate>

FYI @Xqt

KBach updated the task description. (Show Details)

I replaced the opening layout table (which contained the opening text, search box, and the logo) with flexbox. This makes the opening text available in search results and makes the page more accessible. Closing task as resolved.

KBach triaged this task as Medium priority.Nov 16 2022, 1:04 PM
KBach updated the task description. (Show Details)
KBach moved this task from To-Do to Done on the Developer-Advocacy (Oct-Dec 2022) board.

If we want to credit image authors, perhaps we could create a dedicated section, like in my sandbox https://www.mediawiki.org/wiki/User:KBach-WMF/Sandbox/PywikibotLandingPage:

I don't see that this is necessary and it is unusual on wmf pages I think.

If we want to credit image authors, perhaps we could create a dedicated section, like in my sandbox https://www.mediawiki.org/wiki/User:KBach-WMF/Sandbox/PywikibotLandingPage:

I don't see that this is necessary and it is unusual on wmf pages I think.

This sort of attribution is definitely encouraged for off-wiki usage and usage where linking to the File page on commons is not possible. I would agree that on-wiki we broadly assume that images will link back to their File page which gives all of the attribution and license information. I see that |link= is used quite a bit on mw:Manual:Pywikibot which does feel like a potential attribution issue for images like https://www.mediawiki.org/wiki/File:Wikimedia_Hackathon_2013,_Amsterdam_-_Flickr_-_Sebastiaan_ter_Burg_(22).jpg which are CC-BY licensed rather than PD licensed.

If we want to credit image authors, perhaps we could create a dedicated section, like in my sandbox https://www.mediawiki.org/wiki/User:KBach-WMF/Sandbox/PywikibotLandingPage:

I don't see that this is necessary and it is unusual on wmf pages I think.

This sort of attribution is definitely encouraged for off-wiki usage and usage where linking to the File page on commons is not possible. I would agree that on-wiki we broadly assume that images will link back to their File page which gives all of the attribution and license information. I see that |link= is used quite a bit on mw:Manual:Pywikibot which does feel like a potential attribution issue for images like https://www.mediawiki.org/wiki/File:Wikimedia_Hackathon_2013,_Amsterdam_-_Flickr_-_Sebastiaan_ter_Burg_(22).jpg which are CC-BY licensed rather than PD licensed.

Good point, I see @JJMC89 has already added the links required for attribution. I added short alt text to these for accessibility (image links shouldn't have empty alt text).