{ "description": "Test in-text annotation for `_boo` datatype using `LOCL` (`wgContLang=en`, `wgLang=fr`, skip-on 1.25.6)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has boolean", "contents": "[[Has type::Boolean]]" }, { "page": "Example/P0424/1", "contents": "[[Has boolean::true]] [[Category:P0424]]" }, { "page": "Example/P0424/2", "contents": "{{#set:Has boolean=false}} [[Category:P0424]]" }, { "page": "Example/P0424/Q1.1", "contents": "{{#ask: [[Category:P0424]] |?Has boolean |?Has boolean#LOCL}}" }, { "page": "Example/P0424/Q1.2", "contents": "{{#ask: [[Category:P0424]] |?Has boolean |?Has boolean#LOCL@ja}}" } ], "tests": [ { "type": "parser", "about": "#0 true", "subject": "Example/P0424/1", "store": { "clear-cache": true }, "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 4, "propertyKeys": [ "Has_boolean", "_SKEY", "_MDAT", "_INST" ], "propertyValues": [ true ] } } }, { "type": "parser", "about": "#1 false", "subject": "Example/P0424/2", "store": { "clear-cache": true }, "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 4, "propertyKeys": [ "Has_boolean", "_SKEY", "_MDAT", "_INST" ], "propertyValues": [ false ] } } }, { "type": "parser", "about": "#3 LOCL used the user language", "subject": "Example/P0424/Q1.1", "assert-output": { "to-contain": [ "true", "vrai", "false", "faux" ] } }, { "type": "parser", "about": "#4 LOCL@js uses a specific language", "subject": "Example/P0424/Q1.2", "assert-output": { "to-contain": [ "true", "真", "false", "偽" ] } } ], "settings": { "wgContLang": "en", "wgLang": "fr", "smwgPageSpecialProperties": [ "_MDAT" ] }, "meta": { "skip-on": { "sitelanguage": [ "ja", "Some issues with NS_SPECIAL when 'ja' is used as sitelanguage." ] }, "version": "2", "is-incomplete": false, "debug": false } }