On Mittwoch, 10. Dezember 2008, AlexLeBek wrote: > Hi, > > I would like to return pages from an inline query where a property has > *not* been set.
This is not possible in SMW. If you use templates, however, you can
automatically set a property that indicates this lack of information, and
which can then be queried. For example, I have been using a string property
"lacks" and a template which assigns various values to this whenever a
relevant field was not set. One can use #if functions for checking if a value
was given.
If you do not use templates for creating annotations, you could still have a
(not quite as efficient) template at the page bottom which checks the presence
of the property value using a query. The template then again can set an
according "lacks" property or category.
These are the only solutions I see.
Cheers,
Markus
> In this case it is for managing an FAQ facility where
> questions can be posed and answered by others. I would like to draw
> attention to questions which still have no answers (perhaps using a minus
> sign?):
>
> {{#ask: [[Category:FAQ]] [[Answer:: - ]]
>
> |?Question
>
> }}
>
> Is there a way to achieve this?
>
> Thanks
> Alex
--
Markus Krötzsch
Semantic MediaWiki http://semantic-mediawiki.org
http://korrekt.org [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________ Semediawiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
