Module:Gallery/doc

From Dune: Awakening Community Wiki
Jump to navigation Jump to search

This is the documentation page for Module:Gallery

Module:Gallery

Renders a responsive flexbox media gallery.

This module should not be invoked directly unless omitting the Gallery heading is intentional. To add a normal gallery to a page, use Template:Gallery.

This module provides the following function(s):

  • main - parses a tilde-delimited list of media items and renders them as a flexbox gallery.

Usage

Render a gallery

{{#invoke:Gallery|main|
Sandbike - Atreides.jpg~Atreides Sandbike Variant
Sandbike - Harkonnen.jpg~Harkonnen Sandbike Variant
}}

Parameters

main

1
string
Multi-line list of gallery items, one per line.
Each line is a filename, optionally followed by a caption delimited with a tilde: Filename.jpg~Optional caption.
Supports all media types accepted by [[File:...]], including video.