Template:Gallery

From Predecessor Wiki
Jump to navigation Jump to search
Template-info.svg Documentation
Lua.svg
This template uses Module:Gallery (edit | hist), a script written in Lua.

This template generates a gallery of images on pages. It is intended to supersede the MediaWiki <gallery> tag.

Syntax

{{Gallery|<images>}} or {{Gallery|<images>|<width>|<height>}}

  • 1: A list of images separated by | symbols.
    • A caption can be added to an image by adding a ; (semi-colon) delimiter and writing the caption.
  • width: Sets the width of images. Defaults to 100.
    • While the size is parsed as pixels, do not write px after the size.
  • height: Sets the height of images. Defaults to 100.
    • While the size is parsed as pixels, do not write px after the size.

Examples

Regular Gallery
{{Gallery
|Argus.png
|Aurora.png
|Countess.png
}}


Captions
{{Gallery
|Argus.png;Caption
|Aurora.png;Another caption
|Countess.png
}}


Sizes
{{Gallery
|width=120
|height=90
|Argus.png;Caption
|Aurora.png;Another caption
|Countess.png
}}