{ "description": "Test in-text annotation for `_eid` type (`#nowiki`) (`wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "NDL ID", "contents": "[[Has type::External identifier]] [[External formatter uri::https://id.ndl.go.jp/auth/ndlna/$1]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Some ID", "contents": "[[Has type::External identifier]] [[External formatter uri::https://example.org/$1]]" }, { "page": "Example/P0430/1", "contents": "[[NDL ID::00564222]]" }, { "page": "Example/P0430/Q1.1", "contents": "{{#ask: [[NDL ID::00564222]] |?NDL ID |link=none}}" }, { "page": "Example/P0430/Q1.2", "contents": "{{#ask: [[NDL ID::00564222]] |?NDL ID }}" }, { "page": "Example/P0430/2", "contents": "[[Some ID::W%D6LLEKLA01]]" }, { "page": "Example/P0430/Q2.1", "contents": "{{#ask: [[Some ID::W%D6LLEKLA01]] |?Some ID }}" }, { "page": "Example/P0430/Q2.2", "contents": "{{#ask: [[Some ID::W%D6LLEKLA01]] |?Some ID#nowiki }}" } ], "tests": [ { "type": "parser", "about": "#0", "subject": "Example/P0430/1", "store": { "clear-cache": true }, "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "NDL_ID", "_SKEY", "_MDAT" ], "propertyValues": [ "00564222" ] } }, "assert-output": { "to-contain": [ "00564222" ] } }, { "type": "parser", "about": "#1 (link=none)", "subject": "Example/P0430/Q1.1", "assert-output": { "to-contain": [ "