{
"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::
]] |?Has number |format=table}}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 (-Has subobject::[[Category:P0713/C]]
]][[Category:P0713/A]][[Category:P0713/A]]
)",
"subject": "P0713/Q.1",
"assert-output": {
"to-contain": [
"P0713/1",
"
[[Category:P0713/B]])", "subject": "P0713/Q.2", "assert-output": { "to-contain": [ "P0713/2" ] } }, { "type": "parser", "about": "#2 (-Has subobject::
[[-Has page::)", "subject": "P0713/Q.3", "assert-output": { "to-contain": [ "P0713/1", "[[Category:P0713/C]]]][[Category:P0713/A]]