Template:Gallery result format/doc

This template is used to display Semantic MediaWiki query results as a an image gallery via the tag.

Usage
This template can be specified as the  parameter of an   query wrapped in a.

You need to tell the query to send named arguments to the template, and make sure the following result fields are set:


 * image – the raw page name of the image to show
 * caption – the text to show below the image
 * link – an URL to use as the link target for the caption (optional)

Writing  instead of   is necessary because the latter cannot contain function and template calls.

Example
..results in: