Difference between revisions of "Template:Main-panel-tabstrip-with-icon/tab"
Jump to navigation
Jump to search
(a start) |
m (Text replacement - "WikiSpooks" to "Wikispooks") |
||
(41 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: | + | <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 | + | |image= optional image for the tabstrip header (needed unless this is a standalone tab)<br/> |
− | + | |limit= how many results to show (defaults to 15)<br/> | |
− | |limit= how many results to show (defaults to | + | |title= tab title<br/> |
− | + | |sort= property to sort on (defaults to [[Property:Modification date|Modification date]])<br/> | |
− | |||
− | |sort= property to sort on (defaults to [[Property: | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly>= <span title="{{{title|}}}">[[image:{{{image|}}}|40px|alt={{{title|}}}|link=]]</span> <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|}}} |
− | + | |sort={{#if: {{{sort|}}}|{{{sort|}}}|Modification date}} | |
− | {{#Ask: {{{ask|}}} | ||
− | |sort={{#if: {{{sort|}}}|{{{sort|}}}| | ||
|order=descending | |order=descending | ||
− | |? | + | |?Display image |
|?Has revisionSize | |?Has revisionSize | ||
|?Has revisionUser | |?Has revisionUser | ||
|?Is stub | |?Is stub | ||
|?Creation date | |?Creation date | ||
− | |?Has | + | |?Has wikipediaPage2 |
− | |?Has | + | |?Has fullPageNamee |
− | |?Has | + | |?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}}}| | + | |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)
}}