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

From Wikispooks
Jump to navigation Jump to search
(testing)
 
(Has fullPageName is superior to Has fullPageNamee for |link)
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''This template makes a panel for the main page.'''[[Category:WikiSpooks Templates]]<br/>
+
<noinclude>'''This template makes a panel for the main page.'''<br/>
 +
For a tabstripped version, see [[Template:Main-panel-tabstrip-with-icon]].[[Category:Wikispooks Mainpage Templates‎]]<br/>
 
<br/>
 
<br/>
 
Usage:<br/>
 
Usage:<br/>
Line 6: Line 7:
 
|image= image for the section header<br/>
 
|image= image for the section header<br/>
 
|alt= alt text for the image<br/>
 
|alt= alt text for the image<br/>
|limit= how many results to show (defaults to 6)<br/>
+
|limit= how many results to show (defaults to 28)<br/>
|link= where to link the image and text<br/>
+
|link= where to link the title image and text<br/>
 
|title= section title<br/>
 
|title= section 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><includeonly>
 
</noinclude><includeonly><includeonly>
<div style="border-bottom:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;">'''{{#if: {{{link|}}}|[[{{{link}}}|{{{title|}}}]]|{{{title|}}}}}'''</div>
+
{|style="font-size:100%; text-align:left; width:100%; border-bottom:1px solid #dedede; padding:0.25em;"
<div style="padding:0.5em 0.5em 0.5em 0.5em;font-size:102%;">
+
!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]]}}
{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|65px]]}}
+
|-
 
{{#Ask: {{{ask|}}}
 
{{#Ask: {{{ask|}}}
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
 
|order=descending
 
|order=descending
| ?display_icon
+
|?Has objectClass2
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
+
|?Has revisionSize
 +
|?Has revisionUser
 +
|?Is stub
 +
|?Creation date
 +
|?Has wikipediaPage2
 +
|?Has fullPageName
 +
|?Modification date
 +
|?So called
 +
|?Has averageRating
 +
|?Has titularLogo
 +
|?Has website
 +
|?Description
 +
|format=template
 +
|template=Main-panel-with-icon/output
 +
|limit={{#if: {{{limit|}}}|{{{limit}}}|28}}
 +
|searchlabel=
 
}}
 
}}
</div>
+
|}

Latest revision as of 14:12, 22 February 2020

This template makes a panel for the main page.
For a tabstripped version, see Template:Main-panel-tabstrip-with-icon.

Usage:
{{Main-panel-with-icon
|ask= The SMW Query expression
|image= image for the section header
|alt= alt text for the image
|limit= how many results to show (defaults to 28)
|link= where to link the title image and text
|title= section title
|sort= property to sort on (defaults to Creation date)
}}