Jump to content

Template:SubPages: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
m Text replacement - "captionPlural" to "caption_plural"
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 3: Line 3:
''It only includes sub-pages which have these properties set - so in order to show up, subpages have to include [[Template:SMWDocs]]''.
''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 parentFullPageName::{{FULLPAGENAME}}]][[Has fullPageName::~{{FULLPAGENAME}}/*]]
|expression= {{FULLPAGENAME}}~{{FULLPAGENAME}}/*
<!-- Older way of doing it, that didn't catch all subpages
<!-- Older way of doing it, that didn't catch all subpages



Latest revision as of 22:35, 24 September 2026

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 parentFullPageName 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.