Template:Subpages: Difference between revisions
From Freephile Wiki
Created page with "<includeonly> == Subpages == {{#subpages:}} </includeonly> {{doc}}" |
wrap the doc template in noinclude tags |
||
Line 3: | Line 3: | ||
{{#subpages:}} | {{#subpages:}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | |||
{{doc}} | {{doc}} | ||
</noinclude> |
Revision as of 09:31, 3 September 2025
This template just adds a heading above the SubPageList parser function call.
By transcluding this template with {{Subpages|}} you get
{{#subpages: page={{PAGENAME}} |format=ul |default="There are no subpages of the current page"}}
wherever you want to show a list of links to subpages.
The parser hook used comes from the mw:Extension:SubPageList extension, and the documentation gives further examples of customizing the output https://github.com/ProfessionalWiki/SubPageList/blob/master/doc/USAGE.md
Simple template to create a heading and invoke the #subpages parser function.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
The above documentation is transcluded from Template:Subpages/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |