Template:Multiplemaps/doc

This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images. It should be used only when there is a clear need to juxtapose two maps (example). Rarely, it might find another use, but keep in mind that Wikivoyage recommends a minimal use of images, and does not therefore allow image galleries.

Usage

 * align defaults to "right"
 * direction defaults to "horizontal"
 * header_align defaults to "center"
 * caption_align defaults to "left"
 * 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.
 * width overrides width1, width2, width3, etc. If you want the images to be different sizes, do not provide the width parameter.
 * alt1 is alt text of first image. 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.
 * 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
Vertical direction places the images on one straight line (column) downwards from the first image, while horizontal direction places the images left to right on multiple lines (rows):

— However, this will not be apparent if only two images are used, as the template with "direction = horizontal" will place both images on different lines (rows), creating a blank space.
 * This trick is not required if all 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 in Clovelly, North Devon, England.jpg shows "Donkey in Clovelly, North Devon, England.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)"
 * For non-square images, 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)
 * For square images, simply set the appropriate widthn to be the desired height. If all are square, only width needs to be set.
 * For square images, simply set the appropriate widthn to be the desired height. If all are square, only width needs to be set.