Difference between revisions of "Template:SubPages"

From Wikispooks
Jump to navigation Jump to search
(clarify how it works)
(Recode the SMW expression so it doesn't need templates on the subpages)
Line 1: Line 1:
<noinclude>[[category:Semantic Templates]]This semantic template creates a section heading plus a list of sub-pages of an event, by reading [[Property:Has subEvent]] and [[Property:Has aspect]].''<br/></noinclude><includeonly>{{SMWDocSection
+
<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:rootFullPageName]] and [[Property:fullPageName]].''<br/></noinclude><includeonly>{{SMWDocSection
|expression= [[-Has subEvent::{{FULLPAGENAME}}]] OR [[-Has aspect::{{FULLPAGENAME}}]]
+
|expression= [[Has rootFullPageName::{{FULLPAGENAME}}]][[Has fullPageName::~{{FULLPAGENAME}}/*]]
 +
<!-- Older way of doing it, that didn't catch all subpages
 +
 
 +
[[-Has subEvent::{{FULLPAGENAME}}]] OR [[-Has aspect::{{FULLPAGENAME}}]]
 +
 
 +
We might want to do something special with these.
 +
For now, keep it simple.
 +
 
 +
-->
 
|captionSingular= Sub-Page
 
|captionSingular= Sub-Page
 
|captionPlural= Sub-Pages
 
|captionPlural= Sub-Pages

Revision as of 15:22, 25 July 2014

This semantic template creates a section heading plus a list of sub-pages of an event by reading Property:Has subEvent and Property:Has aspect by checking Property:rootFullPageName and Property:fullPageName.