summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/ModernTimeline/tests/System/JsonScript/template.json
blob: 99f883c978616683c3f410f018967847ddc1e10a (plain)
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
{
	"description": "Modern Timeline - template",
	"setup": [
		{
			"page": "News date",
			"namespace": "SMW_NS_PROPERTY",
			"contents": "[[Has type::Date]]"
		},
		{
			"page": "Description",
			"namespace": "SMW_NS_PROPERTY",
			"contents": "[[Has type::Text]]"
		},
		{
			"page": "TimelineTest",
			"namespace": "NS_TEMPLATE",
			"contents": "Hi! {{{title}}} {{{Description}}} {{{News date}}}"
		},
		{
			"page": "First news event",
			"contents": "[[News date::August 1, 2019]] [[Description::first desc]]"
		},
		{
			"page": "Query page",
			"contents": "{{ #ask: [[Description::+]] | format=moderntimeline | ?News date | ?Description | template=TimelineTest }}"
		}
	],
	"tests": [
		{
			"about": "Template parameter",
			"type": "parser",
			"subject": "Query page",
			"assert-output": {
				"include-head-items": true,
				"to-contain": [
					"Hi! First news event first desc 1 August 2019"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}