Extension:Semantic Gallery

This extension is obsolete! It has been replaced by the 'gallery' format in the extension Semantic Result Formats.

Semantic Gallery is an extension to create dynamic galleries on wikis that use the Semantic MediaWiki extension. The output is the same as when using MediaWiki's built-in   tag.

Installation
This extension depends on Semantic MediaWiki because otherwise, what's the point?

You have so stick it (as a subdir called SemanticGallery) in your extensions directory and add the following line to your LocalSettings.php (after including the Semantic MediaWiki extension):

Usage
This extension add a 'gallery' output format to SMW inline queries. 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.

Sites that use this extension

 * 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.