Difference between revisions of "Template:SMWDocSection"
Jump to navigation
Jump to search
m |
|||
Line 10: | Line 10: | ||
|headers=Document type/Publication date/Subject(s)/Description | |headers=Document type/Publication date/Subject(s)/Description | ||
}}</pre></noinclude><includeonly>{{{expression|}}}={{#ask: {{{expression|}}}|format=count}} | }}</pre></noinclude><includeonly>{{{expression|}}}={{#ask: {{{expression|}}}|format=count}} | ||
− | {{# | + | {{#ifexpr:{{#ask: {{{expression|}}}|format=count}}=1|{{section|{{{captionSingular|}}}}}|{{#ifexpr:{{#ask: {{{expression|}}}|format=count}}=2|{{{captionPlural|}}}}}}} |
− | |||
− | | | ||
− | | | ||
<small>''Use the Up/Dn symbols to sort''</small> | <small>''Use the Up/Dn symbols to sort''</small> | ||
− | + | {{ask | |
|format=table | |format=table | ||
|expression={{{expression|}}} | |expression={{{expression|}}} |
Revision as of 04:34, 2 January 2014
This template places a list of data items in its own section.
Example usage:
{{SMWDocSection |expression= [[Has author::{{PAGENAME}}]] |captionSingular= {{PAGENAME}} on Wikispooks |captionPlural= {{PAGENAME}} on Wikispooks |mainlabel = Wikispooks page |properties=DocType/Has publication date/Is about/Description |headers=Document type/Publication date/Subject(s)/Description }}