{{User:LikeLakers2/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.
You may also use {{User:LikeLakers2/subp}} or {{User:LikeLakers2/sp}} as a shortcut.
{{User:LikeLakers2/sp
| page = User:Jimbo Wales
}}
Would call {{Special:PrefixIndex/User:Jimbo Wales/}}, which would return:
Please note: the results for this example have been hidden, so as to reduce page length.
{{User:LikeLakers2/sp
| page = User:Jimbo Wales
| link = yes
}}
Would call [[Special:PrefixIndex/User:Jimbo Wales/]], which would of course return Special:PrefixIndex/User:Jimbo Wales/.
{{User:LikeLakers2/sp
| page = User:Jimbo Wales
| link = yes
| linktext = Subpages of page User:Jimbo Wales
}}
Would call [[Special:PrefixIndex/User:Jimbo Wales/|Subpages of page User:Jimbo Wales]], which returns Subpages of page User:Jimbo Wales.
If you need to practice using this, feel free to test it out in the template sandbox, linked to below.