Difference between revisions of "Template:SMWDocSection"
Jump to navigation
Jump to search
(Add images to All SMWDoc sections) |
m (Text replacement - "captionSingular" to "caption_singular") |
||
Line 5: | Line 5: | ||
<pre>{{SMWDocSection | <pre>{{SMWDocSection | ||
|expression= [[Has author::{{PAGENAME}}]] | |expression= [[Has author::{{PAGENAME}}]] | ||
− | | | + | |caption_singular= {{PAGENAME}} on Wikispooks |
|captionPlural= {{PAGENAME}} on Wikispooks | |captionPlural= {{PAGENAME}} on Wikispooks | ||
|mainlabel = Wikispooks page | |mainlabel = Wikispooks page | ||
Line 13: | Line 13: | ||
|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|}}}|{{{captionPlural|}}}}}== |
{{#ifexpr: {{#ask: {{{expression|}}}|format=count}}=1| | {{#ifexpr: {{#ask: {{{expression|}}}|format=count}}=1| | ||
Revision as of 13:23, 15 January 2016
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}}]] |caption_singular= {{PAGENAME}} on Wikispooks |captionPlural= {{PAGENAME}} on Wikispooks |mainlabel = Wikispooks page |sort=Has publication date |order=ascending |properties=DocType/Has publication date/Is about/Description |headers=Document type/Publication date/Subject(s)/Description }}