MediaWiki/Subpages: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 37: | Line 37: | ||
protected $maxPerPage = 345; | protected $maxPerPage = 345; | ||
</pre> | </pre> | ||
I bumped this up to: | |||
protected $maxPerPage = 500; | |||
Change that number to whatever you want to be the limit. | Change that number to whatever you want to be the limit. | ||
ref: https://stackoverflow.com/questions/13826565/mediawiki-number-of-pages-on-specialallpages | ref: https://stackoverflow.com/questions/13826565/mediawiki-number-of-pages-on-specialallpages |
Latest revision as of 01:46, 14 May 2024
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