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

From Wikispooks
Jump to navigation Jump to search
(Icons only)
(trim header line)
Line 11: Line 11:
 
</noinclude><includeonly>=<span style="display:none;">{{{title|}}}</span>[[image:{{{image|}}}|33px|alt={{{title|}}}|link=]]=
 
</noinclude><includeonly>=<span style="display:none;">{{{title|}}}</span>[[image:{{{image|}}}|33px|alt={{{title|}}}|link=]]=
 
{|style="font-size:100%; text-align:left; width:100%; border-bottom:1px solid #dedede; padding:0.25em;"
 
{|style="font-size:100%; text-align:left; width:100%; border-bottom:1px solid #dedede; padding:0.25em;"
!colspan="5" style="font-size:125%; text-align:center; border:1px solid #9a9a9a; padding:0em; background-color:#d0e5f5; padding:0.25em;"|{{#Ask: {{{ask|}}}
+
!{{#Ask: {{{ask|}}}
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
 
|order=descending
 
|order=descending

Revision as of 13:52, 19 October 2014

This template makes a single tab of Template:Main-panel-tabstrip-with-icon.

Usage:
{{Main-panel-tabstrip-with-icon/tab
|ask= The SMW Query expression
|image= image for the tabstrip header
|limit= how many results to show (defaults to 36)
|title= tab title
|sort= property to sort on (defaults to Creation date)
}}