Template:Image Gallery
Jump to navigation
Jump to search
Displays a gallery of images for a given category. The results of the semantic category query are formatted by {{Image gallery line}}.
Parameters
- category (unnamed parameter 1)
- Category of images to display. Defaults to the pagename. For example, a gallery on the page "Category:Daggers/Gallery" would produce a gallery for the daggers category.
- conditions
- Optional query terms. Semi-colon separated list of additional semantic query conditions to filter the category results.
- or-conditions
- Optional query terms. Semi-colon separated list of alternative semantic query conditions to filter the category results. The "OR" conditions will be combined with the conditions to merge two result sets, i.e.
[[Has foo::foo]] OR [[Has bar::bar]]. The category will always be included in the search filters.
- sort
- Optional. Comma-delimited list of properties to sort by. Default value: "Has canonical name"
- image-property
- Optional. Used to specify the image property to be displayed in the gallery. Defaults to "Has appearance".
- size
- Optional. Number. Used to specify the maximum height of the images in the gallery. Defaults to "200".
- show-placeholders
- Optional. Boolean. Set to 'n' to prevent the image placeholder from displaying for any pages without an image. By default, placeholders will be displayed for pages without images.
Examples
Basic gallery for a category
{{Image Gallery|Door}}
Gallery with additional filters
{{Image Gallery
| Resistance Weapons
| conditions = Has weapon type::Gladiator's Arm;Has canonical name::!~*Replica*
| or-conditions = Has weapon type::Gladiator's Arm;Has canonical name::~*Matte*
}}
Gallery with custom options
{{Image Gallery
| Patch 7.35 Items
| conditions = Has equipment supertype::Armor;Has female appearance::+
| image-property = Has female appearance
| show-placeholders = n
| size = 150
| limit = 5
| further-results = User:Gurgum/sandbox/Patch_7.35_female_armor
}}