Template:Subpages/doc: Difference between revisions

From Freephile Wiki
Created page with "BROKEN This template outputs a list 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"
 
No edit summary
Line 1: Line 1:
BROKEN
BROKEN
This template outputs a list rather than links. If you use the #subpages parser hook IN a page, it works as intended, outputting page links.
 
TLDR;
Use something like
<pre>
== Subpages ==
{{#subpages:}}
<pre>
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
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 16:58, 28 June 2025

BROKEN

TLDR; Use something like

Subpages

"" has no sub pages.
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