FANDOM



A gallery to display images faithful to the old galleries for clearer displaying of images. Limited to 240 parameters, or 120 images. Amount of images on a row change to the player's screen resolution, not including a caption works as long as the "|" is still placed after the file name. "File:" must be included, but not the square-brackets "[[,]]".

{{Gallery
|{file name}|{caption}
|{file name}|{caption}
}}

Captions aren't required but are encouraged. If no caption is used, then between the files should be two "|"s.

{{Gallery
|{file name}|
|{file name}|
}}

A number of other optional parameters exist to customize the infobox:

{{Gallery|align = |perrow = |title =| collapse =| background = |image-bg = |font-size = |text-align = |style =| class =| title-bg =| title-style =
|{file name}|{caption}
|{file name}|{caption}
}}
 Parameter  Inputs  Output
align left; right; center Aligns the entire gallery to either the left side of the page, the right side, or the center. Default is left.
perrow 1 - 120 Allows a fixed number of images per-line. Default leaves an unfixed number based on the user's screen resolution.
title text Adds a header to the gallery.
collapse show; hide Allows the gallery to be collapsed. Requires title. "show" makes the gallery collapsible, "hide" makes the gallery collapsed by default.
header 1 - 6 Allows the gallery header to be on the TOC. Requires title.
image-size 1 - 119 Allows the heights and width of the images to be changed. Default leaves 120x119px.
background color Allows the background color of the gallery-boxes to be changed. Default is #222222.
image-bg color Allows the background color of the images to be changed. Functions with transparent images. Default is #222222.
font-size #px Allows a specified font-size. Only way to override "smaller" default.
text-align left; right; center Aligns the captions to either the left side of the space, the right side, or the center. Only way to override "left" default.
style CSS properties Allows small modifications to the gallery through CSS. No quotation marks. Semi-colon seperators required. Cannot effect font-size. Cannot change text-alignment. Example modifications include font-weight and color.
class class codes Allows the design of the title to be changed based on official Wiki classes.
title-bg color Allows the background of the title to be changed. Overrides the class background. Default is #222222.
title-style CSS properties Allows modification to the title-section through CSS. No quotation marks. Semi-colon separators required.
Community content is available under CC-BY-SA unless otherwise noted.