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

From Wikispooks
Jump to navigation Jump to search
(testing)
 
(tidier column header)
Line 18: Line 18:
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
 
|order=descending
 
|order=descending
| ?display_icon
+
| ?display_icon=
 
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
 
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
 
}}
 
}}
 
</div>
 
</div>

Revision as of 09:52, 18 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)
}}