Difference between revisions of "Template:Main-panel-with-icon"

From Wikispooks
Jump to navigation Jump to search
(tidier column header)
(Switch to using template method to output it)
Line 19: Line 19:
 
|order=descending
 
|order=descending
 
| ?display_icon=
 
| ?display_icon=
 +
|format=template
 +
|template=Main-panel-with-icon/output
 
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
 
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
 
}}
 
}}
 
</div>
 
</div>

Revision as of 06:28, 19 September 2014

This template makes a panel for the main page.

Usage:
{{Main-panel-with-icon
|ask= The SMW Query expression
|image= image for the section header
|alt= alt text for the image
|limit= how many results to show (defaults to 6)
|link= where to link the image and text
|title= section title
|sort= property to sort on (defaults to Creation date)
}}