Difference between revisions of "Template:SubPages"
Jump to navigation
Jump to search
(clarify) |
|||
Line 1: | Line 1: | ||
− | <noinclude>[[category:Semantic Templates]]'''This semantic template creates a section heading plus a list of | + | <noinclude>[[category:Semantic Templates]]'''This semantic template creates a section heading plus a list of subpages and their descriptions.''' it is probably best used immediately after a page's object template. Since September 2014, all pages with an infobox automatically include a list of subpages in that, so use of this template is optional (but recommended).<br/><br/> |
− | ''It only includes sub-pages which have these properties set - so in order to show up, subpages | + | It works 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 have to include [[Template:SMWDocs]]''. | ||
</noinclude><includeonly>{{SMWDocSection | </noinclude><includeonly>{{SMWDocSection | ||
|expression= [[Has rootFullPageName::{{FULLPAGENAME}}]][[Has fullPageName::~{{FULLPAGENAME}}/*]] | |expression= [[Has rootFullPageName::{{FULLPAGENAME}}]][[Has fullPageName::~{{FULLPAGENAME}}/*]] |
Revision as of 02:44, 29 September 2014
This semantic template creates a section heading plus a list of subpages and their descriptions. it is probably best used immediately after a page's object template. Since September 2014, all pages with an infobox automatically include a list of subpages in that, so use of this template is optional (but recommended).
It works 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 have to include Template:SMWDocs.