Skip to content

Unrelated icons from Commons gallery pages show up on the walls #128

@rybak

Description

@rybak

Version: v1.1.0.

Wikimedia Commons galleries sometimes have templates with icons in them, which shouldn't be showed in the museum.

Example 1

System-search.svg as seen in the museum for article "Mount Vesuvius"

Example 2

Gnome-emblem-photos.svg as seen in the museum for article "Beach"

Example 3

Library_of_Congress_favicon.png as seen in the museum for article "Wales"

Notes

MediaWiki builtin Media Viewer ignores some of the images based on the following rules:

Sometimes, Media Viewer displays images that are confusing or not suitable for viewing with this tool. If necessary, editors can prevent these images from appearing in Media Viewer, using one of the methods below.

  • For images contained in 'metadata' content that is not related to the page's topic (e.g. Template:Ambox icons): you can disable Media Viewer for these files by adding this "metadata" class around their image tag:
    <span class="metadata">[[File:Foo.jpg]]</span> Please only use this method to mark elements in articles that are considered not to be part of the proper content of the article: annotations, maintenance templates, navigation links, media controls, etc. Media Viewer is not the only tool that ignores content marked as metadata.
  • For other images that are not 'metadata' files, but do not display properly in Media Viewer (e.g. maps or diagrams with unreadable labels, small icons, flags): you can disable Media Viewer for these files by adding this "noviewer" class inside their image tag: [[File:Foo.jpg|class=noviewer]]
  • For images that are used to link to another document, using the |link= image parameter, you don't need to do anything; Media Viewer will ignore such images automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions