{ "description": "Test #subobject with assigned sortkey, default order etc.", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has text", "contents": "[[Has type::text]]" }, { "page": "Example/P0456/1", "contents": "{{#subobject: foo |Has text=foo }} {{#subobject: bar |Has text=bar }} {{#subobject: baz |Has text=baz }}" }, { "page": "Example/P0456/2", "contents": "{{#subobject: baz |Has text=baz }} {{#subobject: foo |Has text=foo }} {{#subobject: bar |Has text=bar }}" }, { "page": "Example/P0456/Q.1", "contents": "{{#ask: [[-Has subobject::Example/P0456/1]] |?Has text }}" }, { "page": "Example/P0456/Q.2", "contents": "{{#ask: [[-Has subobject::Example/P0456/2]] |?Has text }}" }, { "page": "Example/P0456/3", "contents": "{{#subobject: foo |Has text=foo }} {{#subobject: bar |Has text=bar |@sortkey=zzz }} {{#subobject: baz |Has text=baz }}" }, { "page": "Example/P0456/4", "contents": "{{#subobject: baz |Has text=baz }} {{#subobject: foo |Has text=foo }} {{#subobject: bar |Has text=bar|@sortkey=zzz }}" }, { "page": "Example/P0456/Q.3", "contents": "{{#ask: [[-Has subobject::Example/P0456/3]] |?Has text }}" }, { "page": "Example/P0456/Q.4", "contents": "{{#ask: [[-Has subobject::Example/P0456/4]] |?Has text }}" } ], "tests": [ { "type": "parser", "about": "#0 (default order without explicit sortkey)", "subject": "Example/P0456/Q.1", "assert-output": { "to-contain": [ "Example/P0456/1#barbar", "Example/P0456/1#bazbaz", "Example/P0456/1#foofoo" ] } }, { "type": "parser", "about": "#1 same as #0 (default order without explicit sortkey, order independent from the page position)", "subject": "Example/P0456/Q.2", "assert-output": { "to-contain": [ "Example/P0456/2#barbar", "Example/P0456/2#bazbaz", "Example/P0456/2#foofoo" ] } }, { "type": "parser", "about": "#2 (with explicit sortkey)", "subject": "Example/P0456/Q.3", "assert-output": { "to-contain": [ "Example/P0456/3#bazbaz", "Example/P0456/3#foofoo", "Example/P0456/3#barbar" ] } }, { "type": "parser", "about": "#3 same as #2 (with explicit sortkey, order independent from the page position)", "subject": "Example/P0456/Q.4", "assert-output": { "to-contain": [ "Example/P0456/4#bazbaz", "Example/P0456/4#foofoo", "Example/P0456/4#barbar" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }