{ "description": "Test `#ask` with (`#-raw`) formatter using `#set` (#..., `wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has text", "contents": "[[Has type::text]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has mono text", "contents": "[[Has type::Monolingual text]]" }, { "page": "Example/P0912/1", "contents": "[[Category:P0912]] {{#set: Has text=Some text with annotation [[Foo::Example/P0912/1]] }}" }, { "page": "Example/P0912/Q.1", "contents": "{{#ask: [[Category:P0912]] [[Has text::+]] |?Has text |link=none }}" }, { "page": "Example/P0912/Q.2", "contents": "{{#ask: [[Category:P0912]] [[Has text::+]] |?Has text#-raw |link=none }}" } ], "tests": [ { "type": "parser", "about": "#0", "subject": "Example/P0912/1", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 4, "propertyKeys": [ "_MDAT", "_INST", "_SKEY", "Has text" ], "propertyValues": [ "Some text with annotation [[Foo::Example/P0912/1]]" ] } } }, { "type": "parser", "about": "#1 (without `-raw`)", "subject": "Example/P0912/Q.1", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "_MDAT", "_ASK", "_SKEY" ] } }, "assert-output": { "to-contain": [ "