Template: Page/Subpages

From LibrePlanet
Jump to: navigation, search
(Created page with '<noinclude> This is the 'Page/Subpages' template. It should be called in the following format: <pre> {{Page/Subpages}} </pre> Edit the page to see the template text. </noinclude>...')
 
(smw type subpage listing!?!)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'Page/Subpages' template.
+
This is the 'Page/Subpages' template. Add this to both parent and subpages.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
Line 7: Line 7:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| class="wikitable"
+
{{#set: Has subpages={{NAMESPACE}}:{{BASEPAGENAME}}}}
|}
+
{{#ask: [[Has subpages::{{FULLPAGENAME}}]]}}
 
</includeonly>
 
</includeonly>

Latest revision as of 01:40, 31 May 2009

This is the 'Page/Subpages' template. Add this to both parent and subpages. It should be called in the following format:

{{Page/Subpages}}

Edit the page to see the template text.