Template:Doc

This template creates a box with two to five images arranged vertically or horizontally with captions for the entire box and/or for each images.

Usage

 * align defaults to "center"
 * direction defaults to "horizontal"
 * header_align defaults to "center"
 * footer_align defaults to "left"
 * image1 is name of first image. Similarly for image2, etc.
 * width1 is width of first image. Similarly for width2, etc.
 * alt1 is alt text of first image (see WP:ALT). Similarly for alt2, etc.
 * caption1 is caption of first image. Similarly for caption2, etc.
 * link1 is where the first page links to. Similarly for link2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per WP:ALT. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction.
 * width overrides width1, width2, width3, width4, and width5. If you want the images to be different sizes, do not provide the width parameter.
 * background color defines the background color between the border of the box and the images.
 * header, footer, background color and captions are optional.



Examples






Example with background color


Example with links


Horizontal placement: matching image heights

 * This trick is not required if both images have the same aspect ratio, where width suffices


 * Decide on a common height for the images, say 100 pixels.
 * Examine 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)"
 * Use these figures to construct an expression for the widthn parameters, of the form:
 * where
 * dh is the desired height in pixels (100)
 * ow is the original width in pixels (750 or 300)
 * oh is the original height in pixels (536 or 300)
 * oh is the original height in pixels (536 or 300)

