Difference between revisions of "Template:SMWDocSection"
Jump to navigation
Jump to search
(still tidying to sort whitespace) |
m (Fix) |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>'''This template places a list of data items in its own section.'''<br/> | + | <noinclude>{{TemplateProblem|This sometimes creates blank sections. This is believed to be when the items contain badly formed semantic data.}} |
+ | '''This template places a list of data items in its own defined section.'''<br/> | ||
Example usage: | Example usage: | ||
<pre>{{SMWDocSection | <pre>{{SMWDocSection | ||
|expression= [[Has author::{{PAGENAME}}]] | |expression= [[Has author::{{PAGENAME}}]] | ||
− | | | + | |text= <!-- Option section lede --> |
− | | | + | |caption_singular= {{PAGENAME}} on Wikispooks |
+ | |caption_plural= {{PAGENAME}} on Wikispooks | ||
|mainlabel = Wikispooks page | |mainlabel = Wikispooks page | ||
+ | |sort=Has publication date | ||
+ | |limit=333 (defaults to 50) | ||
+ | |order=ascending | ||
|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| | + | }}</pre></noinclude><includeonly>{{#ifexpr:{{#ask: {{{expression|}}}|format=count}}>0| |
− | =={{spz|{{#ask: {{{expression|}}}|format=count}}|{{{ | + | =={{spz|{{#ask: {{{expression|}}}|format=count}}|{{{caption_singular|}}}|{{{caption_plural|}}}}}== |
+ | <!--{{#ifexpr: {{#ask: {{{expression|}}}|format=count}}=1| | ||
− | + | <small>''Use the Up/Dn symbols to sort''</small>}} | |
− | {{ask | + | Not really needed. 2017-12-02 |
+ | -->{{{text|}}}{{ask | ||
|format=table | |format=table | ||
+ | |limit={{{limit|}}} | ||
+ | |sort={{{sort|}}} | ||
+ | |order={{{order|}}} | ||
|expression={{{expression|}}} | |expression={{{expression|}}} | ||
|mainlabel={{{mainlabel|}}} | |mainlabel={{{mainlabel|}}} | ||
|properties={{{properties|}}} | |properties={{{properties|}}} | ||
− | |headers={{{headers|}}}}}}}</includeonly> | + | |headers={{{headers|}}}}} |
+ | }}</includeonly> |
Latest revision as of 17:04, 26 December 2022
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 see the 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 }}