Help:Gallery format 1.5.0 - 1.7.1

The result format gallery, part of the Semantic Result Formats extension, displays query results as dynamic galleries with output which is the same as when using MediaWiki's built-in   tag.

Usage
You can create a gallery either by querying image pages, or by querying image names which are a property of other pages.

Querying image pages
To generate a simple gallery of all images whose image pages have been categorized as "Photographs", you could use the following syntax:

Simulated result:

Querying image names as properties
The gallery format can also display images named by properties on your pages. You must add the property to be queried to your pages using the "Has" syntax, including "File:", as shown in this example:



Your query must have two parts: a query for the existence of the property, using a "?", and a query for the name of the property, using "imageproperty". You may optionally specify a property containing a caption: "captionproperty".

This example will return a gallery of images named by the "Has image" property, specified on pages in the category "Events":

This example will show images from the current page with their captions:

Examples

 * Demonstrates how to use the carousel widget
 * Demonstrates how to use the slideshow widget
 * Demonstrates how to use the redirects feature.

Pre-release information
This icon will indicate a different target than the image itself.

This icon will indicate that an image is available as overlay.