As a Wikidata mobile user I want to see which sitelinks of an Item have badges in order to discern which is good, featured, problematic etc. articles and also have a seamless experience across desktop and mobile devices
Problem:
Currently, sitelinks are displayed inconsistently across desktop and mobile.
Desktop uses badges for sitelinks, whereas those badges do not appear on mobile making it more difficult to discern for users.
This is because the relevant stylesheets are contained in desktop-only ResourceLoader modules, badges are invisible in mobile views (though their markup exists in the HTML source).
Example:
Compare the badges on dewiki, enwiki,eswiki and frwiki on Mary Shelley on desktop and on mobile:
Compare Special:AvailableBadges on desktop and on mobile
This only is displayed as a plain list on mobile:
BDD
GIVEN a mobile user visits an Item
WHEN they view the sitelinks
THEN they can see the badges assigned to the sitelinks
GIVEN a mobile user visits the Special:AvailableBadges page
AND
WHEN they view the the page
AND
THEN they can see the icons for the badges as they appear on the desktop site
Acceptance criteria:
- item pages on mobile show badges on sitelinks
- Special:AvailableBadges on mobile shows the badges’ icons
Notes:
- This task requires enabling the following extensions in your local dev environment:
- Wikibase
- WikimediaBadges
- Wikidata.org