Difference between revisions of "Template:Main-panel"

From Wikispooks
Jump to navigation Jump to search
(|alt)
("Creation date" as default)
Line 8: Line 8:
 
|link= where to link the image<br/>
 
|link= where to link the image<br/>
 
|title= section title<br/>
 
|title= section title<br/>
|sort= property to sort on<br/>
+
|sort= property to sort on (defaults to [[Property:Creation date|Creation date]])<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</noinclude><includeonly><includeonly>
 
</noinclude><includeonly><includeonly>
Line 15: Line 15:
 
{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|65px]]}}
 
{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|65px]]}}
 
{{#Ask: {{{ask|}}}
 
{{#Ask: {{{ask|}}}
|sort={{{sort|}}}
+
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
 
|order=descending
 
|order=descending
 
|format=ul
 
|format=ul

Revision as of 07:42, 27 June 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
|link= where to link the image
|title= section title
|sort= property to sort on (defaults to Creation date)
}}