Difference between revisions of "Template:GroupType"

From Wikispooks
Jump to navigation Jump to search
(extra params)
Line 3: Line 3:
 
<BR/>
 
<BR/>
 
Usage:<br/>
 
Usage:<br/>
<nowiki>{{</nowiki>{{PAGENAME}}|section=''Optional custom section heading''<nowiki>}}</nowiki></noinclude><includeonly>[[Constitutes::GroupType| ]]{{SMWDocSection
+
<nowiki>{{</nowiki>{{PAGENAME}}<br/>
 +
|section=''Optional custom section heading''<br/>
 +
|properties=''Optional custom set of properties''<br/>
 +
|headers=''Optional custom set of headers''<br/>
 +
<nowiki>}}</nowiki></noinclude><includeonly>[[Constitutes::GroupType| ]]{{SMWDocSection
 
|expression= [[Has groupType::{{Uncapitalize|{{PAGENAME}}}}]]
 
|expression= [[Has groupType::{{Uncapitalize|{{PAGENAME}}}}]]
 
|captionSingular={{#if: {{{section|}}}|{{{section}}}| {{PAGENAME}} Group}} on Wikispooks
 
|captionSingular={{#if: {{{section|}}}|{{{section}}}| {{PAGENAME}} Group}} on Wikispooks
 
|captionPlural={{#if: {{{section|}}}|{{{section}}}| {{PAGENAME}} Groups}} on Wikispooks
 
|captionPlural={{#if: {{{section|}}}|{{{section}}}| {{PAGENAME}} Groups}} on Wikispooks
 
|mainlabel = Wikispooks page
 
|mainlabel = Wikispooks page
|properties=Display date/Has logo/Has website/Description
+
|properties={{#if: {{{properties|}}}|{{{properties}}}|Display date/Has logo/Has website/Description}}
|headers=Date/Logo/WWW/Description
+
|headers={{#if: {{{headers|}}}|{{{headers}}}|Date/Logo/WWW/Description}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:55, 23 June 2014

This template lists groups which are of the type of the page it is invoked on.
See Property:Has groupType for a list of page that can fruitfully use it.

Usage:
{{GroupType
|section=Optional custom section heading
|properties=Optional custom set of properties
|headers=Optional custom set of headers
}}