Template:Multiple image/doc

Description
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. 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.
 * 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
Note: The following is unnecessary if all the images presented by the template have the same aspect ratio; if so, simply set  accordingly.
 * Decide on a total width for all the images, say 320px
 * Set the total width using

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:

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



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



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



Credits
This template and its documentation were taken from the English Wikipedia.