Template:Gallery/doc
More actions
Purpose
This template displays a compact gallery of files associated with an image collection. File pages join a collection through the collection parameter of Template:SotA screenshot or another template that stores Has image collection.
Usage
{{Gallery}}
To query a collection whose name differs from the current page:
{{Gallery|Collection name}}
Parameters
| Parameter | Required | Explanation |
|---|---|---|
1
|
No | Image-collection name. Defaults to the current page name. The value is converted to lowercase for the semantic query. |
Behavior
When matching files exist, the template creates a level-two Gallery section and displays up to five results. Images are rendered at 155 by 155 pixels, and captions come from each file's Has description value. When no matching files exist, the template produces no heading or gallery.
The template queries Has image collection; it does not add files to a collection. Add or correct collection metadata on the relevant File pages instead.
Example
{{Gallery|Cow}}
See Cow for a live use. The example is not rendered here so the documentation remains stable if collection membership changes.