{ "description": "Test `Special:Ask` common output (`wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has page", "contents": "[[Has type::Page]]" }, { "namespace": "NS_MAIN", "page": "Example/SA0006/1", "contents": "[[Has page::123]] [[Category:SA0006]]" } ], "tests": [ { "type": "special", "about": "#0 (noscript)", "special-page": { "page": "Ask", "query-parameters": [], "request-parameters": {} }, "assert-output": { "to-contain": [ "smw-error-noscript" ] } }, { "type": "special", "about": "#1 (@see #3542, `format= table`)", "special-page": { "page": "Ask", "query-parameters": "-5B-5BCategory:SA0006-5D-5D/-3FHas-20page/mainlabel%3D/offset%3D0/format%3D-20table", "request-parameters": {} }, "assert-output": { "to-contain": [ "{{#ask: [[Category:SA0006]]", " |?Has page", " |format=table", " |limit=50", " |offset=0", " |sort=", " |order=asc", " |mainlabel=", "}}" ] } }, { "type": "special", "about": "#2 (`format=TABLE`)", "special-page": { "page": "Ask", "query-parameters": "-5B-5BCategory:SA0006-5D-5D/-3FHas-20page/mainlabel%3D/offset%3D0/format%3DTABLE", "request-parameters": {} }, "assert-output": { "to-contain": [ "{{#ask: [[Category:SA0006]]", " |?Has page", " |format=table", " |limit=50", " |offset=0", " |sort=", " |order=asc", " |mainlabel=", "}}" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "wgLanguageCode": "en", "smwgNamespace": "http://example.org/id/", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }