Difference between revisions of "Template:Main-panel2"
Jump to navigation
Jump to search
(smaller image) |
m (Text replacement - "WikiSpooks" to "Wikispooks") |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>'''This template makes a double panel for the main page.'''[[Category: | + | <noinclude>'''This template was used for the front page in 2014.'''<br/> |
+ | It makes a double panel for the main page.'''[[Category:Wikispooks Mainpage Templates]]<br/> | ||
<br/> | <br/> | ||
Usage:<br/> | Usage:<br/> | ||
Line 8: | Line 9: | ||
|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 image and text<br/> | ||
− | |title1= section left title (defaults to " | + | |title1= section left title (defaults to "Newly Created")<br/> |
− | |title2= section right title (defaults to " | + | |title2= section right title (defaults to "Recently Changed")<br/> |
+ | |searchlabel="Further Results..." label (defaults to <empty>)<br/> | ||
|sort1= property to sort the left panel on (defaults to [[Property:Creation date|Creation date]])<br/> | |sort1= property to sort the left panel on (defaults to [[Property:Creation date|Creation date]])<br/> | ||
|sort2= property to sort the right panel on (defaults to [[Property:Modification date|Modification date]])<br/> | |sort2= property to sort the right panel on (defaults to [[Property:Modification date|Modification date]])<br/> | ||
Line 15: | Line 17: | ||
</noinclude><includeonly><includeonly> | </noinclude><includeonly><includeonly> | ||
{|style="width:100%;" | {|style="width:100%;" | ||
− | !style="width: | + | !style="width:40%; border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0em 0.5em 0em; font-size:112%;text-align:center;" | {{#if: {{{title1|}}}|{{{title1|}}}|Newly Created}} |
− | !style="width: | + | !style="width:20%; border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; border-left:0px; border-right:0px; background-color:#d0e5f5; padding:0.1em 0em 0.1em 0em; font-size:112%;text-align:center;" colspan="2" |{{#if: {{{image|}}}|[[Image:{{{image}}}|link={{{link|}}}|alt={{{alt|}}}|center|34px]]}} |
− | !style="width: | + | !style="width:40%; border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0em 0.5em 0em; font-size:112%;text-align:center;" | {{#if: {{{title2|}}}|{{{title2|}}}|Recently Changed}} |
|- | |- | ||
− | |colspan="2" style="padding:0.5em 0.5em 0.5em 0.5em;font-size:102%;"|{{#Ask: {{{ask|}}} |sort={{#if: {{{sort1|}}}|{{{sort1|}}}|Creation date}} |order=descending |format=ul |limit={{#if: {{{limit|}}}|{{{limit}}}|6}}}} | + | |colspan="2" style="padding:0.5em 0.5em 0.5em 0.5em;font-size:102%;"|{{#Ask: {{{ask|}}} |sort={{#if: {{{sort1|}}}|{{{sort1|}}}|Creation date}} |searchlabel={{{searchlabel|}}}|order=descending |format=ul |limit={{#if: {{{limit|}}}|{{{limit}}}|6}}}} |
− | |colspan="2" style="padding:0.5em 0.5em 0.5em 0.5em;font-size:102%;"|{{#Ask: {{{ask|}}} |sort={{#if: {{{sort2|}}}|{{{sort2|}}}|Modification date}} |order=descending |format=ul |limit={{#if: {{{limit|}}}|{{{limit}}}|6}}}} | + | |colspan="2" style="padding:0.5em 0.5em 0.5em 0.5em;font-size:102%;"|{{#Ask: {{{ask|}}} |sort={{#if: {{{sort2|}}}|{{{sort2|}}}|Modification date}} |searchlabel={{{searchlabel|}}}|order=descending |format=ul |limit={{#if: {{{limit|}}}|{{{limit}}}|6}}}} |
|} | |} |
Latest revision as of 17:11, 14 October 2018
This template was used for the front page in 2014.
It 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 "Newly Created")
|title2= section right title (defaults to "Recently Changed")
|searchlabel="Further Results..." label (defaults to <empty>)
|sort1= property to sort the left panel on (defaults to Creation date)
|sort2= property to sort the right panel on (defaults to Modification date)
}}