Difference between revisions of "Template:File Gallery"

From Green Family Wiki
Jump to: navigation, search
Line 5: Line 5:
 
* ''sort'': property or property list for sorting; default is "File Year"
 
* ''sort'': property or property list for sorting; default is "File Year"
 
* ''limit'': max size; default is 40
 
* ''limit'': max size; default is 40
 +
(Query has to be run twice, first to check for any results, because the "gallery" format does not produce true empty output.)
 
</noinclude><includeonly>{{#if:
 
</noinclude><includeonly>{{#if:
 
{{#ask: {{{1|}}}
 
{{#ask: {{{1|}}}

Revision as of 08:22, 1 July 2015

Generate a section containing a grid of files based on a query. If nothing matches, the result is empty.

  • First parameter: SMW query to execute
  • title: title for the section header; default is "Related Files"
  • caption: property to use as a caption; default is none
  • sort: property or property list for sorting; default is "File Year"
  • limit: max size; default is 40

(Query has to be run twice, first to check for any results, because the "gallery" format does not produce true empty output.)