Template:Multiple image allows for using multiple images (from 2 to 10) in a single in-article thumbnail, aligned vertically or horizontally, and with a caption either for the thumbnail or for each image, as well as other available modifications.

This template depends on Module:Multiple image
This template uses Lua. To make adjustments to this template, edit the module page.

Usage

{{multiple image
|align             = 
|direction         = 
|background_color  = 
|width             = 
|total_width       = 
|caption_align     = 

|header_background = 
|header_align      = 
|header            = 

|image[n]          = 
|width[n]          = 
|alt[n]            = 
|link[n]           = 
|thumbtime[n]      = 
|caption[n]        = 

|footer_background = 
|footer_align      = 
|footer            = 
}}

Parameters

Optional

align
(default: "right" )

The position of the thumbnail relative to page content. Options:

  • right (default)
  • left
  • center
  • none

Optional

direction
(default: "horizontal" )

The alignment of each image relative to each other, either horizontal (default) or vertical.

Optional

background_color

The background color of the thumbnail (applies to all images). If left empty, this will remain as styled in the site's stylesheet (recommended).

Optional

width
(default: "200" )

The width of the thumbnail in pixels, applies to all images. This parameter will override width[n] below. Omit px from this value. Defaults to 200 (200 pixels wide). Must be used over total_width below.

Optional

total_width

Sets the total width of the thumbnail, automatically sizing the images therein accordingly. Must be used over width above.

Optional

caption_align
(default: "left" )

The text-alignment of the thumbnail captions. Options:

  • left (default)
  • right
  • center

Optional

header_background

The background color of the header. If left empty, this will remain as styled in the site's stylesheet (recommended).

Optional

header_align
(default: "center" )

The text-alignment of the thumbnail header. Options:

  • center (default)
  • right
  • left

Optional

header

The header text, situated at the top of the thumbnail above all images.

Semi-required

image1 up to image10

The file name and extension of the desired image, omitting "File:" and "Image:" prefixes. At least 2 required, up to 10 supported.

Optional

width1 up to width10

The individual width of the [n]th image. This will be overridden by the global width parameter above.

Semi-required

alt1 up to alt10

An alt description for the [n]th image. Not required but strongly recommended (see MOS:ALT).

Optional

link1 up to link10

The link to which the [n]th image leads. This parameter should not be used on mainspace articles.

Optional

thumbtime1 up to thumbtime10

When using Ogg Theora files, this parameter sets the time within the video that is used for the initial display (thumbnail). This is either a number of seconds or hours:minutes:seconds. See Setting a video thumbnail image.

Optional

caption1 up to caption10

The caption for the [n]th image.

Optional

footer_background

The background color of the footer. If left empty, this will remain as styled in the site's stylesheet (recommended).

Optional

footer_align
(default: "left" )

The text-alignment of the thumbnail footer. Options:

  • left (default)
  • right
  • center

Optional

footer

The footer text, situated at the bottom of the thumbnail below all images.

Example

The following code produces the following output (right):

{{multiple image
|direction = horizontal
|width     = 50

|image1    = Bartz-Bard.PNG
|alt1      = Bartz

|image2    = Lenna-Bard.PNG
|alt2      = Lenna

|image3    = Faris-Bard.PNG
|alt3      = Faris

|image4    = Galuf-Bard.PNG
|alt4      = Galuf

|image5    = Krile-Bard.PNG
|alt5      = Krile

|footer    = [[Bard (Final Fantasy V)]]
}}
Community content is available under CC-BY-SA unless otherwise noted.