{ "description": "Test #ask with `format=table` on inverse property, category subquery", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has page", "contents": "[[Has type::Page]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has number", "contents": "[[Has type::Number]]" }, { "page": "P0713/1", "contents": "{{#subobject: |Has number=123}} [[Category:P0713/A]]" }, { "page": "P0713/2", "contents": "{{#subobject: |Has number=123}} [[Category:P0713/B]]" }, { "page": "P0713/3", "contents": "[[Has page::P0713/1]] [[Category:P0713/C]]" }, { "page": "P0713/Q.1", "contents": "{{#ask: [[-Has subobject::[[Category:P0713/A]]]] |?Has number |format=table}}" }, { "page": "P0713/Q.2", "contents": "{{#ask: [[Has subobject.-Has subobject::[[Category:P0713/B]]]] |format=table}}" }, { "page": "P0713/Q.3", "contents": "{{#ask: [[-Has subobject::[[-Has page::[[Category:P0713/C]]]][[Category:P0713/A]]]] |?Has number |format=table}}" } ], "tests": [ { "type": "parser", "about": "#0 (-Has subobject::[[Category:P0713/A]])", "subject": "P0713/Q.1", "assert-output": { "to-contain": [ "P0713/1", "123" ] } }, { "type": "parser", "about": "#1 (Has subobject.-Has subobject::[[Category:P0713/B]])", "subject": "P0713/Q.2", "assert-output": { "to-contain": [ "P0713/2" ] } }, { "type": "parser", "about": "#2 (-Has subobject::[[-Has page::[[Category:P0713/C]]]][[Category:P0713/A]])", "subject": "P0713/Q.3", "assert-output": { "to-contain": [ "P0713/1", "123" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgPageSpecialProperties": [ "_MDAT" ] }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }