Template:Subpages/doc: Difference between revisions

From Freephile Wiki
No edit summary
No edit summary
Line 1: Line 1:
BROKEN
This template just adds a heading above the SubPageList parser function call.


TLDR;
By transcluding this template with <nowiki>{{Subpages}}</nowiki>, you get
Use something like
<pre>
<pre>
== Subpages ==
== Subpages ==
Line 9: Line 8:
wherever you want to show a list of links to 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 [[mw:Extension:SubPageList]] extension, and the documentation gives further examples of customizing the output https://github.com/ProfessionalWiki/SubPageList/blob/master/doc/USAGE.md
 
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

Revision as of 09:37, 3 September 2025

This template just adds a heading above the SubPageList parser function call.

By transcluding this template with {{Subpages}}, you get

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

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