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

From Wikispooks
Jump to navigation Jump to search
(a start)
 
(tabs)
Line 8: Line 8:
 
|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/>
 
@@@|link= where to link the title image and text<br/>
@@@|title= section 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>
+
</noinclude><includeonly>={{{title|}}}[[image:{{{image|}}}|33px|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;"|{{#if: {{{link|}}}|[[{{{link}}}|{{{title|}}}]]|{{{title|}}}}}{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|50px]]}}
 
!colspan="5" style="font-size:125%; text-align:center; border:1px solid #9a9a9a; padding:0em; background-color:#d0e5f5; padding:0.25em;"|{{#if: {{{link|}}}|[[{{{link}}}|{{{title|}}}]]|{{{title|}}}}}{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|50px]]}}

Revision as of 13:37, 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
|alt= alt text for the image
|limit= how many results to show (defaults to 36)
@@@|link= where to link the title image and text
|title= Tab title
|sort= property to sort on (defaults to Creation date)
}}