summaryrefslogtreecommitdiff
path: root/extension.json
blob: bedd8c4b73f9b930632fbf8aa1d8f0980afc72f9 (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
{
	"name": "Vote",
	"type": "parserhook",
	"license-name": "MIT",
	"author": "[https://push-f.com/ Martin Fischer]",
	"url": "https://www.mediawiki.org/wiki/Extension:Vote",
	"version": "0.1.0",
	"description": "Provides the <code>&lt;vote&gt;</code> tag.",
	"MessagesDirs": {
		"VoteExtension": [
			"i18n"
		]
	},
	"AutoloadClasses": {
		"VoteHooks": "Vote.php",
		"SpecialInsertVote": "Vote.php"
	},
	"SpecialPages": {
		"InsertVote": "SpecialInsertVote"
	},
	"Hooks": {
		"ParserFirstCallInit": "VoteHooks::onParserFirstCallInit",
		"ParserPreSaveTransformComplete": "VoteHooks::onParserPreSaveTransformComplete"
	},
	"ResourceModules": {
		"ext.vote-css": {
			"localBasePath": "resources",
			"remoteExtPath": "Vote/resources",
			"styles": ["style.css"],
			"targets": ["desktop", "mobile"]
		},
		"ext.vote-js": {
			"localBasePath": "resources",
			"remoteExtPath": "Vote/resources",
			"packageFiles": ["optional.js"],
			"messages": [
				"vote-edit-your-vote",
				"vote-already-yes",
				"vote-already-no",
				"vote-already-abstain",
				"vote-change"
			],
			"targets": ["desktop", "mobile"]
		}
	},
	"TrackingCategories": [
		"pages-with-open-votes-category",
		"pages-with-vote-errors-category"
	],
	"manifest_version": 1
}