forked from arumi-s/mediawiki-extensions-CustomRedirect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension.json
More file actions
68 lines (68 loc) · 1.9 KB
/
extension.json
File metadata and controls
68 lines (68 loc) · 1.9 KB
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
{
"name": "CustomRedirect",
"version": "1.0.2",
"author": "Sakura Arumi",
"url": "https://github.com/arumi-s/mediawiki-extensions-CustomRedirect",
"descriptionmsg": "customredirect-desc",
"license-name": "MIT",
"type": "other",
"config": {
"CustomRedirectUseShortUrl": {
"description": "Whether to allow short url to be used",
"value": false
},
"CustomRedirectShowShortUrl": {
"description": "Whether to show short url on pages",
"value": false
},
"CustomRedirectEnabledNamespaces": {
"description": "Defines an array of namespaces to enable custom redirect in",
"value": [0]
},
"CustomRedirectRegexEnabledNamespaces": {
"description": "Defines an array of namespaces to enable regex redirect in",
"value": []
}
},
"APIPropModules": {
"shorturl": {
"class": "MediaWiki\\Extension\\CustomRedirect\\Apis\\ApiQueryShortUrl",
"services": ["CustomRedirect.UrlShortener"]
}
},
"MessagesDirs": {
"CustomRedirect": ["i18n"]
},
"ExtensionMessagesFiles": {
"CustomRedirectMagic": "CustomRedirect.i18n.magic.php"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\CustomRedirect\\": "includes/"
},
"Hooks": {
"ParserFirstCallInit": "ParserHookHandler",
"BeforePageDisplay": "HookHandler",
"InitializeArticleMaybeRedirect": "HookHandler",
"BeforeParserFetchTemplateRevisionRecord": "HookHandler",
"BeforeParserFetchFileAndTitle": "HookHandler",
"HtmlPageLinkRendererBegin": "HookHandler",
"SpecialSearchResults": "HookHandler",
"ApiOpenSearchSuggest": "HookHandler"
},
"HookHandlers": {
"HookHandler": {
"class": "MediaWiki\\Extension\\CustomRedirect\\Hooks",
"services": [
"MainConfig",
"RevisionLookup",
"CustomRedirect.UrlShortener",
"CustomRedirectLookup"
]
},
"ParserHookHandler": {
"class": "MediaWiki\\Extension\\CustomRedirect\\ParserHooks"
}
},
"ServiceWiringFiles": ["includes/ServiceWiring.php"],
"manifest_version": 2
}