1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
{
"description": "Test `format=template` [[SMW::on/off]] regression using `named args=yes` (#1453, skip-on 1.19)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has publication title",
"contents": "[[Has type::Text]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has text",
"contents": "[[Has type::Text]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has publication author",
"contents": "[[Has type::Page]]"
},
{
"namespace": "NS_TEMPLATE",
"page": "Example/F0802/Cite publication/result format",
"contents": "<includeonly><div>{{{Author|}}}, <span>‘[[{{{Page|}}}|{{{Title|}}}]]’</span></div></includeonly>"
},
{
"namespace": "NS_TEMPLATE",
"page": "Example/F0802/Cite publication",
"contents": "<includeonly>{{#ask: [[{{{1|}}}]] |?=Page |?Has publication author=Author |?Has publication title=Title |format=template |template=Example/F0802/Cite publication/result format|named args=yes |link=none }}</includeonly>"
},
{
"do-purge": true,
"page": "Example/F0802/A",
"contents": "{{#set: |Has publication title=Mitteilungen aus irischen Handschriften. V. Aus Egerton 1782. <em>Dūan in chōicat cest inn</em>|Has publication author=Meyer (Kuno)}}"
},
{
"page": "Example/F0802/B",
"contents": "{{#set: |Has text=Extra text by #set: {{Example/F0802/Cite publication|Example/F0802/A }} }} {{#ask: [[Example/F0802/B]] |?Has text=Text |link=none }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0",
"subject": "Example/F0802/B",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 4,
"propertyKeys": [
"_MDAT",
"_SKEY",
"_ASK",
"Has_text"
],
"propertyValues": []
}
},
"assert-output": {
"to-contain": [
"title=\"Example/F0802/A\">Mitteilungen aus irischen Handschriften. V. Aus Egerton 1782. <em>Dūan in chōicat cest inn</em></a>’</span></div>",
"<td class=\"Text smwtype_txt\">Extra text by #set: <div>Meyer (Kuno), <span>‘"
]
}
}
],
"settings": {
"smwgPageSpecialProperties": [ "_MDAT" ],
"smwgQueryResultCacheType": false,
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"skip-on": {
"mw-1.19.20": "<h1> contains an extra space"
},
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|