Page MenuHomePhabricator

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


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

Ash_Crow created this task.Jun 22 2017, 7:55 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 22 2017, 7:55 AM
Anomie added a subscriber: Anomie.Jun 22 2017, 1:13 PM

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-API board.
Aklapper removed a subscriber: Anomie.Oct 16 2020, 5:03 PM