Template:AskList/styles.css and Template:AskList: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
h2 {border-bottom:none; font-size:1.5rem}
<noinclude>This template produces a standard list for semantic queries. The style can be selected as needed.</noinclude>
h3 {border-bottom:none; font-size:1.2rem}
<includeonly><templatestyles src="AskList/styles.css" />
/*.smwpagelist .ul-format {column-count:3;}*/
<div class="smwpagelist {{{smwstyle|}}} col{{{smwcols|}}}">{{#ask:{{{smwarg|}}} [[Modification date::+]]
 
|format=plainlist
/*style modern */
|?smwimg
.smwpagelist.modern li {margin:0 4px;}
|template=AskList/{{#if: {{{smwstyle|}}}|{{{smwstyle}}}|standard}}
.smwpagelist.modern li a  {
}}</div></includeonly>
    width: 98%;
<noinclude>
    padding: 8px 4%;
<templatedata>
    background: #eff2f5;
{
    color: #33445C !important;
"params": {
    border-radius: 5px;
"smwcols": {
    border: 0 !important;
"label": "Columns",
    display: block;
"default": "3",
    text-decoration: none;
"suggested": true
}
},
.smwpagelist.modern ul {
"smwstyle": {
    list-style: none;
"label": "Style",
"suggested": true
},
"smwarg": {
"label": "Query arguments",
"suggested": true
},
"smwimg": {
"label": "Image",
"suggested": true
}
},
"description": "SMW list",
"format": "inline",
"paramOrder": [
"smwarg",
"smwcols",
"smwstyle",
"smwimg"
]
}
}
</templatedata>
</noinclude>

Revision as of 10:49, 22 September 2022

This template produces a standard list for semantic queries. The style can be selected as needed.


SMW list

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Query argumentssmwarg

no description

Unknownsuggested
Columnssmwcols

no description

Default
3
Unknownsuggested
Stylesmwstyle

no description

Unknownsuggested
Imagesmwimg

no description

Unknownsuggested
No categories assignedEdit

Discussions