-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version: v1.1.0.
Wikimedia Commons galleries sometimes have templates with icons in them, which shouldn't be showed in the museum.
Example 1
- Article: "Mount Vesuvius"
- Icon: File:System-search.svg from Template:Cat see also at the bottom of gallery "Vesuvio"
Example 2
- Article: "Beach"
- Icon: File:Gnome-emblem-photos.svg from Template:Gallery page at the bottom of the gallery "Beach"
Example 3
- Article: "Wales"
- Icon: File:Library of Congress favicon.png in the infobox on the right side of the gallery "Wales / Cymru". This is the most complicated use case. The gallery page has the Template:Wikidata Infobox. The icon comes from Wikidata entry for Library of Congress (item Q131454), which is linked on Commons in the config of "Module:Authority control" (see
issuedBy = "Q131454").
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.
- In case of aforementioned Template:Cat see also in the article "Mount Vesuvius", the icon has an empty
|link=(it doesn't link anywhere at all, the link to the file page is suppressed), as can be seen from the wikitext of its i18n subpage. - Template:Gallery page in the article "Beach" didn't have any Media Viewer suppression until today.
- For "Template:Wikidata Infobox" in the article "Wales", the icons have linking suppressed. See function
authoritycontrolin Module:Wikidata Infobox.
dsnopek
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working


