{ "description": "Test in-text annotation for `_ref_rec` type (#1808, `wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has number with ref", "contents": "[[Has type::Reference]] [[Has fields::Number;Date;URL]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has mlt with ref", "contents": "[[Has type::Reference]] [[Has fields::Monolingual text;Date;Number]]" }, { "page": "Example/P0432/1", "contents": "[[Has number with ref::123;1.1.2000;http://example.org]]" }, { "page": "Example/P0432/Q1.1", "contents": "{{#ask: [[Has number with ref::123]] |?Has number with ref|+index=Date|?Has number with ref|+index=URL |link=none}}" }, { "page": "Example/P0432/2", "contents": "{{#subobject: |Has number with ref=456;12-04-1637;http://example.org }}" }, { "page": "Example/P0432/Q2.1", "contents": "{{#ask: [[Has number with ref::456]] |?Has number with ref|+index=Date|?Has number with ref|+index=URL |link=none}}" }, { "page": "Example/P0432/3", "contents": "[[Has mlt with ref::Test@en;01.01.1800;123]] {{#subobject: |Has mlt with ref::ใในใ@ja;01.01.1800;456 }}" }, { "page": "Example/P0432/Q3.1", "contents": "{{#ask: [[Has mlt with ref::?@en]] |?Has mlt with ref|+index=Monolingual text|?Has mlt with ref|+index=Number |link=none}}" }, { "page": "Example/P0432/4", "contents": "[[Has number with ref:: {{#show: Example/P0432/1 |?Has number with ref |link=none }}]]" }, { "page": "Example/P0432/5", "contents": "{{#subobject: Has number with ref=999;1.1.2000 12:00;http://example.org}} {{#subobject: Has number with ref=999;1.1.2000 13:00;http://example.org}}" }, { "page": "Example/P0432/Q5.1", "contents": "{{#ask: [[Has number with ref::999]] |order=asc |link=none |format=list}}" }, { "page": "Example/P0432/Q5.2", "contents": "{{#ask: [[Has number with ref::999]] |order=desc |link=none |format=list}}" } ], "tests": [ { "type": "parser", "about": "#0", "subject": "Example/P0432/1", "store": { "clear-cache": true }, "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_number_with_ref", "_SKEY", "_MDAT" ], "propertyValues": [ "123;1 January 2000;http://example.org" ] } }, "assert-output": { "to-contain": [ "123