{ "description": "Test in-text annotation with DISPLAYTITLE (#1410, #1611, `wgRestrictDisplayTitle`, `wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Dwc:vernacularName", "contents": "[[Has type::Text]] {{DISPLAYTITLE:dwc:vernacularName}}" }, { "page": "Example/P0416/1", "contents": "{{DISPLAYTITLE:Foo}} {{#subobject:Bar|text=abc|Display title of=123}}" }, { "page": "Example/P0416/Q1.1", "contents": "{{#ask: [[~Foo]] OR [[~123*]] |?Display title of |format=table }}" }, { "page": "Example/P0416/2", "contents": "{{DISPLAYTITLE:Foobar}} {{#subobject:Bar|text=abc}}" }, { "page": "Example/P0416/Q2.1", "contents": "{{#ask: [[~Example/P0416/2*]] OR [[~Foobar*]] |?Display title of |format=table }}" }, { "page": "Example/P0416/3", "contents": "[[dwc:vernacularName::Gewoon struisgras]] {{DISPLAYTITLE:Agrostis capillaris}}" }, { "page": "Example/P0416/Q3.1", "contents": "{{#ask: [[~Agrostis*]] |?dwc:vernacularName |format=table }}" }, { "page": "Example/P0416/4", "contents": "{{DISPLAYTITLE:Foo}} {{DEFAULTSORTKEY:BAR}}" }, { "page": "Example/P0416/5", "contents": "{{DISPLAYTITLE:Foo}} {{#subobject:|@sortkey=SORT}} {{#show: Example/P0416/5 |?Has subobject}}" }, { "page": "Example/P0416/6/1", "contents": "{{DISPLAYTITLE:P0416}} {{#subobject:@category=P0416}} [[Category:P0416]]" }, { "page": "Example/P0416/6/2", "contents": "{{DISPLAYTITLE:P0416}} {{DEFAULTSORT:BAR}} {{#subobject:@category=P0416}} [[Category:P0416]]" }, { "page": "Example/P0416/6/3", "contents": "{{DISPLAYTITLE:P0416}} {{#subobject:@category=P0416|@sortkey=DEF}} [[Category:P0416]]" }, { "page": "Example/P0416/7", "contents": "{{DISPLAYTITLE:ABC & DEF}}, see #1611" }, { "page": "Example/P0416/8'a", "contents": "{{DISPLAYTITLE:{{FULLPAGENAME}}}} " }, { "page": "Example/P0416/Q6.1", "contents": "{{#ask: [[Category:P0416]] [[~P0416*]] |link=none |format=table |sort=# |order=asc}}" }, { "page": "Example/P0416/Q6.2.1", "contents": "{{#ask: [[Category:P0416]] [[~BAR]] |link=none |format=table |sort=# |order=asc}}" }, { "page": "Example/P0416/Q6.2.2", "contents": "{{#ask: [[Category:P0416]] [[~BAR*]] |link=none |format=table |sort=# |order=asc}}" }, { "page": "Example/P0416/Q6.3", "contents": "{{#ask: [[Category:P0416]] [[~DEF]] |link=none |format=table |sort=# |order=asc}}" }, { "page": "Example/P0416/Q7.1", "contents": "{{#ask: [[Display title of::ABC & DEF]] |link=none |format=table |sort=# |order=asc}}" }, { "page": "Example/P0416/Q8.1", "contents": "{{#ask: [[Display title of::Example/P0416/8'a]] |link=none |format=table |sort=# |order=asc}}" } ], "tests": [ { "type": "parser", "about": "#0", "subject": "Example/P0416/1", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 4, "propertyKeys": [ "_SKEY", "_MDAT", "_DTITLE", "_SOBJ" ], "propertyValues": [ "Foo" ] } } }, { "type": "parser", "about": "#1", "subject": "Example/P0416/1#Bar", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "_DTITLE", "_TEXT", "_SKEY" ], "propertyValues": [ "abc", "123" ] } } }, { "type": "parser", "about": "#2", "subject": "Example/P0416/Q1.1", "assert-output": { "to-contain": [ "title=\"Example/P0416/1\">Foo