Content deleted Content added
→Usage: transclude function |
Bump rating |
||
(13 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Module rating |
{{Template display|badmobile}}
{{Uses Lua|Module:Excerpt/portals|Module:Random}}
{{Uses TemplateStyles|Module:Random slideshow/styles.css}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
;<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''main''}}</code>
Line 6 ⟶ 10:
;<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''transclude''}}</code>
:See {{tl|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 ([[: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 ==
The following testcase pages are available for testing changes made to this module's sandbox:
* [[Template:Random slideshow/testcases]]
* [[Template:Transclude files as random slideshow/testcases]]
{{Portal templates navbox}}
<includeonly>{{
<!-- Categories below this line, please; interwikis at Wikidata -->
|