Template:File Gallery: Difference between revisions

From Fish Family Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
</noinclude><includeonly>{{Wrap|{{H2|{{#if: {{{title|}}} | {{{title}}} | Related Files }}}}
</noinclude><includeonly>{{Wrap|{{H2|{{#if: {{{title|}}} | {{{title}}} | Related Files }}}}


|{{#ask: {{{1|}}}
|{{Clean SMW|{{#ask: {{{1|}}}
| {{#if: {{{caption|}}} | ?{{{caption}}} }}
| {{#if: {{{caption|}}} | ?{{{caption}}} }}
| format=gallery
| format=gallery
Line 14: Line 14:
| limit={{#if: {{{limit|}}} | {{{limit}}} | 40 }}
| limit={{#if: {{{limit|}}} | {{{limit}}} | 40 }}
| searchlabel=More
| searchlabel=More
}}}}</includeonly>
}}}}}}</includeonly>

Revision as of 09:04, 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