Template:Subpages/doc: Difference between revisions

From Freephile Wiki
No edit summary
No edit summary
Line 6: Line 6:
== Subpages ==
== Subpages ==
{{#subpages:}}
{{#subpages:}}
<pre>
</pre>
wherever you want to show a list of links to subpages.
wherever you want to show a list of links to subpages.



Revision as of 16:58, 28 June 2025

BROKEN

TLDR; Use something like

== Subpages ==
{{#subpages:}}

wherever you want to show a list of links to subpages.

This template outputs (an unlinked) list of pages rather than links. If you use the #subpages parser hook IN a page, it works as intended, outputting page links.

The parser hook used comes from the Subpages extension, and the documentation example seems to indicate that you can format output with a template, but doesn't say anything about using the parser function from a template. https://github.com/ProfessionalWiki/SubPageList/blob/master/doc/USAGE.md