Page MenuHomePhabricator

MediaViewer does not provide correct caption with consecutive images when using the {{Mehrere Bilder}} template on de.wp
Open, LowPublic

Description

If you browse multiple images for an article (with ">") as in
https://de.wikipedia.org/wiki/Iller#/media/Datei:Illerursprung04.jpg
the caption is not processed correctly in some cases.
(In this example it should be "Illerdurchbruch bei Kalden" with the next image, and "Unter den Illerbrücken, Kempten" with the following).

If you open it as a single image in the MediaViewer, the caption is correct:
https://commons.wikimedia.org/wiki/File:Unter_den_Illerbr%C3%BCcken,_Kempten.jpg#/media/File:Unter_den_Illerbr%C3%BCcken,_Kempten.jpg

Regards

Event Timeline

Hi @Reinhard_Kraasch, thanks for taking the time to report this! That's because de.wikipedia.org uses some custom template called "Mehrere Bilder" with custom parameter names like UntertitelX that MediaViewer cannot know about. This problem could be solved by not using that custom template.

Tech info:

https://de.wikipedia.org/w/index.php?title=Iller&action=edit

{{Mehrere Bilder
 | Richtung    = vertical
 | Bild1       = Illerursprung04.jpg
 | Untertitel1 = Illerursprung
 | Breite      = 200
 | Bild2       = Illerdurchbruch bei Kalden - panoramio.jpg
 | Untertitel2 = Illerdurchbruch bei Kalden
 | Bild3       = Unter den Illerbrücken, Kempten.jpg
 | Untertitel3 = obere Illerbrücken, Kempten
 | Bild4       = Prallhänge an der Iller nö Kempten (Foto Hilarmont) (9).JPG
 | Untertitel4 = Prallhänge nördlich von Kempten
 | Bild5       = Eisenbahnbrücke Iller - Legauer Straße.jpg
 | Untertitel5 = Eisenbahnbrücke der stillgelegten [[Bahnstrecke Memmingen–Legau]] bei [[Illerbeuren]]
}}

@Aklapper I've investigated this report. The template is transformed to HTML by the time MediaViewer processes it. The fault is in MMV's processing logic, which can be corrected. It's medium difficulty fix, that I might find the time to fix. The task can be reopened.

Aklapper renamed this task from MediaViewer does not provide correct caption with consecutive images to MediaViewer does not provide correct caption with consecutive images when using the {{Mehrere Bilder}} template on de.wp.Nov 2 2020, 7:04 AM
Aklapper reopened this task as Open.
Aklapper triaged this task as Low priority.