Template: List subpages

(Adapted from Wikipedia:Template:List subpages under the same CC-by-sa license - w:WP:CC-BY-SA. (Simplified documentation to avoid importing all the template dependencies.))
 
(→‎Example: use Lankiveil - whose userpage has a number of subpages)
 
Line 22: Line 22:


==Example==
==Example==
<pre>{{list subpages|Pathoschild|User}}</pre>
<pre>{{list subpages|Lankiveil|User}}</pre>
{{list subpages|Pathoschild|User}}
{{list subpages|Lankiveil|User}}


==Editing this template==
==Editing this template==

Latest revision as of 08:29, 17 December 2012

In this Templatespace:

Template:
List subpages
Template talk:

Usage

This template lists all pages in a given namespace and prefix (see Example). All parameters are optional, and default to the current page name, namespace, and corresponding talk space.

{{List subpages|prefix|content namespace|caption=Foo}}

Example

{{list subpages|Lankiveil|User}}

Pages with the prefix 'Lankiveil' in the 'User' and 'User talk' namespaces:

User:
Lankiveil

Editing this template

This template employs intricate features of template syntax.

You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly.

Remember that you can conduct experiments, and should test all improvements, in a sandbox.

Attribution

Wikipedia:Template:List subpages

w:Template:List subpages


Discuss this page