Topic on Project:Support desk

Media Viewer doesn't work on a page with a template?

6
Keren - WMIL (talkcontribs)

I have a project page with two tabs that are separate pages. Why does Media Viewer open the photos (as I want it) on the separate pages (e,g, this one), but not on the project page?

TiltedCerebellum (talkcontribs)

Because you have the Multimedia Viewer Extension installed and enabled, and that's what it is designed to do. If you disable it the file page will be displayed instead, that's how it works on MW with the Multimedia Viewer Extension disabled.

Keren - WMIL (talkcontribs)

I'm afraid you misunderstood my question. I know I enabled the extension. I want to know is if there is a way to make the Multimedia Viewer Extension work on a page that has tabs, like this page ?

TiltedCerebellum (talkcontribs)

How are the tabs created? Is it an extension? A template? I can't read Hebrew so looking at the source doesn't really help me. What is the default skin, is it Minerva Neue? Just to confirm, if you take that same image and place it on a regular page, outside of the tabs, does it work as expected? If the tabs are created by an extension, it might not be compatible with Multimedia Viewer (check if it has a compatibility policy)?

Keren - WMIL (talkcontribs)

Thanks for your reply.

The tabs are created with a template which exists in many languages but not English.

Here is the separate page - when you click on the image, it is shown by Multimedia Viewer Extension.

Here, that separate page appears as a tab - when you click on the image, you get (redirected to) the File page.

It is related to the templates - the other images on the page (e.g., the Wikimedia Commons logo) that are not in tabs are shown as expected with the Multimedia Viewer.

Hope it is clearer now.

TiltedCerebellum (talkcontribs)

I would try it on a non-thumbnail image first, to give an idea if it is related to the template (which I can't view the code of from the link provided) or if its related to the Multimedia Viewer extension. I see similar reports of issues with Multimedia Viewer with thumbnails with users being told to check the web inspector console for javascript errors (you have to tell errors to persist in the console settings because it resets on page load otherwise), you should do the same check: Topic:Tc9udf2nlj6zdkuc and maybe try posting the issue on the extension's talk page: Extension talk:MultimediaViewer

Edit: Looks like it is the exact same issue as that above one as it works fine in Firefox (opens as expected in Multimedia Viewer), but doesn't work in my current version of Chrome. Looks like the extension isn't currently fully cross-browser compliant, or there is some issue with the way the browser is handling it. I would read through the extension's open workboard to see if it is already posted and if not consider reporting a bug.

It's a good idea to always start at an extension's page and talk page, that's the "Discussion" tab at the top of the extension page. Checking there can sometimes save a lot of chasing your tail for issues that may already have been posted to let you know it's a current issue, or if there are some steps to resolve it there based on what others have tried. It's also a good idea to check the extension page's side infobox where it says "Issues" for "Open Tasks" and "Report a Bug" links. Reading the Discussion/Talk page let me know I should try a different browser and I saw that it works fine in Firefox, so some issue with the extension being either not fully cross-browser compliant is likely, or the way that Chrome (in my case) is handling it (might be a bug in my browser also).

Reply to "Media Viewer doesn't work on a page with a template?"