MediaWiki/Subpages

From Omnia
Revision as of 01:46, 14 May 2024 by Kenneth (talk | contribs) (→‎Max Per Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

See MediaWiki/Customization#Subpages

Subpages Table of Contents

== Subpage Table of Contents ==

{{Special:PrefixIndex/{{PAGENAME}}/}}

or

{{Special:PrefixIndex/Geocaching/}}


See https://en.wikipedia.org/wiki/Wikipedia:Special:PrefixIndex

Usage:
 {{Special:PrefixIndex/page/}}
Parameters
* |hideredirects= If set to yes or 1, output will exclude redirects.
* |stripprefix= If set to yes or 1, removes prefixes from output.

Max Per Page

Note, there is a hard coded limite of 345 results per page. This can be changed:

In includes/specials/SpecialAllPages.php, you'll see the following code at the top of the file:

/**
 * Maximum number of pages to show on single subpage.
 */
protected $maxPerPage = 345;

I bumped this up to:

protected $maxPerPage = 500;

Change that number to whatever you want to be the limit.

ref: https://stackoverflow.com/questions/13826565/mediawiki-number-of-pages-on-specialallpages