Page MenuHomePhabricator

Cannot query for category pages in a specific category.
Closed, DeclinedPublic

Description

Author: bugzilla.wikimedia.org

Description:
I want to be able to produce a list of categories that are sub categories of a specific category.

This gives me everything under the KB category in the main namespace:
{{#ask: [[Category:KB]] }}

Following the documentation for limiting results to a specific namespace, this gives me everything in the Category namespace, i.e. ALL categories:
{{#ask: [[:Category:+]] }}

But this gives me nothing:
{{#ask: [[Category:KB]] [[:Category:+]]}}

How else can one query "all pages in the Category namespace, that are in the KB category"?


Version: unspecified
Severity: normal

Details

Reference
bz28078

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:35 PM
bzimport set Reference to bz28078.

As I understand from the documentation, it should be {{#ask: [[:Category:KB]]}}, But it's not working for me

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.