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

From Wikispooks
Jump to navigation Jump to search
(trim table header of the panel)
(Icons only)
Line 5: Line 5:
 
|ask= ''The SMW Query expression<br/>
 
|ask= ''The SMW Query expression<br/>
 
|image= image for the tabstrip header<br/>
 
|image= image for the tabstrip header<br/>
|alt= alt text for the image<br/>
 
 
|limit= how many results to show (defaults to 36)<br/>
 
|limit= how many results to show (defaults to 36)<br/>
@@@|link= where to link the title image and text<br/>
+
|title= tab title<br/>
|title= Tab title<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>
</noinclude><includeonly>={{{title|}}}[[image:{{{image|}}}|33px|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|}}}
 
!colspan="5" style="font-size:125%; text-align:center; border:1px solid #9a9a9a; padding:0em; background-color:#d0e5f5; padding:0.25em;"|{{#Ask: {{{ask|}}}

Revision as of 13:51, 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)
}}