Knowledgebase
How to change the maximum number of pages displayed on a category page in MediaWiki
Pages in MediaWiki can be organized into categories. A category page displays links to the pages assigned to that category. By default, a single category page displayes links to 200 articles, so if a category contains more than 200 articles, then they will be listed in the category 200 per page. There are next and previous buttons above and below the list with which users can browse through the articles associated with the category.
If you want to, you can change the maximum number of articles displayed per category page. To do that you have to add a line to the LocalSettings.php file of your MediaWiki. For example, if you put the following at the end of the file:
$wgCategoryPagingLimit = 100;
then each category page can list no more than 100 pages. Just replace the number with whatever number you wish, then save the change. This also affects the list of the subcategories, if the category has any. Note that this option doesn't affect the number of pages that you can put in a category. It simply controls the number of pages listed per category page.
For more information on how to create and manage categories check out the tutorial on how to manage categories in MediaWiki.
The LocalSettings.php file that you have to edit to achieve this is in the root MediaWiki folder on your MediaWiki hosting account. If the application is in the public_html directory, then the path to the file in relation to that directory will be public_html/LocalSettings.php. HostKnox customers can edit files on their accounts from the Files section of the Pixie control panel. An alternative is to download the file on your local computer, edit it with a text editor (e.g. Notepad ++) and upload it back in the same folder overwriting the old file. Still another way is to do it via SSH.
For basic information on categories check out the tutorial on how to create and manage categories in MediaWiki (or the shorter article version).