Difference between revisions of "Template:SubPages"

From Wikispooks
Jump to navigation Jump to search
m (Typos)
(explain spec. - Objects needed!)
Line 1: Line 1:
<noinclude>[[category:Semantic Templates]]This semantic template creates a section heading plus a list of sub-pages of an event <s>by reading [[Property:Has subEvent]] and [[Property:Has aspect]]</s> by checking [[Property:Has rootFullPageName]] and [[Property:Has fullPageName]].''<br/></noinclude><includeonly>{{SMWDocSection
+
<noinclude>[[category:Semantic Templates]]'''This semantic template creates a section heading plus a list of sub-pages of an event by checking [[Property:Has rootFullPageName]] and [[Property:Has fullPageName]].'''<br/>
 +
''It only includes sub-pages which have these properties set - so in order to show up subpages must make use of an [[WikiSpooks:Semantic Objects|object]] template''.
 +
</noinclude><includeonly>{{SMWDocSection
 
|expression= [[Has rootFullPageName::{{FULLPAGENAME}}]][[Has fullPageName::~{{FULLPAGENAME}}/*]]
 
|expression= [[Has rootFullPageName::{{FULLPAGENAME}}]][[Has fullPageName::~{{FULLPAGENAME}}/*]]
 
<!-- Older way of doing it, that didn't catch all subpages
 
<!-- Older way of doing it, that didn't catch all subpages

Revision as of 09:23, 7 August 2014

This semantic template creates a section heading plus a list of sub-pages of an event by checking Property:Has rootFullPageName and Property:Has fullPageName.
It only includes sub-pages which have these properties set - so in order to show up subpages must make use of an object template.