[go: up one dir, main page]

Page MenuHomePhabricator

Filter out the images with the "noviewer" class in the API for prop=images
Open, LowestPublic

Description

When using the API to get the images in the page, we get all the images, including the ones that are only there for templates purposes. For example here, we get small arrows, little flags, city locators...

The Mediaviewer allows to filter these out by using the class noviewer (the images with this class do not appear in the Mediaviewer. It would be great to be able to exclude these files out in the API too with a new parameter.

Event Timeline

HTML classes on an image are not stored in the imagelinks table, so it's not possible for the API to do this. You'd first have to change MediaWiki to begin storing this information.

Anomie triaged this task as Lowest priority.Jun 22 2017, 1:13 PM
Anomie moved this task from Unsorted to Blocked on the MediaWiki-Action-API board.