Page MenuHomePhabricator

MultimediaViewer: Add a class for images, which shouldn't display in MediaViewer
Closed, DeclinedPublic

Description

Example: https://en.wikipedia.org/wiki/Clang
The second image (e.g. FOSS icon) is a portal icon and doesn't belong to the article itself.


Version: unspecified
Severity: normal

Details

Reference
bz63727

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:10 AM
bzimport added a project: MediaViewer.
bzimport set Reference to bz63727.
bzimport added a subscriber: Unknown Object (MLST).

(Pretty sure this is a duplicate ; cannot find it though).

It think this is covered by https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/229 & https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/294

En.wiki should add a CSS class for MMV to detect useless icons.

Wontfixing; sometimes we want to display images from templates (e.g. infoboxes, main page), and there is no easy way to differentiate between them anyway. Templates with non-content images should have a "metadata" class, which disables MediaViewer for the images inside.

You can also use the "noviewer" class for more specific use cases.

Also, for portal icons etc. you usually want the icon to link to the portal page, not the file description page. If you do that, that will also make Media Viewer ignore the image.