-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathextension.json
More file actions
167 lines (167 loc) · 3.54 KB
/
extension.json
File metadata and controls
167 lines (167 loc) · 3.54 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"name": "PageImages",
"author": "Max Semenik",
"url": "https://www.mediawiki.org/wiki/Extension:PageImages",
"descriptionmsg": "pageimages-desc",
"license-name": "WTFPL",
"type": "api",
"requires": {
"MediaWiki": ">= 1.46"
},
"APIPropModules": {
"pageimages": {
"class": "PageImages\\ApiQueryPageImages",
"services": [
"RepoGroup",
"UrlUtils"
]
}
},
"MessagesDirs": {
"PageImages": [
"i18n",
"i18n/api"
]
},
"AutoloadNamespaces": {
"PageImages\\": "includes/"
},
"TestAutoloadNamespaces": {
"PageImages\\Tests\\": "tests/phpunit/"
},
"Hooks": {
"ApiOpenSearchSuggest": "main",
"BeforePageDisplay": "main",
"InfoAction": "main",
"ParserAfterTidy": "parser",
"ParserModifyImageHTML": "parser",
"ParserTestGlobals": "parser",
"SearchResultProvideThumbnail": "search",
"SpecialMobileEditWatchlist::images": "mobile"
},
"HookHandlers": {
"main": {
"class": "PageImages\\PageImages",
"services": [
"MainConfig",
"DBLoadBalancerFactory",
"RepoGroup",
"UrlUtils",
"UserOptionsLookup"
]
},
"parser": {
"class": "PageImages\\Hooks\\ParserFileProcessingHookHandlers",
"services": [
"MainConfig",
"RepoGroup",
"MainWANObjectCache",
"HttpRequestFactory",
"DBLoadBalancerFactory",
"TitleFactory",
"LinksMigration"
]
},
"search": {
"class": "PageImages\\Hooks\\SearchResultProvideThumbnailHookHandler",
"services": [
"SearchResultThumbnailProvider",
"PageProps",
"RepoGroup"
]
},
"mobile": {
"class": "PageImages\\Hooks\\MobileFrontendHookHandlers"
}
},
"JobClasses": {
"InitImageDataJob": {
"class": "PageImages\\Job\\InitImageDataJob",
"services": [
"DBLoadBalancerFactory"
],
"needsPage": false
}
},
"ServiceWiringFiles": [
"includes/ServiceWiring.php"
],
"callback": "PageImages\\PageImages::onRegistration",
"config": {
"PageImagesScores": {
"description": "Images <120px are usually from maintenance or stub templates; >600px are panoramas, less suitable.",
"value": {
"position": [
8,
6,
4,
3
],
"width": {
"119": -100,
"400": 10,
"600": 5,
"601": 0
},
"galleryImageWidth": {
"99": -100,
"100": 0
},
"ratio": {
"3": -100,
"5": 0,
"20": 5,
"30": 0,
"31": -100
}
}
},
"PageImagesDenylist": {
"value": [
{
"type": "db",
"page": "MediaWiki:Pageimages-denylist",
"db": false
}
]
},
"PageImagesOpenGraph": {
"description": "Enable the OpenGraph meta tags",
"value": true
},
"PageImagesDenylistExpiry": {
"value": 900
},
"PageImagesExpandOpenSearchXml": {
"value": false
},
"PageImagesNamespaces": {
"value": false
},
"PageImagesLeadSectionOnly": {
"description": "Whether page images should be restricted to those in section 0",
"value": true
},
"PageImagesAPIDefaultLicense": {
"description": "Get images with either a 'free' license or 'any' (including free and non-free) license by default, via 'pilicense' option, in pageprops query api. The value of this setting should be either 'free' or 'any'.",
"value": "free"
},
"PageImagesOpenGraphFallbackImage": {
"description": "A url to fallback image that will be shown when there is no image on a page.",
"value": false
}
},
"attributes": {
"Scribunto": {
"LuaExtraTitleAttributes": {
"pageImage": {
"class": "PageImages\\LuaPageImageResolver",
"services": [
"PageImages.PageImages"
]
}
}
}
},
"manifest_version": 2
}