{ "description": "Test category printrequest (`PRINT_CCAT`, `PRINT_CATS`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "P0917", "contents": "[[Has type::Page]]" }, { "namespace": "NS_CATEGORY", "page": "P0917", "contents": "..." }, { "page": "P0917/1", "contents": "[[P0917::123]] [[Category:P0917]]" }, { "page": "P0917/2", "contents": "[[P0917::123]]" }, { "page": "P0917/Q.1", "contents": "{{#ask: [[P0917::123]] |?Category:P0917 }}" }, { "page": "P0917/Q.2", "contents": "{{#ask: [[P0917::123]] |?category }}" } ], "tests": [ { "type": "parser", "about": "#0 (a match to `?Category:P0917` produces `X`)", "subject": "P0917/Q.1", "assert-output": { "to-contain": [ "P0917/1", "X", "P0917/2", " " ] } }, { "type": "parser", "about": "#1 (display categories as literal)", "subject": "P0917/Q.2", "assert-output": { "to-contain": [ "P0917/1", "P0917", "P0917/2", "" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true } }, "meta": { "skip-on": { "sitelanguage": [ "ja", "Some issues with NS_SPECIAL when 'ja' is used as sitelanguage." ] }, "version": "2", "is-incomplete": false, "debug": false } }