-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextension.json
142 lines (142 loc) · 4.01 KB
/
extension.json
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
{
"name": "RelatedImages",
"version": "0.0.1",
"author": "Edward Chernenko",
"url": "https://www.mediawiki.org/wiki/Extension:RelatedImages",
"descriptionmsg": "relatedimages-desc",
"license-name": "GPL-2.0+",
"requires": {
"MediaWiki": ">= 1.39.0"
},
"type": "other",
"AutoloadClasses": {
"MediaWiki\\RelatedImages\\Hooks": "includes/Hooks.php",
"MediaWiki\\RelatedImages\\SpecialSubcatImagesGallery": "includes/specials/SpecialSubcatImagesGallery.php"
},
"ExtensionMessagesFiles": {
"RelatedImagesAlias": "RelatedImages.alias.php"
},
"HookHandlers": {
"main": {
"class": "MediaWiki\\RelatedImages\\Hooks",
"services": [
"ContentRenderer",
"DBLoadBalancer",
"RepoGroup",
"WikiPageFactory"
]
}
},
"Hooks": {
"CategoryPageView": "main",
"ImagePageAfterImageLinks": "main"
},
"MessagesDirs": {
"RelatedImages": [
"i18n"
]
},
"config": {
"RelatedImagesMaxCategories": {
"value": 3,
"description": "How many categories to show in Related Images recommendations."
},
"RelatedImagesMaxImagesPerCategory": {
"value": 3,
"description": "How many images to show for each category."
},
"RelatedImagesMoreCategoriesPerClick": {
"value": 2,
"description": "How many additional categories to show when user clicks More link at the bottom of Related Images recommendations."
},
"RelatedImagesIgnoredCategories": {
"value": [],
"description": "List of categories that are too generic to be useful when searching for related images. Category names should start with a capital letter and use underscore (_) instead of spaces."
},
"RelatedImagesThumbnailWidth": {
"value": 50,
"description": "Maximum width of thumbnails of recommended images."
},
"RelatedImagesThumbnailHeight": {
"value": 50,
"description": "Maximum height of thumbnails of recommended images."
},
"RelatedImagesBoxExtraCssClass": {
"value": "",
"description": "Additional CSS classes to add to the Related Images box."
},
"RelatedImagesExperimentalPregenerateThumbnails": {
"value": false,
"description": "(((don't enable except for experimental testing))) If true, extension attempts to generate thumbnails in background while the page File:Something.php is being loaded by the browser. This setting needs practical testing for the following 2 outcomes: it MIGHT show thumbnails to user faster (wanted outcome), it also MIGHT cause extra server load due to the same thumbnails being generated twice (unwanted outcome)."
},
"RelatedImagesDisableForExtensions": {
"value": [ "ogg", "pdf" ],
"description": "Related Images box won't be shown on File pages with these file extensions."
},
"RelatedImagesDoNotRecommendExtensions": {
"value": [ "ogg", "pdf" ],
"description": "Related Images box won't recommend files with these file extensions."
},
"RelatedImagesMaxSubcatImages": {
"value": 100,
"description": "Maximum number of additional thumbnails to show when user clicks \"Show images from subcategories\" link on category pages."
}
},
"ResourceModules": {
"ext.relatedimages": {
"scripts": [
"ext.relatedimages.js"
],
"targets": [
"desktop",
"mobile"
],
"dependencies": [
"mediawiki.api"
],
"messages": [
"relatedimages-more",
"relatedimages-more-loading"
]
},
"ext.relatedimages.css": {
"styles": [
"ext.relatedimages.css"
],
"targets": [
"desktop",
"mobile"
]
},
"ext.relatedimages.subcatlink": {
"scripts": [
"ext.relatedimages.subcatlink.js"
],
"targets": [
"desktop",
"mobile"
],
"dependencies": [
"mediawiki.Title"
],
"messages": [
"subcatimagesgallery-empty",
"subcatimagesgallery-link",
"subcatimagesgallery-link-loading"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "RelatedImages/modules"
},
"SpecialPages": {
"SubcatImagesGallery": {
"class": "MediaWiki\\RelatedImages\\SpecialSubcatImagesGallery",
"services": [
"DBLoadBalancer"
]
}
},
"manifest_version": 2
}