Difference between revisions of "Template:Main-panel"

From Wikispooks
Jump to navigation Jump to search
(<br/>)
(|alt)
Line 5: Line 5:
 
|ask= ''The SMW Query expression<br/>
 
|ask= ''The SMW Query expression<br/>
 
|image= image for the section header<br/>
 
|image= image for the section header<br/>
 +
|alt= alt text for the image<br/>
 
|link= where to link the image<br/>
 
|link= where to link the image<br/>
 
|title= section title<br/>
 
|title= section title<br/>
Line 12: Line 13:
 
<div style="border-bottom:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;">'''{{{title|}}}'''</div>
 
<div style="border-bottom:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;">'''{{{title|}}}'''</div>
 
<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|}}}|right|65px]]}}
+
{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|65px]]}}
 
{{#Ask: {{{ask|}}}
 
{{#Ask: {{{ask|}}}
 
|sort={{{sort|}}}
 
|sort={{{sort|}}}

Revision as of 03:45, 27 June 2014

This template makes a panel for the main page.

Usage:
{{Main-panel
|ask= The SMW Query expression
|image= image for the section header
|alt= alt text for the image
|link= where to link the image
|title= section title
|sort= property to sort on
}}