{ "description": "Test in-text annotation `_rec` and `|+index` (`wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has text", "contents": "[[Has type::Text]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has number", "contents": "[[Has type::Number]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has record", "contents": "[[Has type::Record]] [[Has fields::Has text;Has number]] [[Has property description::Test@en]]" }, { "page": "Example/P0431/1", "contents": "[[Has record::Foo;123]]" }, { "page": "Example/P0431/2", "contents": "[[Has record::#abc;123]]" }, { "page": "Example/P0431/Q1.1", "contents": "{{#ask: [[Has record::+]] |?Has record|+index=Has text}}" }, { "page": "Example/P0431/Q1.2", "contents": "{{#ask: [[Has record::+]] |?Has record|+index=Has number|?Has record|+index=Has text}}" }, { "page": "Example/P0431/Q2.1", "contents": "{{#ask: [[Has property description::Test@en]] |?Has property description|+index=Language code}}" } ], "tests": [ { "type": "parser", "about": "#0", "subject": "Example/P0431/Q1.1", "assert-output": { "to-contain": [ "Example/P0431/1", "