{ "description": "Test `_eid` with multiple substitutes", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "wikipedia", "contents": "[[Has type::External identifier]][[External formatter uri::https://en.wikipedia.org/w/index.php?title=$1&oldid=$2]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "wikipedia:diff", "contents": "[[Has type::External identifier]][[External formatter uri::https://en.wikipedia.org/w/index.php?title=$1&oldid=$2&diff=$3]]" }, { "page": "Test:P0918/1", "contents": "[[wikipedia::Truid Aagesen{837787373,90}]]" }, { "page": "Test:P0918/2", "contents": "[[wikipedia:diff::The Good, the Bad and the Ugly{886770575,887548148}]]" }, { "page": "Test:P0918/3", "contents": "[[wikipedia:diff::The Good, the Bad and the Ugly{886770575,887548148\\,comma}]]" } ], "tests": [ { "type": "parser", "about": "#0 (multiple substitutes)", "subject": "Test:P0918/1", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "_MDAT", "_SKEY", "Wikipedia" ] } }, "assert-output": { "to-contain": [ "Truid Aagesen" ] } }, { "type": "parser", "about": "#1 (multiple substitutes, different commas)", "subject": "Test:P0918/2", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "_MDAT", "_SKEY", "Wikipedia:diff" ] } }, "assert-output": { "to-contain": [ "The Good, the Bad and the Ugly" ] } }, { "type": "parser", "about": "#2 (multiple substitutes, different commas)", "subject": "Test:P0918/3", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "_MDAT", "_SKEY", "Wikipedia:diff" ] } }, "assert-output": { "to-contain": [ "The Good, the Bad and the Ugly" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true } }, "meta": { "skip-on": { "sqlite": "Requires special \\ escape sequence on sqlite" }, "version": "2", "is-incomplete": false, "debug": false } }