Template:Transclude files as random slideshow/doc

This template transcludes images from specified pages, and creates a slideshow gallery with a randomised order – i.e. it changes when the page is purged. It is intended for use in portals and does not show anything in article space.

Usage
Though there is no fixed limit to the number of pages that can be specified, or images per page, be aware that technical limitations may be encountered for very large numbers of pages or images.

Specify pages displaying images:

If images should only be retrieved from a certain section of each page:

To also include some specific files:

Alternate syntax for specific files' captions and credits:

Parameters

 * 1, 2, 3, ... (or equivalent positional parameters)
 * Full page name – including namespace – of the page containing images, or of a specific image.


 * section1, section2, section3, ...
 * Limit to files in these section of the corresponding page. Optional.


 * caption1, caption2, caption3, ...
 * Caption for the corresponding file (or omit these parameters and use the alternate syntax shown above)


 * credit1, credit2, credit3, ...
 * Optional: Credits for the file (or omit these parameters and use the alternate syntax shown above)


 * width
 * Maximum width for all images; default is  (intended for use inside portal components)
 * Can be specified as a  (e.g. 75% ), or in  s (e.g. 30em ), or in   (e.g. 200px )
 * If a unit is not specified,  is assumed (i.e. 350 is equivalent to 350px )

Display in the mobile view
On mobile devices, a standard gallery is displayed instead of the slideshow, and only the first four images (after randomisation) are visible.