Template:Random slideshow/doc

This template 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 will not display in article space.

Usage
As many images and captions as desired may be specified, in the following format: Credits (e.g. "Photograph: Example") may be specified, using the following format

Parameters

 * 1, 3, 5, ... (or equivalent positional parameters)
 * File name. The "File:" prefix is optional.


 * 2, 4, 6, ... (or equivalent positional parameters)
 * Caption for the file.


 * credit1, credit2, credit3, ...
 * Credits for the file. Optional.


 * 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 )


 * random
 * Set to  or   to turn off the randomisation.

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).

Examples
to see these galleries in a different order

TemplateData
{	"params": { "1": {			"aliases": [ "(unnamed positional parameter)" ],			"label": "Image 1", "description": "Name of the first image, without prefix", "example": "Portal puzzle.svg, 1=Portal puzzle.svg", "type": "wiki-file-name", "default": "(empty)", "required": true },		"2": {			"aliases": [ "(unnamed positional parameter)" ],			"label": "Caption 1", "description": "Caption of the first image", "example": "2=This is the default portal icon", "type": "string", "default": "(empty)", "required": true },		"3": {			"aliases": [ "(unnamed positional parameter"			],			"label": "Image 2",			"description": "Name of the second image, without prefix",			"example": "Brown mouse.jpg, 3=Brown mouse.jpg",			"type": "wiki-file-name",			"default": "(empty)",			"suggested": true		},		"4": {			"aliases": [				"(unnamed positional parameter)"			],			"label": "Caption 2",			"description": "Caption of the second image",			"example": "4=This is a brown mouse",			"type": "string",			"default": "(empty)",			"suggested": true		},		"width": {			"label": "Width",			"description": "Maximum width of all images",			"example": "width=80px, width=30em, width=50%",			"type": "number",			"default": "(none)",			"suggested": true		},		"credit1": {			"label": "Credit 1",			"description": "Credit for the first image",			"example": "Photograph: Example"		},		"credit2": {			"label": "Credit 2",			"description": "Credits for the second image", "example": "Photographer: Example" }	},	"description": "Creates a slideshow gallery with randomized order. Add as many images as desired.", "paramOrder": [ "1",		"2",		"credit1", "width", "3",		"4",		"credit2" ],	"format": "block" }