Difference between revisions of "Template:Main-panel-with-icon"
Jump to navigation
Jump to search
(smaller top image) |
(wider) |
||
Line 7: | Line 7: | ||
|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 6)<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/> | ||
Line 13: | Line 13: | ||
</noinclude><includeonly><includeonly> | </noinclude><includeonly><includeonly> | ||
<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%;"> | ||
− | {|style="border:1px solid #9a9a9a; padding:0.2em 0.2em; font-size:100%;text-align:left;" | + | {|style="border:1px solid #9a9a9a; padding:0.2em 0.2em; font-size:100%; text-align:left; width:100%;" |
!style="font-size:175%;border:1px solid #9a9a9a; padding:0.5em 0.5em; background-color:#d0e5f5;"|{{#if: {{{link|}}}|[[{{{link}}}|{{{title|}}}]]|{{{title|}}}}}{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|50px]]}} | !style="font-size:175%;border:1px solid #9a9a9a; padding:0.5em 0.5em; background-color:#d0e5f5;"|{{#if: {{{link|}}}|[[{{{link}}}|{{{title|}}}]]|{{{title|}}}}}{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|right|50px]]}} | ||
|- | |- |
Revision as of 08:45, 19 September 2014
This template makes a panel for the main page.
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 6)
|link= where to link the title image and text
|title= section title
|sort= property to sort on (defaults to Creation date)
}}