Difference between revisions of "Template:SMWDocSection"
Jump to navigation
Jump to search
(Some tidying before SMW templates get out of hand) |
(fix description) |
||
Line 2: | Line 2: | ||
Example usage: | Example usage: | ||
− | <poem>{{SMWDocSection | + | <poem><nowiki>{{SMWDocSection |
|expression= [[Has author::{{PAGENAME}}]] | |expression= [[Has author::{{PAGENAME}}]] | ||
|captionSingular= {{PAGENAME}} on Wikispooks | |captionSingular= {{PAGENAME}} on Wikispooks | ||
Line 9: | Line 9: | ||
|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 | ||
− | }}</noinclude><includeonly>{{#ifexpr:{{#ask: {{{expression|}}}|format=count}}>0| | + | }}</poem></nowiki></noinclude><includeonly>{{#ifexpr:{{#ask: {{{expression|}}}|format=count}}>0| |
{{#ifexpr:{{#ask: {{{expression|}}}|format=count}}=1| | {{#ifexpr:{{#ask: {{{expression|}}}|format=count}}=1| | ||
=={{{captionSingular|}}}==| | =={{{captionSingular|}}}==| |
Revision as of 16:58, 1 January 2014
This template places a list of data items in its own section.
Example usage:
<nowiki>{{SMWDocSection
|expression= SMWDocSection
|captionSingular= SMWDocSection on Wikispooks
|captionPlural= SMWDocSection on Wikispooks
|mainlabel = Wikispooks page
|properties=DocType/Has publication date/Is about/Description
|headers=Document type/Publication date/Subject(s)/Description
}}
</nowiki>