Difference between revisions of "Template:Main-panel2"

From Wikispooks
Jump to navigation Jump to search
(smaller image)
Line 16: Line 16:
 
{|style="width:100%;"
 
{|style="width:100%;"
 
!style="width:49%; border-bottom:1px solid #9a9a9a;  border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;" | {{#if: {{{title1|}}}|{{{title1|}}}|New}}
 
!style="width:49%; border-bottom:1px solid #9a9a9a;  border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;" | {{#if: {{{title1|}}}|{{{title1|}}}|New}}
!style="width:2%; border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.1em 0.1em; font-size:112%;text-align:center;" colspan="2" |{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|center|36px]]}}
+
!style="width:38px; border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.1em 0.1em; font-size:112%;text-align:center;" colspan="2" |{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|center|36px]]}}
 
!style="width:49%; border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;" | {{#if: {{{title2|}}}|{{{title2|}}}|Modified}}
 
!style="width:49%; border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;" | {{#if: {{{title2|}}}|{{{title2|}}}|Modified}}
 
|-
 
|-

Revision as of 16:03, 10 August 2014

This template makes a double panel for the main page.

Usage:
{{Main-panel2
|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 image and text
|title1= section left title (defaults to "New")
|title2= section right title (defaults to "Modified")
|sort1= property to sort the left panel on (defaults to Creation date)
|sort2= property to sort the right panel on (defaults to Modification date)
}}