Difference between revisions of "Template:SMWDocSection"
Jump to navigation
Jump to search
m (Text replacement - "captionSingular" to "caption_singular") |
m (Text replacement - "captionPlural" to "caption_plural") |
||
Line 6: | Line 6: | ||
|expression= [[Has author::{{PAGENAME}}]] | |expression= [[Has author::{{PAGENAME}}]] | ||
|caption_singular= {{PAGENAME}} on Wikispooks | |caption_singular= {{PAGENAME}} on Wikispooks | ||
− | | | + | |caption_plural= {{PAGENAME}} on Wikispooks |
|mainlabel = Wikispooks page | |mainlabel = Wikispooks page | ||
|sort=Has publication date | |sort=Has publication date | ||
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}}|{{{caption_singular|}}}|{{{ | + | =={{spz|{{#ask: {{{expression|}}}|format=count}}|{{{caption_singular|}}}|{{{caption_plural|}}}}}== |
{{#ifexpr: {{#ask: {{{expression|}}}|format=count}}=1| | {{#ifexpr: {{#ask: {{{expression|}}}|format=count}}=1| | ||
Revision as of 13:27, 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 |caption_plural= {{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 }}