Difference between revisions of "Template:SMWDocSection"

From Wikispooks
Jump to navigation Jump to search
(fix description)
(better desc)
Line 2: Line 2:
 
Example usage:
 
Example usage:
  
<poem><nowiki>{{SMWDocSection
+
<pre>{{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
}}</poem></nowiki></noinclude><includeonly>{{#ifexpr:{{#ask: {{{expression|}}}|format=count}}>0|
+
}}</pre></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 17:01, 1 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
}}