Jump to content

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

From Deep Politics Wiki
WikiSpooks>Robin
Has fullPageName is superior to Has fullPageNamee for |link
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 16: Line 16:
!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]]}}
|-
|-
{{#Ask: {{{ask|}}}
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
|order=descending
|?Has objectClass2
|?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=
}}
|}
|}

Latest revision as of 22:34, 24 September 2026

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)
}}