Help:Gallery format

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 pages of images in namespace "File", 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 or subobjects using a property of, including namespace prefix "File:", as shown in this example:



Your query must have two parts: a printout statement returning the value of the property holding the page name of the image, and a parameter mapping this printout to the respective property called " ". You may optionally specify a property containing a caption to the mapping parameter called " ".

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:

Carousel widget
Display a gallery as carousel, using. Some examples an can be found here.

Slideshow widget
Display a gallery as slideshow, using. Some examples can be found here.

Redirects
Using option  or a property such as (e.g  ) will allow images within a gallery to be redirected. The icon  will indicate if an image is forwarded to a different target while each embbeded icon will point to its original image. Examples can be found here and be combined with the carousel widget, and the slideshow widget.

Images with a redirect property of type page are forwarded to its wikipage destination. Images with a redirect property of type URL are forwarded to its URL destination.
 * Wikipage
 * URL

Overlay
The overlay option allows to display images as fancybox overlay image in its original size. The icon will indicate if an image is available as overlay while the embedded icon will point to the original imag. Examples can be found throughout the entire wiki such as here and be combined with the standard SRF gallery, the carousel widget, and the slideshow widget.

Note 

The overlay and redirects option are mutually exclusive and in case both options are used within a query, the overlay option will take precedence over the redirects option.

Overlay and redirects need to gather additional information (URL of the original image etc.) which is done in an asynchronous mode therefore to improve accessibility and ease server response latency both features make use of jStorage, a cross-browser key-value store that stores URL data 24h locally in the browser.