Extension:PageTools

The PageTools extension provides parser functions to retrieve/set page information.

Usage

 * returns 'true' if the current page is categorised with 'category'
 * returns 'true' if the current page is categorised with 'category'


 * returns the number of categories found for the current page.
 * returns the number of categories found for the current page.


 * returns the category title indexed with 'index'
 * returns the category title indexed with 'index'


 * changes the displayed page title
 * does NOT change the title under which the page is stored in the wiki, you have to move the page for that
 * does NOT change the title under which the page is stored in the wiki, you have to move the page for that


 * adds the given text to the displayed page title
 * adds the given text to the displayed page title


 * adds the given text to the displayed subtitle (the area where e.g. relocation information is usually displayed)
 * adds the given text to the displayed subtitle (the area where e.g. relocation information is usually displayed)

Installation

 * 1) Download version 2.0 or the current development version
 * Alternatively you can clone PageTools using git
 * 1) Extract the files to the   directory
 * 2) Add to the end of LocalSettings.php:
 * 3) Go to the Special:Version page of your wiki and verify that an entry for PageTools exists

The current version of the extension works for MediaWiki version 1.22 onwards and is probably also compatible with earlier versions. However, if you use a very old version of MediaWiki and the current version of this extension does not work for you, try installing version 1.1. See for documentation.