Jump to content

Module:Random slideshow/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Module:Redirect is unused
Replace merged template
Line 1: Line 1:
{{Module rating |alpha}}
{{Module rating |alpha}}
{{Template display|badmobile}}
{{Mobile view problem|explanation=On mobile devices a standard gallery is displayed instead of the slideshow. If the screen width is less than 720px, only the first four images after randomisation are visible ([[:File:Israel_portal_mobile_375x800.png|example screenshot]]). For mobile devices with larger resolutions, all images are displayed ([[:File:Israel_portal_mobile_800x920.png|example screenshot]]). For some tables it displays all images stacked ([[:File:Mobile view problem climate change.png|example screenshot]])}}
{{Uses Lua|Module:Excerpt/portals|Module:Random}}
{{Uses Lua|Module:Excerpt/portals|Module:Random}}
{{Uses TemplateStyles|Module:Random slideshow/styles.css}}
{{Uses TemplateStyles|Module:Random slideshow/styles.css}}
Line 12: Line 12:


This module is also used by [[Module:Excerpt slideshow]].
This module is also used by [[Module:Excerpt slideshow]].

==Display in the mobile view==
On mobile devices, a standard gallery is displayed instead of the slideshow. If the screen width is less than 720px, only the first four images after randomisation are visible ([[:File:Israel_portal_mobile_375x800.png|example screenshot]]). For mobile devices with larger resolutions, all images are displayed ([[:File:Israel_portal_mobile_800x920.png|example screenshot]]). For some tables, it displays all images stacked ([[:File:Mobile view problem climate change.png|example screenshot]]).


== Testcases ==
== Testcases ==

Revision as of 04:21, 4 October 2023

Usage

{{#invoke:Random slideshow|main}}
See {{Random slideshow}} for details.
{{#invoke:Random slideshow|transclude}}
See {{Transclude files as random slideshow}} for details.

This module is also used by Module:Excerpt slideshow.

Display in the mobile view

On mobile devices, a standard gallery is displayed instead of the slideshow. If the screen width is less than 720px, only the first four images after randomisation are visible (example screenshot). For mobile devices with larger resolutions, all images are displayed (example screenshot). For some tables, it displays all images stacked (example screenshot).

Testcases

The following testcase pages are available for testing changes made to this module's sandbox: