Difference between revisions of "Template:SMWDocSection"

From Wikispooks
Jump to navigation Jump to search
(|sort)
Line 7: Line 7:
 
|captionPlural= {{PAGENAME}} on Wikispooks
 
|captionPlural= {{PAGENAME}} on Wikispooks
 
|mainlabel = Wikispooks page
 
|mainlabel = Wikispooks page
 +
|sort=Has publication date
 
|properties=DocType/Has publication date/Is about/Description
 
|properties=DocType/Has publication date/Is about/Description
 
|headers=Document type/Publication date/Subject(s)/Description
 
|headers=Document type/Publication date/Subject(s)/Description
Line 15: Line 16:
 
<small>''Use the Up/Dn symbols to sort''</small>}}{{ask
 
<small>''Use the Up/Dn symbols to sort''</small>}}{{ask
 
|format=table
 
|format=table
 +
|sort={{{sort|}}}
 
|expression={{{expression|}}}
 
|expression={{{expression|}}}
 
|mainlabel={{{mainlabel|}}}
 
|mainlabel={{{mainlabel|}}}
 
|properties={{{properties|}}}
 
|properties={{{properties|}}}
 
|headers={{{headers|}}}}}
 
|headers={{{headers|}}}}}
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:01, 1 June 2014

This template places a list of data items in its own section.
Example usage:

{{SMWDocSection
|expression= [[Has author::{{PAGENAME}}]]
|captionSingular= {{PAGENAME}} on Wikispooks
|captionPlural= {{PAGENAME}} on Wikispooks
|mainlabel = Wikispooks page
|sort=Has publication date
|properties=DocType/Has publication date/Is about/Description
|headers=Document type/Publication date/Subject(s)/Description
}}