Extension:CategoryTests

Usage
This currently defines 3 parser functions for category testing.


 * -- tests if the current page is in the category given, then displays "then" or "else".
 * -- tests if the current page does not belong in any categories, then displays "then" or "else".
 * -- Operates like the ParserFunction #switch, but doesn't take an initial parameter (it just starts cycling through right away) and tests if the page is in those categories instead of comparing it to a value.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: