Page MenuHomePhabricator

[SMW] count format not producing 0 on non-existing category queries
Closed, DeclinedPublic

Description

Tested in SMW 1.7.0.2:

Produces "0" when there are no results:

{{#ask: [[Category:Existing category]] | format=count }}
{{#ask: [[Existing property name::any property value]] | format=count }}
{{#ask: [[Non-existing property name::any property value]] | format=count }}

Produces nothing when there are no results:

{{#ask: [[Category:Non-existing category]] | format=count }}


Version: unspecified
Severity: normal

Details

Reference
bz34262

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:15 AM
bzimport set Reference to bz34262.
bzimport added a subscriber: Unknown Object (MLST).
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.