Page MenuHomePhabricator

Mode slideshow of gallery tag is not working in phone screens
Open, Needs TriagePublic


System info in which it was found -
MediaWiki version = 1.30.0
This same problem also exists on Wikipedia website too (read below for examples), so I should say the problem still exists in newer versions too (Wikipedia running on 1.32.0)

Info about phone screen -
Extension used = MobileFrontend
Theme = MinervaNeue
Please note that Wikipedia also uses these tools to create the mobile pages.

Important - Slideshow works fine in Vector theme in desktop screens.

Problem description -

When the following code (as suggested by MediaWiki documentation) is used to create slideshow it gives a slideshow in desktop pages using the above mentioned softwares. But it shows thumbnails in a column on phone screens using the above tools. The slideshow works when you select vector theme in phone screens too. So, the problem might be in the MinervaNeue theme or MobileFrontend extension.

Code (the usual wikitext used to create slideshow; nothing special)-
<gallery mode="slideshow">

Pages involved -
Check the slideshow in the above page in both desktop and mobile screen and you will see the difference.

Event Timeline

Restricted Application added a project: Multimedia. · View Herald TranscriptMay 17 2018, 2:45 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Note on that page: "When using, note that many parameters, specifically those relating to visual appearance may not apply or work as expected to certain skins (notably the Minerva skin used by the mobile site)"
This is one if those cases.

Im not sure what code is responsible for doing this but Minerva or Mobilefrontend is not explicitly turning this off.

TheDJ added a subscriber: TheDJ.May 18 2018, 8:09 AM

This is, which doesn't have target mobile.

@TheDJ let's try turning it on today and see what it looks like.

@Biologically it's written in OOUI so it looks like turning it on is not a problem but the module itself causes a severe reflow/restructure of the page (is jumpy) which I'd prefer for us to fix before enabling on mobile.

It also seems to break the media viewer on mobile, so we'd need to adjust that as well.

@Jdlrobson , thank you. I shall eagerly wait for these changes in the next updates.

Vvjjkkii renamed this task from Mode slideshow of gallery tag is not working in phone screens to stcaaaaaaa.Jul 1 2018, 1:09 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
AfroThundr3007730 renamed this task from stcaaaaaaa to Mode slideshow of gallery tag is not working in phone screens.Jul 1 2018, 5:05 AM
AfroThundr3007730 raised the priority of this task from High to Needs Triage.
AfroThundr3007730 updated the task description. (Show Details)
AfroThundr3007730 added a subscriber: Aklapper.

@Yuriy_kosygin has suggested at the English Wikivoyage that this should be the default gallery mode for most mobile/smartphone readers. It sounds like a reasonable approach (swipe through the images, rather than seeing tiny/illegible thumbs).

With a volunteer hat on: Does this also mean the end of the archaic image policy on Wikivoyage?

ARR8 added a subscriber: ARR8.Mar 12 2019, 4:08 AM

@Whatamidoing-WMF Thank your add me, my thoughts are as you described!

@Jdlrobson That's right, but when reading on the mobile version, the image show is vertical (even if the picture is no more than 5), causing the reader need keep to scroll down to find what they want text. Taking the Scroll gallery is hopeful. Let the image scroll left and right.

Change 505286 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/core@master] Gallery slideshow: Enable on mobile