Start from random image in slideshow gallery

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Start from random image in slideshow gallery

Strainu
Hi there,

Is there a way to start displaying a slideshow gallery from a random
image without editing the site JavaScript, except for building a
template that randomizes the content of the <gallery> tag?

If not, is there a phab item for this feature?

Thanks,
    Strainu

_______________________________________________
Wikitech-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: Start from random image in slideshow gallery

Prateek Saxena
Hey Strainu,

If your template already randomizes the content inside the gallery
tag, setting the mode to 'slideshow' should give you a what you want
without editing JavaScript. See
https://www.mediawiki.org/wiki/Help:Images#Rendering_a_gallery_of_images
for documentation.

—prtksxna

On Fri, Nov 3, 2017 at 11:56 PM, Strainu <[hidden email]> wrote:

> Hi there,
>
> Is there a way to start displaying a slideshow gallery from a random
> image without editing the site JavaScript, except for building a
> template that randomizes the content of the <gallery> tag?
>
> If not, is there a phab item for this feature?
>
> Thanks,
>     Strainu
>
> _______________________________________________
> Wikitech-l mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

_______________________________________________
Wikitech-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l