Jump to content

Template:SMWDocSection: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
Test
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 14: Line 14:
|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
}}</pre></noinclude><includeonly>{{#ifexpr:{{#ask: {{{expression|}}}|format=count}}>0|&nbsp;
}}</pre></noinclude><includeonly>{{#ifexpr:>0|&nbsp;
{{#if: {{{caption_singular|}}}{{{caption_plural|}}}|=={{spz|{{#ask: {{{expression|}}}|format=count}}|{{{caption_singular|}}}|{{{caption_plural|}}}}}==}}
{{#if: {{{caption_singular|}}}{{{caption_plural|}}}|=={{spz||{{{caption_singular|}}}|{{{caption_plural|}}}}}==}}
<!--{{#ifexpr: {{#ask: {{{expression|}}}|format=count}}=1|
<!--{{#ifexpr: =1|


<small>''Use the Up/Dn symbols to sort''</small>}}
<small>''Use the Up/Dn symbols to sort''</small>}}

Latest revision as of 22:35, 24 September 2026

This template has problems: This sometimes creates blank sections. This is believed to be when the items contain badly formed semantic data. Use the discussion page to start a debate about this.

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

{{SMWDocSection
|expression= [[Has author::{{PAGENAME}}]]
|text= <!-- Option section lede -->
|caption_singular= {{PAGENAME}} on Wikispooks
|caption_plural= {{PAGENAME}} on Wikispooks
|mainlabel = Wikispooks page
|sort=Has publication date
|limit=333 (defaults to 50)
|order=ascending
|properties=DocType/Has publication date/Is about/Description
|headers=Document type/Publication date/Subject(s)/Description
}}