Documentation

This template creates an array of up to 30 images with associated caption and alt text content. The {{gallery/aux}} template is nested within the code to format individual images.

This template has been adapted from the English version of Wikipedia. See this page for full documentation.

Usage

{{gallery
 |title=
 |lines=
 |width=
 |height=
 |[image #1]|[alt text #1]|[caption #1]
 |[image #2]|[alt text #2]|[caption #2]
 |[image #3]|[alt text #3]|[caption #3]
 |[...]
 }}

Required

|Image|Alt text|Caption

Specify one of these lines for each image.

If no such lines are present, a gallery with a single question-mark image is produced. There is currently a limit of 30 such lines.

Image is the image name (without any File: or Image: prefix).
Alt is the alt text, used by visually impaired readers; it typically has little in common with the caption (see wikipedia:WP:ALT). This can be omitted by formatting the code as:
|[image #1]||[caption #1]
Caption is the caption; see wikipedia:WP:CAPTION.

Optional

Optional fields can be omitted or left blank.

title
The gallery's title. This field can be used to provide labels for multiple galleries on a single page, so that all mystic arte cut-in images are grouped together into one section, while all character art is grouped into a separate section. Other separations can be provided on a case-by-case basis.
width
(default 100) Maximum width of each image.
height
(default 120) Maximum height of each image.
lines
(default 1) The number of text lines needed for the largest caption. Blank lines are appended to smaller captions. A caption that does not fit is cut off. Please add this field and provide the appropriate number of lines needed to display the full caption.
Community content is available under CC-BY-SA unless otherwise noted.