Build carousel with captions
Closed, ResolvedPublic3 Estimated Story Points

Event Timeline

HSwan-WMF set the point value for this task to 3.

Change #1313201 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/MultimediaViewer@master] Add captions to carousel

https://gerrit.wikimedia.org/r/1313201

@JScherer-WMF In the case the caption contains links: do we want to keep the link, or just present the whole thing as plain text?
Same question for whatever other markup (e.g. bold) there may be: strip it or keep it?

Screenshot 2026-07-21 at 16.34.17.png (404×470 px, 136 KB)

@matthiasmullie

@JScherer-WMF In the case the caption contains links: do we want to keep the link, or just present the whole thing as plain text?
Same question for whatever other markup (e.g. bold) there may be: strip it or keep it?

Screenshot 2026-07-21 at 16.34.17.png (404×470 px, 136 KB)

Strip the links from the captions when they're in the carousel please.

@matthiasmullie I added annotated figma specs for the responsive behaviour we discussed earlier. Have a look at the task description and let me know if you have any questions. I haven't tested this out in code yet, so if you could try it out at a bunch of different viewport sizes and let me know if anything looks broken, I would appreciate it!

Change #1313201 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Add captions to carousel

https://gerrit.wikimedia.org/r/1313201

Change #1318199 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/MultimediaViewer@master] Responsive carousel

https://gerrit.wikimedia.org/r/1318199

Change #1318728 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/MultimediaViewer@master] Add additional srcset sizes in carousel

https://gerrit.wikimedia.org/r/1318728

Change #1318199 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Responsive carousel

https://gerrit.wikimedia.org/r/1318199

Change #1318728 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Add additional srcset sizes in carousel

https://gerrit.wikimedia.org/r/1318728

Etonkovidova subscribed.

Checked in enwiki beta
For @JScherer-WMF review

Summary

FILED as T433865: [iPhone] Captions are cut off in Image carousel (1) The disparity of display on iPhone

Chrome browser simulator displays captions perfectly - iPhone 14 width 430 px (Chrome browser simulator)
Screenshot 2026-07-31 at 12.36.10 PM.png (860×1,514 px, 655 KB)
Real physical device - iPhone 11 cuts or doesn't display captions in the carousel
IMG_8815.PNG (296×640 px, 454 KB)
Browserstack - "real" physical devices - iPhone 14 Chrome/iPhone 15 Chrome/Safari
Screenshot 2026-07-31 at 12.25.33 PM.png (806×1,694 px, 942 KB)

Android:

Screenshot_20260731-095454_Chrome.jpg (1,080×2,220 px, 679 KB)

(2) ❓ Question: should we exclude images from the carousel if they are included into some elements?
https://en.wikipedia.beta.wmcloud.org/wiki/Chamber_music has several quote boxes. One of them (and only one), see below, is presented in the carousel without captions

Screenshot 2026-07-31 at 11.45.08 AM.png (2,008×1,174 px, 716 KB)

{{Quote box
|width   = 20em
|align   = left
|bgcolor  = pink
|quote   = [[File:Johannes Vermeer - Lady at the Virginal with a Gentleman, 'The Music Lesson' - Google Art Project.jpg|left|150px]]{{YouTube|lGcsNlwTsSw|Quartet lesson}} – Daniel Epstein teaching the Schumann piano quartet at [[Manhattan School of Music]]<br />(Picture: ''[[The Music Lesson]]'' by [[Johannes Vermeer|Jan Vermeer]])}}
Screenshot 2026-07-31 at 1.02.10 PM.png (844×1,544 px, 828 KB)
Screenshot 2026-07-31 at 1.02.21 PM.png (870×1,718 px, 1 MB)

(3) ❓ Question: The setting "Enable Media Viewer" in User Preferences - Appearance has a link to old Media Viewer page - https://www.mediawiki.org/wiki/Extension:MultimediaViewer/About. Should it be corrected?

Screenshot_20260801-101149.png (2,039×1,020 px, 1 MB)

The cascade that the captions are creating is visually disturbing and the articles look like a mess. Do we really want this to become the focal point of every article?

Why, instead, wouldn't you work on showing the full (scrollable) caption in the full screen viewer?

signing off since we have a separate ticket for the cut-off captions issue.

@Ponor thanks for the feedback, our plan is to test a version with captions and a version without to see how readers respond. I think you've also been part of the onwiki discussions--think there will be lots of interesting takeaways in the data to share there :)