Table of Contents

Gallery Plugin Usage Guide

Basic Syntax

Display All Images in a Namespace

The most common way is to specify a media namespace to display all images in that namespace:

{{gallery>:wiki:pagename?150x150&lightbox&showtitle}}

Syntax Explanation:

Display a Single Image

You can also specify a single image file:

{{gallery>:wiki:pagename:imagename.jpg?150x150&lightbox}}

Manually Specify Image List

If you need to manually specify a list of images, use the following syntax:

<gallery 150x150&lightbox>
:wiki:pagename:image1.jpg
:wiki:pagename:image2.jpg
https://example.com/external_image.jpg
</gallery>

How to Upload Images

Step-by-Step Instructions

Naming Conventions

Common Options

Size Settings

Layout Options

Other Common Options

Complete Examples

{{gallery>:wiki:新车间_xinchejian?150x150&lightbox&showtitle}}

Displays all images in the `wiki:新车间_xinchejian` namespace with 150×150 thumbnails, lightbox enabled, and titles shown.

Example 2: Custom Size and Layout

{{gallery>:wiki:pagename?200x200&center&nocrop&lightbox}}

Displays 200×200 thumbnails, center-aligned, no cropping, with lightbox enabled.

Example 3: Limit Number of Images

{{gallery>:wiki:pagename?150x150&=5&lightbox}}

Shows only the first 5 images.

Important Notes

Troubleshooting

Images Not Displaying