Extension:SubPageList

SubPageList is a lightweight extension to display subpages.

Feature overview

 * Adds a  or   parser hook that you can use to list subpages.
 * Backward compatible with the SubPageList3 extension.
 * Supports multiple parameters that enable you to customize the subpage list.
 * Full integration with the Validator extension.

Download
You can find the current version of SubPageList on the Google Code download page, as well as a list of legacy downloads.

You can also get the code directly from SVN. Tags can be obtained via

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/SubPageList/REL_version

Where 'version' is the version number of the tag, such as 0_1 (see the available tags). The latest code can be obtained from trunk:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SubPageList/

SUbPageList requires Validator 0.4.2 or above in order to work. A compatible copy of Validator always comes bundled with the regular releases, and is automatically loaded by SubPageList, so you do not need to worry about it when using one of these. If you are getting the code from SVN, make sure you also get a copy of Validator (see here for instructions).

Installation
Once you have downloaded the code, place the SubPageList and Validator directories within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

Configuration
Configuration of SubPageList is done by adding simple PHP statements to your LocalSettings.php file. These statements need to be placed AFTER the inclusion of SubPageList. The options are listed below and their default is set in the SubPageList settings file. You should NOT modify the settings file, but can have a look at it to get an idea of how to use the settings, in case the below descriptions do not suffice.

As of version 0.1, there are no settings yet.

Usage
You have the choice to either use a tag extension (  or   ) or use a parser function (   or   ). All these take the same parameters and behave identically.

Syntax
This is the basic syntax for the tag extension:



This is the basic syntax for the parser function:

Examples
Listing the subpages of the current page with default options:

Listing the subpages of page "Foobar" with the "ol" format:



Using several options and making use of the default parameter system of the parser function (again for page "Foobar"):

Parameters
Table be here

Version 0.1
201x-xx-xx


 * Copied the code of SubPageList3 and ...
 * Modified code to make use of Validator for parameter handling.
 * Rewrote most code of the SubPageList class.
 * Fixed namespace bug.
 * Fixed several minor layout issues.
 * Added alias file.
 * Added COPYING, INSTALL, README and RELEASE-NOTES.
 * Cleaned up and corrected formatting.

Internationalization
SubPageList is fully internationalized. Translation of SubPageList messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.

Authors
SubPageList has been written by Jeroen De Dauw.