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

From Wikispooks
Jump to navigation Jump to search
(Fix {{s)
m (Text replacement - "WikiSpooks" to "Wikispooks")
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''This template makes a single tab of [[Template:Main-panel-tabstrip-with-icon]].[[Category:WikiSpooks Templates]]<br/>
+
<noinclude>'''This template makes a single tab of [[Template:Main-panel-tabstrip-with-icon]].[[Category: Wikispooks Mainpage Templates‎]]<br/>
 +
The output is formatted by [[Template:Main-panel-with-icon/output]].<br/>
 
<br/>
 
<br/>
 
Usage:<br/>
 
Usage:<br/>
 
<nowiki>{{</nowiki>{{PAGENAME}}<br/>
 
<nowiki>{{</nowiki>{{PAGENAME}}<br/>
 
|ask= ''The SMW Query expression<br/>
 
|ask= ''The SMW Query expression<br/>
|image= image for the tabstrip header<br/>
+
|image= optional image for the tabstrip header (needed unless this is a standalone tab)<br/>
|limit= how many results to show (defaults to 36)<br/>
+
|limit= how many results to show (defaults to 15)<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:Modification date|Modification date]])<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
</noinclude><includeonly>={{#if: {{{image|}}}|[[image:{{{image|}}}|33px|alt={{{title|}}}|link=]]&nbsp;<span style="display:none;">{{{title|}}}</span>|<big>'''{{{title}}}'''</big>}}=
+
</noinclude><includeonly>= <span title="{{{title|}}}">[[image:{{{image|}}}|40px|alt={{{title|}}}|link=]]</span>&nbsp;<span style="display:none;">{{{title|}}}</span> =
 
{|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;"
 
!{{#Ask: {{{ask|}}}
 
!{{#Ask: {{{ask|}}}
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
+
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Modification date}}
 
|order=descending
 
|order=descending
|?Has objectClass2
+
|?Display image
 
|?Has revisionSize
 
|?Has revisionSize
 
|?Has revisionUser
 
|?Has revisionUser
 
|?Is stub
 
|?Is stub
 
|?Creation date
 
|?Creation date
|?Has wikipediaPage
+
|?Has wikipediaPage2
|?Has image
+
|?Has fullPageNamee
|?Has logo
+
|?Modification date
 +
|?So called
 +
|?Has averageRating
 +
|?Has wikipediaProtection
 +
|?Has titularLogo
 +
|?Has website
 +
|?Has URL
 +
|?Description
 
|format=template
 
|format=template
 
|template=Main-panel-with-icon/output
 
|template=Main-panel-with-icon/output
|limit={{#if: {{{limit|}}}|{{{limit}}}|36}}
+
|limit={{#if: {{{limit|}}}|{{{limit}}}|12}}
|searchlabel=
+
|searchlabel=}}
}}
 
 
|}</includeonly>
 
|}</includeonly>

Latest revision as of 17:24, 14 October 2018

This template makes a single tab of Template:Main-panel-tabstrip-with-icon.
The output is formatted by Template:Main-panel-with-icon/output.

Usage:
{{Main-panel-tabstrip-with-icon/tab
|ask= The SMW Query expression
|image= optional image for the tabstrip header (needed unless this is a standalone tab)
|limit= how many results to show (defaults to 15)
|title= tab title
|sort= property to sort on (defaults to Modification date)
}}