Extension talk:CategoryFunctions

This Extension documentation page is outstanding. It is clear and provides concise examples of how to use and install the extension.

This page should be used as a template for other extension pages. Great job.

-- Could the author elaborate on how this extensions works together with semantic media wiki (SMW)? From reading the description to the example made on the page, i don't really understand where the semantic annotations of SMW come into play. thx!

subcategory feature
it would be useful to be able with those functions to check weather a page is in the given category or in one of its sub categories --Danwe 20:06, 16 April 2010 (UTC)

Not working in MW 1.27.4
The reason seems to be:

if ((!is_object( $title )) || (!$title->exists) || (!is_object( $category )) || (!$category->exists)) ...

Each of the four conditions evaluates to true, so the function "#inCategory" always results in "$else". --Alzi24 (talk) 21:41, 28 January 2018 (UTC)