User:Yjenith/Templates/sp/doc
{{User:Yjenith/Personal Templates/subpages
| page = Page to view subpages for (optional; defaults to current page)
| link = "yes" will link to the page to view the results on, while "no" will transclude the results onto the page. (optional; defaults to no)
| linktext = What text to show as the link (optional; defaults to simply showing the link as what it links to; useless unless the "link" parameter is set to yes)
}}
Shows the subpages of the current page. Specify one of several parameters to change what the end result. Parameters are explained above.
Examples
[edit]{{User:Yjenith/sp
| page = User:Mattes
}}
Would call {{Special:PrefixIndex/User:Mattes/}}, which would return:
Please note: the results for this example have been hidden, so as to reduce page length.
{{User:Yjenith/sp
| page = User:Mattes
| link = yes
}}
Would call [[Special:PrefixIndex/User:Mattes/]], which would of course return Special:PrefixIndex/User:Mattes/.
{{User:Yjenith/sp
| page = User:Mattes
| link = yes
| linktext = Subpages of page User:Jimbo Wales
}}
Would call [[Special:PrefixIndex/User:Mattes/|Subpages of page User:Mattes]], which returns Subpages of page User:Mattes.
If you need to practice using this, feel free to test it out in the template sandbox, linked to below.