Extension:Semantic Gallery

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.

Sites that use this extension

 * Hardhoutbeleggingen Wiki - A Dutch-language wiki about hardwood investments. (Example page)

To-do

 * Support captions that are different than the image page title.
 * 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.