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
82
83
84
85
86
87
88
89
90
91
92
|
{
"description": "Test `_wpg` value with lower/upper first case letter +DISPLAYTITLE (#3587, `wgRestrictDisplayTitle`, `wgCapitalLinks`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has number",
"contents": "[[Has type::Number]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has text",
"contents": "[[Has type::Text]]"
},
{
"page": "P0461/1",
"contents": "[[Has number::123]] [[Has text::abc]] [[Category:P0461]] {{DISPLAYTITLE:p0461/1}}"
},
{
"page": "P0461/2",
"contents": "[[Category:P0461]] [[Has text::ABC]] {{DISPLAYTITLE:p0461/2}}"
},
{
"page": "P0461/Q.1",
"contents": "{{#show: p0461/1 |?Has number |intro=p0461: }}"
},
{
"page": "P0461/Q.2",
"contents": "{{#show: P0461/1 |?Has number |intro=P0461: }}"
},
{
"page": "P0461/Q.3",
"contents": "{{#ask: [[p0461/1]] |?Has text |intro=p0461: |format=plain |mainlabel=- |headers=hide }}"
},
{
"page": "P0461/Q.4",
"contents": "{{#ask: [[P0461/1]] |?Has text |intro=P0461: |format=plain |mainlabel=- |headers=hide }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 (#show, lower case `p0461`)",
"subject": "P0461/Q.1",
"assert-output": {
"to-contain": [
"p0461:123"
]
}
},
{
"type": "parser",
"about": "#1 (#show, upper case `P0461`)",
"subject": "P0461/Q.2",
"assert-output": {
"to-contain": [
"P0461:123"
]
}
},
{
"type": "parser",
"about": "#2 (#ask, lower case `p0461`)",
"subject": "P0461/Q.3",
"assert-output": {
"to-contain": [
"p0461:abc"
]
}
},
{
"type": "parser",
"about": "#3 (#ask, upper case `P0461`)",
"subject": "P0461/Q.4",
"assert-output": {
"to-contain": [
"P0461:abc"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"wgCapitalLinks": true,
"wgRestrictDisplayTitle": false
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|