Extension:CategoryTests

Usage
This currently defines 3 parser functions for category testing.


 * -- tests if the given page is in the category given, then displays "then" or "else" (or current page if no page is given).
 * -- tests if the given page does not belong in any categories, then displays "then" or "else" (or current page if no page is given).
 * -- Operates like the ParserFunctions, 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. You can specify to test other pages using  , where it would then test that page instead of the current page until the next   definition, in which case it will test that page now instead. Making   empty resets it to the current page. If your default case needs an equals sign, you may use   to declare it.

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

Requirements
This extension currently requires MediaWiki versions 1.11 or higher. When downloading, always download the development version (trunk) version of this extension!