Difference between revisions of "Template:Main-panel"

From Wikispooks
Jump to navigation Jump to search
(link from title)
(searchlabel)
Line 9: Line 9:
 
|link= where to link the image and text<br/>
 
|link= where to link the image and text<br/>
 
|title= section title<br/>
 
|title= section title<br/>
 +
|searchlabel="Further Results..." label (defaults to <empty>)<br/>
 
|sort= property to sort on (defaults to [[Property:Creation date|Creation date]])<br/>
 
|sort= property to sort on (defaults to [[Property:Creation date|Creation date]])<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
Line 20: Line 21:
 
|format=ul
 
|format=ul
 
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
 
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
 +
|searchlabel={{{searchlabel|}}}
 
}}
 
}}
 
</div>
 
</div>

Revision as of 09:22, 19 September 2014

This template makes a panel for the main page.

Usage:
{{Main-panel
|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
|searchlabel="Further Results..." label (defaults to <empty>)
|sort= property to sort on (defaults to Creation date)
}}