Template:Multiple image/doc

This template creates a box containing between two and ten images, arranged either vertically or horizontally and with captions for the entire box or per image.

With the appropriate choice of parameters, the template can automatically resize images to a given total width with each image having the same height.

Be aware that this template does not respect users' default image size preferences. (Image use policy states: "Except with very good reason, do not use "... "which forces a fixed image width. In most cases should be used, thereby respecting the user's base preference (which may have been selected for that user's particular devices).")

If image size parameters are omitted, this template sets all images at 200px wide, regardless of whether the reader has set a preference for some other default image width. This causes multiple images to look out of scale to the other images in an article.

Syntax and parameters
Provide height[n] and total_width parameters to obtain automatic resizing. Note the different meanings of the width[n] parameters with vs. without automatic resizing. Please also note the option to set a total_width parameter at the beginning of the multiple image template.
 * No automatic resizing of all images to the same height


 * Automatic resizing of all images to the same height and to a given total width

Using direction
By default, the images the template presents are displayed horizontally, as a row (see left; equivalent to setting ). To display them vertically, i.e. as a column, set (see right).

On mobile devices some images may always be displayed vertically if the total width is larger than around 320.

To match image heights

 * Decide on a total width for all the images, say 320px
 * Set the total width using total_width

The aspect ratio of each image is automatically retrieved from the File metadata. You can override the native width and height values by
 * Examining the individual image pages to obtain the full resolution. For example:
 * File:Donkey 1 arp 750px.jpg shows "Donkey_1_arp_750px.jpg (750 × 536 pixels, file size: 125 KB, MIME type: image/jpeg)"
 * File:Rainbow trout.png shows "Rainbow_trout.png (300 × 300 pixels, file size: 158 KB, MIME type: image/png)"
 * Specify the full width and height for each image, of the form:
 * width1 height1 width2 height2

Multiple rows
To create an array of images, with multiple rows, use perrow. The value passed to perrow may be a single number, or a list of numbers delimited by. This feature may also be combined with total_width for multiple rows of images with the same total width.



Removing the image border
The border around the images can be removed using border:none.



Increasing the gap between images
The gap between the images can be increased using N, where N is the number of pixels (must be non-negative).

