david wrote:
> How can I make a query (using {{#ask:) to show the pages that aren't in
> an specific category?
>
> I want to show the pages in [[category:card]] but hidding the pages in
> [[category:incomplete card]].
I don't think there's any way to do this. As
http://semantic-mediawiki.org/wiki/Help:Selecting_pages says
"Comparators work only for property values, but not for conditions on
categories."
So you can't use the '!' NOT comparator to say [[category:!incomplete
card]] the same way you can say, e.g., [[date of birth::!1935-12-01]]
A couple of ideas:
* Set the inline query to display ?Category, use format=template to
print results, and if this template parameter contains "incomplete
card", don't print.
* You could have a boolean notIncompleteCard that tracks the category
assignment. Code could set this to true or false based on category
values using a similar technique to "using an inline query to produce
inverse annotations" (see
http://semantic-mediawiki.org/wiki/California). Then query for this
property.
Regards,
--
=S Page
|