Extension:CategoryTests

The CategoryTests extension provides a set of dynamic parser functions that check for categories.

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 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).
 * 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.
 * 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.