Jump to content

Template:Main-panel: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
image_width
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 17: Line 17:
<div style="padding:0.5em 0.5em 0.5em 0.5em;font-size:102%;">
<div style="padding:0.5em 0.5em 0.5em 0.5em;font-size:102%;">
{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|{{image_width|65px}}]]}}
{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|{{image_width|65px}}]]}}
{{#Ask: {{{ask|}}}
 
|sort={{#if: {{{sort|}}}|{{{sort|}}}|Creation date}}
|order=descending
|format=ul
|limit={{#if: {{{limit|}}}|{{{limit}}}|6}}
|searchlabel={{{searchlabel|}}}
}}
</div>}}
</div>}}

Latest revision as of 22:34, 24 September 2026

This template makes a panel for the main page.

Usage:
{{Main-panel
|ask= The SMW Query expression
|image= image for the section header
|image= image wudth, defaults to 65px
|alt= alt text for the image
|limit= how many results to show (defaults to 6)
|link= where to link the image and text
|title= section title
|searchlabel="Further Results..." label (defaults to <empty>)
|sort= property to sort on (defaults to Creation date)
}}