Sandbox: Difference between revisions

ask syntax tests
m (it worked. remove the smw tag)
(ask syntax tests)
Line 132:
 
Programming tasks: {{PAGESINCAT:Programming Tasks}}
 
== Property query test ==
If I understand the ask syntax correctly, this should turn up a list of all programming languages:
{{#ask: [[Subcategory of::Programming languages]] | default=Apparently I don't understand it correctly.}}
 
Or maybe it works this way:
{{#ask: [[Subcategory of::Category:Programming languages]] | default=Doesn't work either.}}
 
This should turn up all languages and libraries which provide Graphics:
{{#ask: [[provides::Capability:Graphics]] | default=Or not.}}
 
This should turn up anything which does ''not'' provide Graphics:
{{#ask: [[provides::!Capability:Graphics]] | default=Unless it doesn't.}}
 
This should turn up anything which provides first class functions:
{{#ask: [[provides::Capability:First class functions]] | default=I would have hoped.}}
 
And this should be the intersection of the previous two sets:
{{#ask: [[provides::!Capability:Graphics]] [[provides::Capability:First class functions]] | default=Which shouldn't be empty.}}
973

edits