Extension talk:CategoryFunctions

From mediawiki.org
Latest comment: 6 years ago by Alzi24 in topic Not working in MW 1.27.4

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[edit]

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)Reply

Not working in MW 1.27.4[edit]

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)Reply