Extension:Semantic Result Formats/gallery format

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

Usage
To generate a simple gallery of all images in the 'Photographs' category, you could use the following:

Semantic Gallery also respects the following parameters (which mean the same as they do when using them with the   tag):
 * perrow: to define how many thumbnails are shown in each row of the gallery,
 * heights: to set the maximum height (in pixels) of the thumbnails, and
 * widths: to set the maximum width of each thumbnail.

Captions
The default caption is the image page title without the namespace. If you want, you can make the caption a property of that page:

See this page on the Timber Investments Wiki for a complete, working example.

Example sites that use this result formats

 * Hardhoutbeleggingen Wiki - A Dutch-language wiki about hardwood investments. (Example page)
 * Timber Investments Wiki - An English-language version of the same. (Example page)

To-do

 * Do something intelligent when the inline query has no results.
 * Do something intelligent when the inline query has more results than the "limit" parameter allows.