MediaWiki/Subpages: Difference between revisions

From Omnia
Jump to navigation Jump to search
No edit summary
 
 
(3 intermediate revisions by the same user not shown)
Line 14: Line 14:
{{Special:PrefixIndex/Geocaching/}}
{{Special:PrefixIndex/Geocaching/}}
</pre>
</pre>
See https://en.wikipedia.org/wiki/Wikipedia:Special:PrefixIndex
<pre>
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.
</pre>
== 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:
<pre>
/**
* Maximum number of pages to show on single subpage.
*/
protected $maxPerPage = 345;
</pre>
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

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