Page MenuHomePhabricator

gallery slideshow inside hidden element does not work when expanding
Open, Needs TriagePublic

Description

PROBLEM
when gallery using slideshow mode is inside "collapsed" element, e.g.

<div class ="mw-collapsible mw-collapsed">
<gallery mode="slideshow">
....

the gallery does not show when the element is expanded.

demo page:
https://en.wikipedia.org/wiki/User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9/gallery_bug

i suspect this is a dupe, however, i did not find this report, and users on hewiki reported that this did work recently.

peace

Event Timeline

Kipod created this task.Feb 13 2020, 2:11 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 13 2020, 2:11 AM
Kipod updated the task description. (Show Details)Feb 13 2020, 2:12 AM
Kipod renamed this task from gallery slideshow inside hidden element does not work when expanding to gallery slideshow inside collapsed element does not work when expanding.Feb 13 2020, 2:14 AM
Kipod updated the task description. (Show Details)
Aklapper renamed this task from gallery slideshow inside collapsed element does not work when expanding to gallery slideshow inside collapsed element does not work when expanding: "Invalid value for integer parameter "iiurlheight"".Feb 13 2020, 7:04 AM

Interesting one, thanks for finding this! Going to https://en.wikipedia.org/w/index.php?title=User:קיפודנחש/gallery_bug&debug=true I get in the console:

mw.Api error:  badinteger 
error: Object { code: "badinteger", info: "Invalid value \"-36.4\" for integer parameter \"iiurlheight\"." }
Kipod added a comment.EditedFeb 13 2020, 4:10 PM

@Aklapper

first of all, this is different than the error i see in the console when adding debug=1, which is

code: "urlparamnormal"
info: "Could not normalize image parameters for Bamfield_Tsunami_Hazard_Zone_sign.jpg."
docref: "See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes."
__proto__: Object

2nd, i will recover original description, since regardless of the error message you see in console, the fact remains: you can't display a slideshow gallery inside a collapsed element.

please try to reproduce with any other gallery, or any other level of collapsabilty (e.g., have the gallery one of several things inside the collapser, or the collapsed being table and not div etc.

in hewiki, we use small script copied from frwiki years ago (not sure if they still use it) called "imgtoggle", to allow image expansion in-article, which meas the page is originally generated inside an element with hidden=none (basically, 2 copies of the gallery are created, using different widths= and heights= pairs, where only one of them is visible, and a button is added so the user can toggling which of them is visible. reliable users report this used to work until recently.

peace

Kipod renamed this task from gallery slideshow inside collapsed element does not work when expanding: "Invalid value for integer parameter "iiurlheight"" to gallery slideshow inside hidden element does not work when expanding .Feb 13 2020, 4:11 PM