Global Lua Modules/GalleryPreview

GalleryPreview is a module that generates a gallery preview from pages designated as galleries.

Usage
It is suggested that GalleryPreview is invoked through a template.

The generated gallery may be configured similarly to galleries. These setting customizations must be passed through the  parameter in the following format: option1: "value", option2: "value2"

Arguments

 * gallery_page
 * Link to a page's associated gallery page. Should not be enclosed by brackets.


 * number_of_images
 * The number of images to select randomly and include in the generated gallery. If this number exceeds the number of images on the gallery page, the generated gallery will include all images from the gallery page.


 * default (optional)
 * The text to be shown if  links to a non-existent page. If not provided, the module has its own built-in default.


 * settings (optional)
 * Gallery customization pairs formatted as . See  above. By default, the gallery is formatted to be centered, navigation set to true, and to exclude the "add to gallery" button.

Examples
gives...

gives...