3 * Definition of core ResourceLoader modules.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
23 use MediaWiki\Config\Config
;
24 use MediaWiki\HookContainer\HookRunner
;
25 use MediaWiki\Language\Language
;
26 use MediaWiki\Languages\LanguageNameUtils
;
27 use MediaWiki\MainConfigNames
;
28 use MediaWiki\MediaWikiServices
;
29 use MediaWiki\Parser\Sanitizer
;
30 use MediaWiki\ResourceLoader
as RL
;
31 use MediaWiki\ResourceLoader\CodexModule
;
32 use MediaWiki\ResourceLoader\Context
;
33 use MediaWiki\ResourceLoader\FilePath
;
34 use MediaWiki\ResourceLoader\ForeignApiModule
;
35 use MediaWiki\ResourceLoader\LessVarFileModule
;
36 use MediaWiki\ResourceLoader\Module
;
37 use MediaWiki\ResourceLoader\MwUrlModule
;
38 use MediaWiki\ResourceLoader\OOUIFileModule
;
39 use MediaWiki\ResourceLoader\OOUIIconPackModule
;
40 use MediaWiki\ResourceLoader\OOUIImageModule
;
41 use MediaWiki\ResourceLoader\ResourceLoader
;
42 use MediaWiki\ResourceLoader\SiteModule
;
43 use MediaWiki\ResourceLoader\SiteStylesModule
;
44 use MediaWiki\ResourceLoader\SkinModule
;
45 use MediaWiki\ResourceLoader\UserModule
;
46 use MediaWiki\ResourceLoader\UserOptionsModule
;
47 use MediaWiki\ResourceLoader\UserStylesModule
;
48 use MediaWiki\ResourceLoader\WikiModule
;
49 use MediaWiki\SpecialPage\ChangesListSpecialPage
;
50 use MediaWiki\Title\Title
;
51 use Wikimedia\ParamValidator\TypeDef\ExpiryDef
;
53 if ( !defined( 'MEDIAWIKI' ) ) {
54 die( 'Not an entry point.' );
57 global $wgResourceBasePath;
60 // Scripts managed by the local wiki (stored in the MediaWiki namespace)
61 'site' => [ 'class' => SiteModule
::class ],
62 'site.styles' => [ 'class' => SiteStylesModule
::class ],
64 'class' => WikiModule
::class,
65 'styles' => [ 'MediaWiki:Noscript.css' ],
66 'group' => Module
::GROUP_NOSCRIPT
,
69 'class' => WikiModule
::class,
70 'styles' => [ 'MediaWiki:Filepage.css' ],
73 // Scripts managed by the current user (stored in their user space)
74 'user' => [ 'class' => UserModule
::class ],
75 'user.styles' => [ 'class' => UserStylesModule
::class ],
77 'user.options' => [ 'class' => UserOptionsModule
::class ],
79 'mediawiki.skinning.interface' => [
80 'class' => SkinModule
::class,
83 'content-media' => true,
85 'interface-message-box' => true,
89 'jquery.makeCollapsible.styles' => [
90 'class' => LessVarFileModule
::class,
92 'collapsible-collapse',
96 'resources/src/jquery/jquery.makeCollapsible.styles.less',
100 'mediawiki.skinning.content.parsoid' => [
101 // Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser
102 // with the interface.css styles; skinStyles should be used if your
103 // skin over-rides common content styling.
106 'resources/src/mediawiki.skinning/content.parsoid.less',
107 'resources/src/mediawiki.skinning/content.media-common.less',
108 'resources/src/mediawiki.skinning/content.media-screen.less',
109 'resources/src/mediawiki.page.gallery.styles/content.media.less',
115 'web2017-polyfills' => [
117 'resources/lib/intersection-observer/intersection-observer.js',
118 'resources/lib/fetch-polyfill/fetch.umd.js',
119 // The URL polyfill depends on the following in addition to the ES6 baseline
120 // https://github.com/Financial-Times/polyfill-library/blob/v3.110.1/polyfills/URL/config.toml#L10
121 // - ES6 Symbol.iterator (no fill needed, used conditionally)
122 'resources/lib/url/URL.js',
123 'resources/lib/url/URL-toJSON.js',
125 'skipFunction' => 'resources/src/skip-web2017-polyfills.js',
130 // These modules' dependencies MUST also be included in StartUpModule::getBaseModules().
131 // These modules' dependencies MUST be dependency-free (having dependencies would cause recursion).
135 'resources/lib/jquery/jquery.js'
138 'mediawiki.base' => [
139 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.base',
140 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.base",
147 [ 'name' => 'config.json', 'callback' => [ ResourceLoader
::class, 'getSiteConfigSettings' ] ],
149 'name' => 'user.json',
150 'callback' => static function ( Context
$context ) {
151 $services = MediaWikiServices
::getInstance();
153 return ResourceLoader
::getUserDefaults(
155 $services->getHookContainer(),
156 $services->getUserOptionsLookup()
161 'dependencies' => 'jquery',
167 'scripts' => 'resources/lib/jquery.chosen/chosen.jquery.js',
168 'styles' => 'resources/lib/jquery.chosen/chosen.css',
171 'scripts' => 'resources/lib/jquery.client/jquery.client.js',
173 'jquery.confirmable' => [
175 'resources/src/jquery/jquery.confirmable.js',
176 'resources/src/jquery/jquery.confirmable.mediawiki.js',
179 'confirmable-confirm',
184 'styles' => 'resources/src/jquery/jquery.confirmable.less',
185 'dependencies' => 'mediawiki.jqueryMsg',
187 'jquery.highlightText' => [
188 'scripts' => 'resources/src/jquery/jquery.highlightText.js',
195 'resources/lib/jquery.i18n/src/jquery.i18n.js',
196 'resources/lib/jquery.i18n/src/jquery.i18n.messagestore.js',
197 'resources/lib/jquery.i18n/src/jquery.i18n.parser.js',
198 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.js',
199 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.bidi.js',
200 'resources/lib/jquery.i18n/src/jquery.i18n.language.js',
201 'resources/lib/jquery.i18n/src/jquery.i18n.fallbacks.js',
203 'dependencies' => 'mediawiki.libs.pluralruleparser',
204 'languageScripts' => [
205 'bs' => 'resources/lib/jquery.i18n/src/languages/bs.js',
206 'dsb' => 'resources/lib/jquery.i18n/src/languages/dsb.js',
207 'fi' => 'resources/lib/jquery.i18n/src/languages/fi.js',
208 'ga' => 'resources/lib/jquery.i18n/src/languages/ga.js',
209 'he' => 'resources/lib/jquery.i18n/src/languages/he.js',
210 'hsb' => 'resources/lib/jquery.i18n/src/languages/hsb.js',
211 'hu' => 'resources/lib/jquery.i18n/src/languages/hu.js',
212 'hy' => 'resources/lib/jquery.i18n/src/languages/hy.js',
213 'la' => 'resources/lib/jquery.i18n/src/languages/la.js',
214 'ml' => 'resources/lib/jquery.i18n/src/languages/ml.js',
215 'os' => 'resources/lib/jquery.i18n/src/languages/os.js',
216 'ru' => 'resources/lib/jquery.i18n/src/languages/ru.js',
217 'sl' => 'resources/lib/jquery.i18n/src/languages/sl.js',
218 'uk' => 'resources/lib/jquery.i18n/src/languages/uk.js',
221 'jquery.lengthLimit' => [
222 'scripts' => 'resources/src/jquery.lengthLimit.js',
223 'dependencies' => 'mediawiki.String',
225 'jquery.makeCollapsible' => [
227 'jquery.makeCollapsible.styles',
230 'scripts' => 'resources/src/jquery/jquery.makeCollapsible.js',
231 'styles' => 'resources/src/jquery/jquery.makeCollapsible.less',
232 'messages' => [ 'collapsible-expand', 'collapsible-collapse' ],
234 'jquery.spinner' => [
235 'scripts' => 'resources/src/jquery.spinner/spinner.js',
236 'dependencies' => [ 'jquery.spinner.styles' ],
238 'jquery.spinner.styles' => [
239 'styles' => 'resources/src/jquery.spinner/spinner.less',
241 'jquery.suggestions' => [
242 'scripts' => 'resources/src/jquery/jquery.suggestions.js',
243 'styles' => 'resources/src/jquery/jquery.suggestions.less',
244 'dependencies' => 'jquery.highlightText',
246 'jquery.tablesorter' => [
247 'scripts' => 'resources/src/jquery.tablesorter/jquery.tablesorter.js',
248 'messages' => [ 'sort-descending', 'sort-ascending', 'sort-initial', 'sort-rowspan-error' ],
250 'jquery.tablesorter.styles',
252 'mediawiki.language.months',
255 'jquery.tablesorter.styles' => [
256 'styles' => 'resources/src/jquery.tablesorter.styles/jquery.tablesorter.styles.less',
258 'jquery.textSelection' => [
259 'scripts' => 'resources/src/jquery/jquery.textSelection.js',
268 'deprecated' => 'Please use Codex instead.',
270 'resources/lib/jquery.ui/jquery.ui.core.js',
271 'resources/lib/jquery.ui/jquery.ui.widget.js',
272 'resources/lib/jquery.ui/jquery.ui.mouse.js',
273 'resources/lib/jquery.ui/jquery.ui.draggable.js',
274 'resources/lib/jquery.ui/jquery.ui.droppable.js',
275 'resources/lib/jquery.ui/jquery.ui.resizable.js',
276 'resources/lib/jquery.ui/jquery.ui.selectable.js',
277 'resources/lib/jquery.ui/jquery.ui.sortable.js',
278 'resources/lib/jquery.ui/jquery.ui.effect.js',
279 'resources/lib/jquery.ui/jquery.ui.accordion.js',
280 'resources/lib/jquery.ui/jquery.ui.autocomplete.js',
281 'resources/lib/jquery.ui/jquery.ui.button.js',
282 'resources/lib/jquery.ui/jquery.ui.datepicker.js',
283 'resources/lib/jquery.ui/jquery.ui.dialog.js',
284 'resources/lib/jquery.ui/jquery.ui.effect-blind.js',
285 'resources/lib/jquery.ui/jquery.ui.effect-clip.js',
286 'resources/lib/jquery.ui/jquery.ui.effect-drop.js',
287 'resources/lib/jquery.ui/jquery.ui.effect-highlight.js',
288 'resources/lib/jquery.ui/jquery.ui.effect-scale.js',
289 'resources/lib/jquery.ui/jquery.ui.effect-shake.js',
290 'resources/lib/jquery.ui/jquery.ui.menu.js',
291 'resources/lib/jquery.ui/jquery.ui.position.js',
292 'resources/lib/jquery.ui/jquery.ui.progressbar.js',
293 'resources/lib/jquery.ui/jquery.ui.slider.js',
294 'resources/lib/jquery.ui/jquery.ui.tabs.js',
295 'resources/lib/jquery.ui/jquery.ui.tooltip.js',
297 'languageScripts' => [
298 'af' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js',
299 'ar' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
300 'ar-dz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js',
301 'az' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js',
302 'bg' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
303 'bs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
304 'ca' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
305 'cs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
306 'da' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js',
307 'de-at' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js',
308 'de-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js',
309 'de' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js',
310 'el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js',
311 'en-au' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js',
312 'en-gb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
313 'en-nz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js',
314 'eo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
315 'es' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js',
316 'et' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js',
317 'eu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
318 'fa' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
319 'fi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
320 'fo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
321 'fr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
322 'fr-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js',
323 'gl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
324 'he' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js',
325 'hi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
326 'hr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
327 'hu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
328 'hy' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
329 'id' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js',
330 'is' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js',
331 'it' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js',
332 'ja' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
333 'ka' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
334 'kk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
335 'km' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js',
336 'ko' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
337 'lb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
338 'lt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
339 'lv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
340 'mk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
341 'ml' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
342 'ms' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
343 'nl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
344 'nl-be' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js',
345 'no' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js',
346 'pl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
347 'pt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
348 'pt-br' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
349 'rm' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
350 'ro' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
351 'ru' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
352 'sk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
353 'sl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
354 'sq' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
355 'sr-ec' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
356 'sr-el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
357 'sv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
358 'ta' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
359 'th' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js',
360 'tj' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js',
361 'tr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
362 'uk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
363 'vi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
364 'zh-cn' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
365 'zh-hk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
366 'zh-tw' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
370 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.core.css',
371 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.accordion.css',
372 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.autocomplete.css',
373 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.button.css',
374 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.datepicker.css',
375 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css',
376 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.menu.css',
377 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.progressbar.css',
378 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.resizable.css',
379 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.selectable.css',
380 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.slider.css',
381 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tabs.css',
382 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tooltip.css',
383 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.theme.css',
392 'resources/lib/moment/moment.js',
393 'resources/src/moment/moment-module.js',
395 'languageScripts' => [
396 'aeb-arab' => 'resources/lib/moment/locale/ar-tn.js',
397 'af' => 'resources/lib/moment/locale/af.js',
398 'ar' => 'resources/lib/moment/locale/ar.js',
399 'ar-ma' => 'resources/lib/moment/locale/ar-ma.js',
400 'ar-sa' => 'resources/lib/moment/locale/ar-sa.js',
401 'az' => 'resources/lib/moment/locale/az.js',
402 'be' => 'resources/lib/moment/locale/be.js',
403 'bg' => 'resources/lib/moment/locale/bg.js',
404 'bm' => 'resources/lib/moment/locale/bm.js',
405 'bn' => 'resources/lib/moment/locale/bn.js',
406 'bo' => 'resources/lib/moment/locale/bo.js',
407 'br' => 'resources/lib/moment/locale/br.js',
408 'bs' => 'resources/lib/moment/locale/bs.js',
409 'ca' => 'resources/lib/moment/locale/ca.js',
410 'cs' => 'resources/lib/moment/locale/cs.js',
411 'cv' => 'resources/lib/moment/locale/cv.js',
412 'cy' => 'resources/lib/moment/locale/cy.js',
413 'da' => 'resources/lib/moment/locale/da.js',
414 'de' => 'resources/lib/moment/locale/de.js',
415 'de-at' => 'resources/lib/moment/locale/de-at.js',
416 'de-ch' => 'resources/lib/moment/locale/de-ch.js',
417 'dv' => 'resources/lib/moment/locale/dv.js',
418 'el' => 'resources/lib/moment/locale/el.js',
419 'en' => 'resources/src/moment/moment-dmy.js',
420 'en-au' => 'resources/lib/moment/locale/en-au.js',
421 'en-ca' => 'resources/lib/moment/locale/en-ca.js',
422 'en-gb' => 'resources/lib/moment/locale/en-gb.js',
423 'eo' => 'resources/lib/moment/locale/eo.js',
424 'es' => 'resources/lib/moment/locale/es.js',
425 'et' => 'resources/lib/moment/locale/et.js',
426 'eu' => 'resources/lib/moment/locale/eu.js',
427 'fa' => 'resources/lib/moment/locale/fa.js',
428 'fi' => 'resources/lib/moment/locale/fi.js',
429 'fo' => 'resources/lib/moment/locale/fo.js',
430 'fr' => 'resources/lib/moment/locale/fr.js',
431 'fr-ca' => 'resources/lib/moment/locale/fr-ca.js',
432 'fy' => 'resources/lib/moment/locale/fy.js',
433 'gd' => 'resources/lib/moment/locale/gd.js',
434 'gl' => 'resources/lib/moment/locale/gl.js',
435 'gom' => 'resources/lib/moment/locale/gom-latn.js',
436 'gom-deva' => 'resources/lib/moment/locale/gom-deva.js',
437 'gom-latn' => 'resources/lib/moment/locale/gom-latn.js',
438 'gu' => 'resources/lib/moment/locale/gu.js',
439 'he' => 'resources/lib/moment/locale/he.js',
440 'hi' => 'resources/lib/moment/locale/hi.js',
441 'hr' => 'resources/lib/moment/locale/hr.js',
442 'hu' => 'resources/lib/moment/locale/hu.js',
443 'hy-am' => 'resources/lib/moment/locale/hy-am.js',
444 'id' => 'resources/lib/moment/locale/id.js',
445 'is' => 'resources/lib/moment/locale/is.js',
446 'it' => 'resources/lib/moment/locale/it.js',
447 'ja' => 'resources/lib/moment/locale/ja.js',
448 'jv' => 'resources/lib/moment/locale/jv.js',
449 'ka' => 'resources/lib/moment/locale/ka.js',
450 'kk-cyrl' => 'resources/lib/moment/locale/kk.js',
451 'kn' => 'resources/lib/moment/locale/kn.js',
452 'ko' => 'resources/lib/moment/locale/ko.js',
453 'ky' => 'resources/lib/moment/locale/ky.js',
454 'lo' => 'resources/lib/moment/locale/lo.js',
455 'lt' => 'resources/lib/moment/locale/lt.js',
456 'lv' => 'resources/lib/moment/locale/lv.js',
457 'mi' => 'resources/lib/moment/locale/mi.js',
458 'mk' => 'resources/lib/moment/locale/mk.js',
459 'ml' => 'resources/lib/moment/locale/ml.js',
460 'mr' => 'resources/lib/moment/locale/mr.js',
461 'ms-my' => 'resources/lib/moment/locale/ms-my.js',
462 'ms' => 'resources/lib/moment/locale/ms.js',
463 'my' => 'resources/lib/moment/locale/my.js',
464 'nb' => 'resources/lib/moment/locale/nb.js',
465 'ne' => 'resources/lib/moment/locale/ne.js',
466 'nl' => 'resources/lib/moment/locale/nl.js',
467 'nn' => 'resources/lib/moment/locale/nn.js',
468 'pa' => 'resources/lib/moment/locale/pa-in.js',
469 'pl' => 'resources/lib/moment/locale/pl.js',
470 'pt' => 'resources/lib/moment/locale/pt.js',
471 'pt-br' => 'resources/lib/moment/locale/pt-br.js',
472 'ro' => 'resources/lib/moment/locale/ro.js',
473 'ru' => 'resources/lib/moment/locale/ru.js',
474 'sd' => 'resources/lib/moment/locale/sd.js',
475 'se' => 'resources/lib/moment/locale/se.js',
476 'si' => 'resources/lib/moment/locale/si.js',
477 'sk' => 'resources/lib/moment/locale/sk.js',
478 'sl' => 'resources/lib/moment/locale/sl.js',
479 'sq' => 'resources/lib/moment/locale/sq.js',
480 'sr-ec' => 'resources/lib/moment/locale/sr-cyrl.js',
481 'sr-el' => 'resources/lib/moment/locale/sr.js',
482 'ss' => 'resources/lib/moment/locale/ss.js',
483 'sv' => 'resources/lib/moment/locale/sv.js',
484 'sw' => 'resources/lib/moment/locale/sw.js',
485 'ta' => 'resources/lib/moment/locale/ta.js',
486 'te' => 'resources/lib/moment/locale/te.js',
487 'tet' => 'resources/lib/moment/locale/tet.js',
488 'th' => 'resources/lib/moment/locale/th.js',
489 'tl' => 'resources/lib/moment/locale/tl-ph.js',
490 'tr' => 'resources/lib/moment/locale/tr.js',
491 'tzm' => 'resources/lib/moment/locale/tzm.js',
492 'tzm-latn' => 'resources/lib/moment/locale/tzm-latn.js',
493 'uk' => 'resources/lib/moment/locale/uk.js',
494 'ur' => 'resources/lib/moment/locale/ur.js',
495 'uz' => 'resources/lib/moment/locale/uz-latn.js', # https://phabricator.wikimedia.org/T308123
496 'uz-latn' => 'resources/lib/moment/locale/uz-latn.js',
497 'vi' => 'resources/lib/moment/locale/vi.js',
498 'yo' => 'resources/lib/moment/locale/yo.js',
499 'zh-hans' => 'resources/lib/moment/locale/zh-cn.js',
500 'zh-hant' => 'resources/lib/moment/locale/zh-tw.js',
501 'zh-cn' => 'resources/lib/moment/locale/zh-cn.js',
502 'zh-hk' => 'resources/lib/moment/locale/zh-hk.js',
503 'zh-mo' => 'resources/lib/moment/locale/zh-mo.js',
504 'zh-tw' => 'resources/lib/moment/locale/zh-tw.js',
506 // HACK: skinScripts come after languageScripts, and we need locale overrides to come
507 // after locale definitions
510 'resources/src/moment/moment-locale-overrides.js',
514 'mediawiki.language',
523 'resources/src/vue/index.js',
524 'resources/src/vue/errorLogger.js',
525 'resources/src/vue/i18n.js',
527 'name' => 'resources/lib/vue/vue.js',
528 'callback' => static function ( Context
$context, Config
$config ) {
529 // Use the development version if development mode is enabled, or if we're in debug mode
530 $file = $config->get( MainConfigNames
::VueDevelopmentMode
) ||
$context->getDebug() ?
531 'resources/lib/vue/vue.global.js' :
532 'resources/lib/vue/vue.global.prod.js';
533 // The file shipped by Vue does var Vue = ...;, but doesn't export it
534 // Add module.exports = Vue; programmatically
535 return file_get_contents( MW_INSTALL_PATH
. "/$file" ) .
536 ';module.exports=Vue;';
538 'versionCallback' => static function ( Context
$context, Config
$config ) {
539 $file = $config->get( MainConfigNames
::VueDevelopmentMode
) ||
$context->getDebug() ?
540 'resources/lib/vue/vue.global.js' :
541 'resources/lib/vue/vue.global.prod.js';
542 return new FilePath( $file );
548 'mediawiki.page.ready'
555 'name' => 'resources/lib/vuex/vuex.js',
556 'callback' => static function ( Context
$context, Config
$config ) {
557 // Use the development version if development mode is enabled, or if we're in debug mode
558 $file = $config->get( MainConfigNames
::VueDevelopmentMode
) ||
$context->getDebug() ?
559 'resources/lib/vuex/vuex.global.js' :
560 'resources/lib/vuex/vuex.global.prod.js';
561 // The file shipped by Vuex does var Vuex = ...;, but doesn't export it
562 // Add module.exports = Vuex; programmatically, and import Vue
563 return "var Vue=require('vue');" .
564 file_get_contents( MW_INSTALL_PATH
. "/$file" ) .
565 ';module.exports=Vuex;';
567 'versionCallback' => static function ( Context
$context, Config
$config ) {
568 $file = $config->get( MainConfigNames
::VueDevelopmentMode
) ||
$context->getDebug() ?
569 'resources/lib/vuex/vuex.global.js' :
570 'resources/lib/vuex/vuex.global.prod.js';
571 return new FilePath( $file );
578 'deprecated' => '[1.42] Use Pinia instead. See migration guidelines: https://w.wiki/7pLU'
584 'name' => 'resources/lib/pinia/pinia.js',
585 'callback' => static function ( Context
$context, Config
$config ) {
586 // Use the development version if development mode is enabled, or if we're in debug mode
587 $developmentMode = $config->get( MainConfigNames
::VueDevelopmentMode
) ||
$context->getDebug();
589 $file = $developmentMode ?
590 'resources/lib/pinia/pinia.iife.js' :
591 'resources/lib/pinia/pinia.iife.prod.js';
593 // The file shipped by Pinia does var Pinia = ...;, but doesn't export it
594 // Add module.exports = Pinia; programmatically, and inject vue-demi.
595 return "var VueDemi=require('./vue-demi.js');" .
596 file_get_contents( MW_INSTALL_PATH
. "/$file" ) .
597 ';module.exports=Pinia;';
599 'versionCallback' => static function ( Context
$context, Config
$config ) {
600 $file = $config->get( MainConfigNames
::VueDevelopmentMode
) ||
$context->getDebug() ?
601 'resources/lib/pinia/pinia.iife.js' :
602 'resources/lib/pinia/pinia.iife.prod.js';
603 return new FilePath( $file );
607 'name' => 'resources/lib/pinia/vue-demi.js',
608 'callback' => static function ( Context
$context, Config
$config ) {
609 $developmentMode = $config->get( MainConfigNames
::VueDevelopmentMode
) ||
$context->getDebug();
611 // In non-development mode, Pinia doesn't need vue-demi, so don't load it.
612 // Instead, just wrap Vue.
613 if ( !$developmentMode ) {
614 return "module.exports=require('vue');";
617 return new FilePath( 'resources/lib/vue-demi/index.cjs' );
626 '@wikimedia/codex' => [
627 'class' => CodexModule
::class,
628 'codexFullLibrary' => true,
629 'codexScriptOnly' => true,
637 'class' => CodexModule
::class,
638 'codexFullLibrary' => true,
639 'codexStyleOnly' => true,
642 'mediawiki.codex.messagebox.styles' => [
643 'class' => CodexModule
::class,
644 'codexComponents' => [
647 'codexStyleOnly' => true
650 '@wikimedia/codex-search' => [
651 'deprecated' => '[1.43] Use a CodexModule with codexComponents to set your specific components used: '
652 . 'https://www.mediawiki.org/wiki/Codex#Using_a_limited_subset_of_components',
653 'class' => CodexModule
::class,
654 'codexComponents' => [ 'CdxTypeaheadSearch' ],
655 'codexScriptOnly' => true,
657 'codex-search-styles',
661 'codex-search-styles' => [
662 'deprecated' => '[1.43] Use a CodexModule with codexComponents to set your specific components used: '
663 . 'https://www.mediawiki.org/wiki/Codex#Using_a_limited_subset_of_components',
664 'class' => CodexModule
::class,
665 'codexComponents' => [ 'CdxTypeaheadSearch' ],
666 'codexStyleOnly' => true,
670 'mediawiki.template' => [
671 'scripts' => 'resources/src/mediawiki.template.js',
673 'mediawiki.template.mustache' => [
675 'resources/lib/mustache/mustache.js',
676 'resources/src/mediawiki.template.mustache.js',
678 'dependencies' => 'mediawiki.template',
680 'mediawiki.apipretty' => [
682 'resources/src/mediawiki.apipretty/apipretty.css',
683 'resources/src/mediawiki.apipretty/apihelp.css',
688 'resources/src/mediawiki.api/index.js',
689 'resources/src/mediawiki.api/AbortablePromise.js',
690 'resources/src/mediawiki.api/AbortController.js',
691 'resources/src/mediawiki.api/rest.js',
692 'resources/src/mediawiki.api/category.js',
693 'resources/src/mediawiki.api/edit.js',
694 'resources/src/mediawiki.api/login.js',
695 'resources/src/mediawiki.api/messages.js',
696 'resources/src/mediawiki.api/options.js',
697 'resources/src/mediawiki.api/parse.js',
698 'resources/src/mediawiki.api/rollback.js',
699 'resources/src/mediawiki.api/upload.js',
700 'resources/src/mediawiki.api/user.js',
701 'resources/src/mediawiki.api/watch.js',
706 'mediawiki.jqueryMsg',
710 'api-clientside-error-noconnect',
711 'api-clientside-error-http',
712 'api-clientside-error-timeout',
713 'api-clientside-error-aborted',
714 'api-clientside-error-invalidresponse',
717 'mediawiki.content.json' => [
718 'styles' => 'resources/src/mediawiki.content.json.less',
720 'mediawiki.confirmCloseWindow' => [
722 'resources/src/mediawiki.confirmCloseWindow.js',
725 'confirmleave-warning',
728 'mediawiki.debug' => [
730 'resources/src/mediawiki.debug/jquery.footHovzer.js',
731 'resources/src/mediawiki.debug/debug.js',
734 'resources/src/mediawiki.debug/jquery.footHovzer.css',
735 'resources/src/mediawiki.debug/debug.less',
741 'mediawiki.diff' => [
743 'resources/src/mediawiki.diff/diff.js',
744 'resources/src/mediawiki.diff/inlineFormatToggle.js',
747 'resources/src/mediawiki.diff/styles.less'
753 'diff-inline-tooltip-ins',
754 'diff-inline-tooltip-del',
755 'diff-inline-format-label',
756 'diff-inline-switch-desc'
759 'mediawiki.diff.styles' => [
760 'class' => LessVarFileModule
::class,
766 'resources/src/mediawiki.diff.styles/diff.less',
767 'resources/src/mediawiki.diff.styles/print.css' => [
772 'mediawiki.feedback' => [
773 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.feedback',
774 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.feedback",
779 'styles' => 'feedback.less',
781 'mediawiki.jqueryMsg',
782 'mediawiki.messagePoster',
788 'feedback-dialog-intro',
789 'feedback-external-bug-report-button',
792 'feedback-dialog-title',
799 'feedback-termsofuse',
801 'feedback-thanks-title',
805 'mediawiki.feedlink' => [
808 'resources/src/mediawiki.feedlink/feedlink.css',
813 'mediawiki.filewarning' => [
814 'scripts' => 'resources/src/mediawiki.filewarning/filewarning.js',
815 'styles' => 'resources/src/mediawiki.filewarning/filewarning.less',
818 'oojs-ui.styles.icons-alerts',
821 'mediawiki.ForeignApi' => [
822 'class' => ForeignApiModule
::class,
823 // Additional dependencies generated dynamically
824 'dependencies' => 'mediawiki.ForeignApi.core',
826 'mediawiki.ForeignApi.core' => [
828 'resources/src/mediawiki.ForeignApi/index.js',
829 'resources/src/mediawiki.ForeignApi/mediawiki.ForeignApi.core.js',
830 'resources/src/mediawiki.ForeignApi/mediawiki.ForeignRest.core.js'
838 'mediawiki.helplink' => [
840 'resources/src/mediawiki.helplink/helplink.less',
843 'mediawiki.hlist' => [
844 'class' => LessVarFileModule
::class,
851 'resources/src/mediawiki.hlist/hlist.less',
854 'default' => 'resources/src/mediawiki.hlist/default.less',
857 'mediawiki.htmlform' => [
858 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.htmlform',
859 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.htmlform",
870 'name' => 'contentMessages.json',
871 'callback' => static function ( Context
$context ) {
873 'colonSeparator' => $context->msg( 'colon-separator' )->inContentLanguage()->text(),
880 'mediawiki.widgets.visibleLengthLimit',
883 'mediawiki.htmlform.ooui' => [
885 'resources/src/mediawiki.htmlform.ooui/Element.js',
891 'mediawiki.htmlform.styles' => [
892 'styles' => 'resources/src/mediawiki.htmlform.styles/styles.less',
894 'mediawiki.htmlform.codex.styles' => [
895 'class' => CodexModule
::class,
897 'resources/src/mediawiki.htmlform.codex.styles.less'
899 'codexComponents' => [
910 'codexStyleOnly' => true
912 'mediawiki.htmlform.ooui.styles' => [
914 'resources/src/mediawiki.collapsiblefieldsetlayout.styles.less',
915 'resources/src/mediawiki.htmlform.ooui.styles.less'
918 'mediawiki.inspect' => [
919 'scripts' => 'resources/src/mediawiki.inspect.js',
925 'mediawiki.notification' => [
927 'resources/src/mediawiki.notification/common.css',
928 'resources/src/mediawiki.notification/print.css'
929 => [ 'media' => 'print' ],
932 'default' => 'resources/src/mediawiki.notification/default.less',
934 'scripts' => 'resources/src/mediawiki.notification/notification.js',
937 'mediawiki.visibleTimeout',
940 'mediawiki.notification.convertmessagebox' => [
941 'scripts' => 'resources/src/mediawiki.notification.convertmessagebox.js',
943 'mediawiki.notification',
946 'mediawiki.notification.convertmessagebox.styles' => [
948 'resources/src/mediawiki.notification.convertmessagebox.styles.less',
951 'mediawiki.String' => [
952 'scripts' => 'resources/src/mediawiki.String.js',
954 'mediawiki.pager.styles' => [
956 'resources/src/mediawiki.pager.styles/TablePager.less',
957 'resources/src/mediawiki.pager.styles/DataTable.less',
961 'resources/src/mediawiki.pager.styles/IndexPager.less',
965 'mediawiki.pager.codex' => [
966 'scripts' => 'resources/src/mediawiki.pager.codex/codexTablePager.js',
968 'mediawiki.pager.codex.styles' => [
969 'class' => CodexModule
::class,
970 'codexComponents' => [ 'CdxTable' ],
971 'codexStyleOnly' => true,
973 'resources/src/mediawiki.pager.codex/CodexTablePager.less',
976 'mediawiki.pulsatingdot' => [
978 'resources/src/mediawiki.pulsatingdot/mediawiki.pulsatingdot.less',
981 'mediawiki.searchSuggest' => [
982 'scripts' => 'resources/src/mediawiki.searchSuggest/searchSuggest.js',
983 'styles' => 'resources/src/mediawiki.searchSuggest/searchSuggest.css',
985 'searchsuggest-search',
986 'searchsuggest-containing',
989 'jquery.suggestions',
994 'mediawiki.storage' => [
996 'resources/src/mediawiki.storage/index.js',
997 'resources/src/mediawiki.storage/SafeStorage.js',
1003 'mediawiki.Title' => [
1004 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.Title',
1005 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.Title",
1008 'phpCharToUpper.json'
1015 'mediawiki.Upload' => [
1016 'scripts' => 'resources/src/mediawiki.Upload.js',
1021 'mediawiki.ForeignUpload' => [
1022 'localBasePath' => MW_INSTALL_PATH
. '/resources/src',
1023 'remoteBasePath' => "$wgResourceBasePath/resources/src",
1025 'mediawiki.ForeignUpload.js',
1027 'name' => 'config.json',
1028 'config' => [ MainConfigNames
::ForeignUploadTargets
, MainConfigNames
::EnableUploads
],
1032 'mediawiki.ForeignApi',
1037 'uploaddisabledtext',
1038 'upload-dialog-disabled',
1039 'upload-foreign-cant-upload',
1042 'mediawiki.Upload.Dialog' => [
1044 'resources/src/mediawiki.Upload.Dialog.js',
1047 'mediawiki.Upload.BookletLayout',
1050 'upload-dialog-title',
1051 'upload-dialog-button-cancel',
1052 'upload-dialog-button-back',
1053 'upload-dialog-button-done',
1054 'upload-dialog-button-save',
1055 'upload-dialog-button-upload',
1058 'mediawiki.Upload.BookletLayout' => [
1060 'resources/src/mediawiki.Upload.BookletLayout/mw.widgets.StashedFileWidget.js',
1061 'resources/src/mediawiki.Upload.BookletLayout/BookletLayout.js',
1064 'resources/src/mediawiki.Upload.BookletLayout/BookletLayout.less',
1068 'resources/src/mediawiki.Upload.BookletLayout/mw.widgets.StashedFileWidget.less',
1075 'oojs-ui.styles.icons-content',
1076 'oojs-ui.styles.icons-editing-advanced',
1082 'mediawiki.jqueryMsg',
1085 'upload-form-label-infoform-title',
1086 'upload-form-label-infoform-name',
1087 'upload-form-label-infoform-name-tooltip',
1088 'upload-form-label-infoform-description',
1089 'upload-form-label-infoform-description-tooltip',
1090 'upload-form-label-usage-title',
1091 'upload-form-label-usage-filename',
1093 'apierror-mustbeloggedin',
1094 'apierror-permissiondenied',
1096 'api-error-unknown-warning',
1099 'file-exists-duplicate',
1100 'file-deleted-duplicate',
1101 'filename-bad-prefix',
1102 'filename-thumb-name',
1105 'protectedpagetext',
1108 'mediawiki.ForeignStructuredUpload.BookletLayout' => [
1109 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.ForeignStructuredUpload.BookletLayout',
1110 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.ForeignStructuredUpload.BookletLayout",
1113 'ForeignStructuredUpload.js',
1114 [ 'name' => 'config.json', 'config' => [ MainConfigNames
::UploadDialog
] ],
1118 'mediawiki.ForeignUpload',
1119 'mediawiki.Upload.BookletLayout',
1120 'mediawiki.widgets.CategoryMultiselectWidget',
1121 'mediawiki.widgets.DateInputWidget',
1122 'mediawiki.jqueryMsg',
1125 'mediawiki.libs.jpegmeta',
1128 'upload-foreign-cant-load-config',
1129 'upload-form-label-own-work',
1130 'upload-form-label-infoform-categories',
1131 'upload-form-label-infoform-date',
1132 'upload-form-label-own-work-message-generic-local',
1133 'upload-form-label-not-own-work-message-generic-local',
1134 'upload-form-label-not-own-work-local-generic-local',
1135 'upload-form-label-own-work-message-generic-foreign',
1136 'upload-form-label-not-own-work-message-generic-foreign',
1137 'upload-form-label-not-own-work-local-generic-foreign',
1140 'mediawiki.toc' => [
1141 'scripts' => 'resources/src/mediawiki.toc/toc.js',
1143 'resources/src/mediawiki.toc/toc.css'
1144 => [ 'media' => 'screen' ],
1150 'table-of-contents-show-button-aria-label',
1151 'table-of-contents-hide-button-aria-label'
1154 'mediawiki.Uri' => [
1155 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.Uri',
1156 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.Uri",
1159 [ 'name' => 'loose.regexp.js',
1160 'callback' => static function ( Context
$context, Config
$config ) {
1161 return MwUrlModule
::makeJsFromExtendedRegExp(
1162 file_get_contents( MW_INSTALL_PATH
. '/resources/src/mediawiki.Uri/loose.regexp' )
1165 'versionCallback' => static function () {
1166 return new FilePath( 'loose.regexp' );
1169 [ 'name' => 'strict.regexp.js',
1170 'callback' => static function ( Context
$context, Config
$config ) {
1171 return MwUrlModule
::makeJsFromExtendedRegExp(
1172 file_get_contents( MW_INSTALL_PATH
. '/resources/src/mediawiki.Uri/strict.regexp' )
1175 'versionCallback' => static function () {
1176 return new FilePath( 'strict.regexp' );
1180 'dependencies' => 'mediawiki.util',
1181 'deprecated' => '[1.43] Please use browser native URL.',
1183 'mediawiki.user' => [
1184 'scripts' => 'resources/src/mediawiki.user.js',
1188 // user.options is not directly used in mediawiki.user, but it
1189 // provides part of the mw.user API that consumers expect
1193 'mediawiki.userSuggest' => [
1194 'scripts' => 'resources/src/mediawiki.userSuggest.js',
1196 'jquery.suggestions',
1200 'mediawiki.util' => [
1201 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.util',
1202 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.util",
1205 'jquery.accessKeyLabel.js',
1206 [ 'name' => 'config.json', 'config' => [
1207 MainConfigNames
::FragmentMode
,
1208 MainConfigNames
::GenerateThumbnailOnParse
,
1209 MainConfigNames
::LoadScript
,
1210 MainConfigNames
::AutoCreateTempUser
,
1212 [ 'name' => 'portletLinkOptions.json', 'callback' => [ Skin
::class, 'getPortletLinkOptions' ] ],
1214 'name' => 'infinityValues.json',
1215 'callback' => static function () {
1216 return ExpiryDef
::INFINITY_VALS
;
1222 'web2017-polyfills',
1224 'messages' => [ 'brackets', 'word-separator' ],
1226 'mediawiki.checkboxtoggle' => [
1227 'scripts' => 'resources/src/mediawiki.checkboxtoggle.js',
1229 'mediawiki.checkboxtoggle.styles' => [
1230 'styles' => 'resources/src/mediawiki.checkboxtoggle.styles.less',
1232 'mediawiki.cookie' => [
1233 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.cookie',
1234 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.cookie",
1239 [ 'name' => 'config.json', 'config' => [
1240 'prefix' => MainConfigNames
::CookiePrefix
,
1241 'domain' => MainConfigNames
::CookieDomain
,
1242 'path' => MainConfigNames
::CookiePath
,
1243 'expires' => MainConfigNames
::CookieExpiration
,
1247 'mediawiki.experiments' => [
1248 'scripts' => 'resources/src/mediawiki.experiments.js',
1250 'mediawiki.editfont.styles' => [
1251 'styles' => 'resources/src/mediawiki.editfont.less',
1253 'mediawiki.visibleTimeout' => [
1254 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.visibleTimeout',
1255 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.visibleTimeout",
1261 /* MediaWiki Action */
1263 'mediawiki.action.edit' => [
1264 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.action.edit',
1265 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.action.edit",
1269 'watchlistExpiry.js',
1271 'styles' => 'edit.css',
1273 'mediawiki.action.edit.styles',
1274 'mediawiki.editfont.styles',
1275 'jquery.textSelection',
1277 'mediawiki.widgets.visibleLengthLimit',
1282 'mediawiki.action.edit.styles' => [
1284 'resources/src/mediawiki.action/mediawiki.action.edit.styles.less',
1285 'resources/src/mediawiki.action/mediawiki.action.edit.checkboxes.less',
1288 'mediawiki.action.edit.collapsibleFooter' => [
1289 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
1290 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.less',
1292 'jquery.makeCollapsible',
1293 'mediawiki.storage',
1296 'mediawiki.action.edit.preview' => [
1298 'resources/src/mediawiki.action/mediawiki.action.edit.preview.js',
1300 'name' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.parsedMessages.json',
1301 'callback' => static function ( MessageLocalizer
$messageLocalizer ) {
1303 'previewnote' => $messageLocalizer->msg( 'previewnote' )->parse(),
1306 // Use versionCallback to avoid calling the parser from version invalidation code.
1307 'versionCallback' => static function ( MessageLocalizer
$messageLocalizer ) {
1310 // Include the text of the message, in case the canonical translation changes
1311 $messageLocalizer->msg( 'previewnote' )->plain(),
1312 // Include the page touched time, in case the on-wiki override is invalidated
1313 Title
::makeTitle( NS_MEDIAWIKI
, 'Previewnote' )->getTouched(),
1323 'mediawiki.diff.styles',
1325 'mediawiki.page.preview',
1332 'mediawiki.action.history' => [
1333 'dependencies' => [ 'jquery.makeCollapsible' ],
1334 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
1335 'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
1338 'mediawiki.action.history.styles' => [
1339 'class' => CodexModule
::class,
1340 'codexComponents' => [ 'CdxButton' ],
1341 'codexStyleOnly' => true,
1343 'default' => 'resources/src/mediawiki.action/mediawiki.action.history.styles.less',
1347 'mediawiki.action.protect' => [
1348 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.action',
1349 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.action",
1351 'mediawiki.action.protect.js',
1352 [ 'name' => 'config.json', 'config' => [ MainConfigNames
::CascadingRestrictionLevels
] ],
1356 'mediawiki.widgets.visibleLengthLimit',
1359 'protect-unchain-permissions',
1362 'mediawiki.action.view.metadata' => [
1363 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.less',
1364 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.js',
1367 'metadata-collapse',
1369 'dependencies' => 'mediawiki.action.view.filepage',
1372 'mediawiki.editRecovery.postEdit' => [
1373 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.editRecovery',
1374 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.editRecovery",
1379 'name' => 'config.json',
1380 'config' => [ 'EditRecoveryExpiry' ],
1384 'mediawiki.editRecovery.edit' => [
1385 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.editRecovery',
1386 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.editRecovery",
1390 'LoadNotification.js',
1392 'name' => 'config.json',
1393 'config' => [ 'EditRecoveryExpiry' ],
1400 'mediawiki.widgets.AbandonEditDialog',
1401 'mediawiki.notification',
1402 'oojs-ui.styles.icons-editing-core',
1405 'edit-recovery-loaded-title',
1406 'edit-recovery-loaded-message',
1407 'edit-recovery-loaded-message-different-rev',
1408 'edit-recovery-loaded-message-different-rev-publish',
1409 'edit-recovery-loaded-message-different-rev-save',
1410 'edit-recovery-loaded-recover',
1411 'edit-recovery-loaded-discard',
1416 'mediawiki.action.view.postEdit' => [
1417 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.action',
1418 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.action",
1420 'mediawiki.action.view.postEdit.js',
1421 [ 'name' => 'config.json', 'config' => [ MainConfigNames
::EditSubmitButtonLabelPublish
] ],
1424 'mediawiki.tempUserCreated',
1425 'mediawiki.jqueryMsg',
1426 'mediawiki.notification',
1427 'mediawiki.storage',
1429 'oojs-ui.styles.icons-interactions',
1432 'postedit-confirmation-created',
1433 'postedit-confirmation-restored',
1434 'postedit-confirmation-saved',
1435 'postedit-confirmation-published',
1436 'postedit-temp-created-label',
1437 'postedit-temp-created',
1440 'mediawiki.action.view.redirect' => [
1441 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.redirect.js',
1443 'mediawiki.action.view.redirectPage' => [
1444 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.less',
1446 'mediawiki.action.edit.editWarning' => [
1447 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js',
1449 'jquery.textSelection',
1450 'mediawiki.jqueryMsg',
1451 'mediawiki.confirmCloseWindow',
1455 'mediawiki.action.view.filepage' => [
1457 'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.less' =>
1458 [ 'media' => 'print' ],
1459 'resources/src/mediawiki.action/mediawiki.action.view.filepage.less',
1463 // This bundles small stylesheets (<2KB) that:
1464 // - .. are not loaded when viewing or editing content pages.
1465 // - .. style the rendering of other wikipage actions and/or other namespaces.
1466 'mediawiki.action.styles' => [
1468 'resources/src/mediawiki.action.styles/styles.less',
1469 'resources/src/mediawiki.action.styles/categoryPage.less',
1473 /* MediaWiki Language */
1475 'mediawiki.language' => [
1476 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.language',
1477 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.language",
1479 'mediawiki.language.init.js',
1480 'mediawiki.language.js',
1481 'mediawiki.language.numbers.js',
1482 'mediawiki.language.fallback.js',
1484 'name' => 'mediawiki.language.config.js',
1485 'callback' => static function ( Context
$context, Config
$config ) {
1486 $langCode = $context->getLanguage();
1487 $language = MediaWikiServices
::getInstance()->getLanguageFactory()
1488 ->getLanguage( $langCode );
1489 return 'mw.language.setData('
1490 . $context->encodeJson( $langCode ) . ','
1491 . $context->encodeJson( $language->getJsData() )
1496 'languageScripts' => [
1497 'bs' => 'languages/bs.js',
1498 'dsb' => 'languages/dsb.js',
1499 'fi' => 'languages/fi.js',
1500 'ga' => 'languages/ga.js',
1501 'hsb' => 'languages/hsb.js',
1502 'hu' => 'languages/hu.js',
1503 'hy' => 'languages/hy.js',
1504 'la' => 'languages/la.js',
1505 'os' => 'languages/os.js',
1506 'sl' => 'languages/sl.js',
1518 'mediawiki.cldr' => [
1519 'scripts' => 'resources/src/mediawiki.cldr/index.js',
1521 'mediawiki.libs.pluralruleparser',
1525 'mediawiki.libs.pluralruleparser' => [
1527 'resources/lib/CLDRPluralRuleParser/CLDRPluralRuleParser.js',
1528 'resources/src/mediawiki.libs.pluralruleparser/export.js',
1532 'mediawiki.jqueryMsg' => [
1533 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.jqueryMsg',
1534 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.jqueryMsg",
1536 'mediawiki.jqueryMsg.js',
1537 [ 'name' => 'parserDefaults.json', 'callback' => static function (
1538 Context
$context, Config
$config
1540 $tagData = Sanitizer
::getRecognizedTagData();
1541 $allowedHtmlElements = array_merge(
1542 array_keys( $tagData['htmlpairs'] ),
1544 array_keys( $tagData['htmlsingle'] ),
1545 array_keys( $tagData['htmlsingleonly'] )
1550 'SITENAME' => $config->get( MainConfigNames
::Sitename
),
1552 ( new RL\
HookRunner( MediaWikiServices
::getInstance()->getHookContainer() ) )
1553 ->onResourceLoaderJqueryMsgModuleMagicWords( $context, $magicWords );
1555 // if changing this structure, please update the static JSON example file
1556 // at resources/src/mediawiki.jqueryMsg
1558 'allowedHtmlElements' => $allowedHtmlElements,
1559 'magic' => $magicWords,
1565 'mediawiki.language',
1572 'mediawiki.language.months' => [
1573 'scripts' => 'resources/src/mediawiki.language.months/months.js',
1574 'dependencies' => 'mediawiki.language',
1575 'messages' => array_merge(
1576 Language
::MONTH_MESSAGES
,
1577 Language
::MONTH_GENITIVE_MESSAGES
,
1578 Language
::MONTH_ABBREVIATED_MESSAGES
1582 'mediawiki.language.names' => [
1583 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.language.names',
1584 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.language.names",
1587 [ 'name' => 'names.json', 'callback' => static function ( Context
$context ) {
1588 return MediaWikiServices
::getInstance()
1589 ->getLanguageNameUtils()
1590 ->getLanguageNames( $context->getLanguage(), LanguageNameUtils
::ALL
);
1593 'dependencies' => 'mediawiki.language',
1596 'mediawiki.language.specialCharacters' => [
1597 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.language.specialCharacters',
1598 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.language.specialCharacters",
1600 'specialCharacters.js',
1601 'specialcharacters.json'
1603 'dependencies' => 'mediawiki.language',
1605 'special-characters-group-latin',
1606 'special-characters-group-latinextended',
1607 'special-characters-group-ipa',
1608 'special-characters-group-symbols',
1609 'special-characters-group-greek',
1610 'special-characters-group-greekextended',
1611 'special-characters-group-cyrillic',
1612 'special-characters-group-arabic',
1613 'special-characters-group-arabicextended',
1614 'special-characters-group-persian',
1615 'special-characters-group-hebrew',
1616 'special-characters-group-bangla',
1617 'special-characters-group-tamil',
1618 'special-characters-group-telugu',
1619 'special-characters-group-sinhala',
1620 'special-characters-group-devanagari',
1621 'special-characters-group-gujarati',
1622 'special-characters-group-thai',
1623 'special-characters-group-lao',
1624 'special-characters-group-khmer',
1625 'special-characters-group-canadianaboriginal',
1626 'special-characters-group-runes',
1627 'special-characters-title-endash',
1628 'special-characters-title-emdash',
1629 'special-characters-title-minus'
1633 /* MediaWiki Libs */
1635 'mediawiki.libs.jpegmeta' => [
1637 'resources/src/mediawiki.libs.jpegmeta/jpegmeta.js',
1638 'resources/src/mediawiki.libs.jpegmeta/export.js',
1642 /* MediaWiki Page */
1644 'mediawiki.page.gallery' => [
1645 'scripts' => 'resources/src/mediawiki.page.gallery.js',
1647 'mediawiki.page.gallery.styles',
1651 'mediawiki.page.gallery.styles' => [
1653 'resources/src/mediawiki.page.gallery.styles/gallery.less',
1654 'resources/src/mediawiki.page.gallery.styles/print.less' => [ 'media' => 'print' ],
1655 ] +
( !$GLOBALS['wgParserEnableLegacyMediaDOM'] ||
$GLOBALS['wgUseContentMediaStyles'] ?
1656 [ 'resources/src/mediawiki.page.gallery.styles/content.media.less' => [ 'media' => 'all' ] ] : [] ),
1658 'mediawiki.page.gallery.slideshow' => [
1659 'scripts' => 'resources/src/mediawiki.page.gallery.slideshow.js',
1666 'oojs-ui.styles.icons-media',
1667 'oojs-ui.styles.icons-movement'
1670 'gallery-slideshow-toggle'
1673 'mediawiki.page.ready' => [
1674 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.page.ready',
1675 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.page.ready",
1680 'teleportTarget.js',
1681 'toggleAllCollapsibles.js',
1682 [ 'name' => 'config.json', 'callback' => static function (
1688 'collapsible' => true,
1690 'selectorLogoutLink' => '#pt-logout a[data-mw="interface"]'
1693 ( new HookRunner( MediaWikiServices
::getInstance()->getHookContainer() ) )
1694 ->onSkinPageReadyConfig( $context, $readyConfig );
1695 return $readyConfig;
1704 'collapsible-collapse-all-text',
1705 'collapsible-collapse-all-tooltip',
1706 'collapsible-expand-all-text',
1707 'collapsible-expand-all-tooltip',
1708 'logging-out-notify'
1711 'default' => 'teleportTarget.less'
1714 'mediawiki.page.watch.ajax' => [
1715 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.page.watch.ajax',
1716 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.page.watch.ajax",
1719 [ 'name' => 'config.json', 'config' => [ MainConfigNames
::WatchlistExpiry
] ],
1726 'mediawiki.jqueryMsg',
1734 'tooltip-ca-unwatch',
1735 'tooltip-ca-unwatch-expiring',
1736 'tooltip-ca-unwatch-expiring-hours',
1738 'addedwatchtext-talk',
1740 'removedwatchtext-talk',
1743 'mediawiki.page.preview' => [
1744 'localBasePath' => MW_INSTALL_PATH
. '/resources/src',
1745 'remoteBasePath' => "$wgResourceBasePath/resources/src",
1746 "class" => CodexModule
::class,
1747 "codexComponents" => [
1750 "codexStyleOnly" => true,
1752 'mediawiki.page.preview.js',
1754 'styles' => 'mediawiki.page.preview.css',
1758 'mediawiki.diff.styles',
1759 'mediawiki.jqueryMsg',
1760 'mediawiki.language',
1763 'jquery.makeCollapsible',
1764 'jquery.textSelection',
1772 'templatesusedpreview',
1775 'template-semiprotected',
1776 'template-protected',
1777 'restriction-level-sysop',
1778 'restriction-level-autoconfirmed',
1786 'mediawiki.page.image.pagination' => [
1787 'scripts' => 'resources/src/mediawiki.page.image.pagination.js',
1793 'mediawiki.page.media' => [
1794 'scripts' => 'resources/src/mediawiki.page.media.js',
1797 /* MediaWiki Special pages */
1799 'mediawiki.rcfilters.filters.base.styles' => [
1801 'default' => 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less',
1804 'mediawiki.rcfilters.highlightCircles.seenunseen.styles' => [
1807 'resources/src/mediawiki.rcfilters/' .
1808 'styles/mw.rcfilters.ui.ChangesListWrapperWidget.highlightCircles.seenunseen.less',
1812 // TODO consider renaming to mediawiki.rcfilters.filters following merge of
1813 // mediawiki.rcfilters.filters.dm into mediawiki.rcfilters.filters.ui, see T256836
1814 'mediawiki.rcfilters.filters.ui' => [
1815 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.rcfilters',
1816 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.rcfilters",
1822 'dm/ChangesListViewModel.js',
1823 'dm/FilterGroup.js',
1825 'dm/FiltersViewModel.js',
1827 'dm/SavedQueriesModel.js',
1828 'dm/SavedQueryItemModel.js',
1829 // TODO consider merging this with the config.json for the ui code
1830 [ 'name' => 'dmConfig.json', 'config' =>
1831 [ MainConfigNames
::StructuredChangeFiltersLiveUpdatePollingRate
] ],
1832 'HighlightColors.js',
1833 'ui/CheckboxInputWidget.js',
1834 'ui/FilterTagMultiselectWidget.js',
1835 'ui/ItemMenuOptionWidget.js',
1836 'ui/FilterMenuOptionWidget.js',
1837 'ui/FilterMenuSectionOptionWidget.js',
1838 'ui/TagItemWidget.js',
1839 'ui/FilterTagItemWidget.js',
1840 'ui/FilterMenuHeaderWidget.js',
1841 'ui/MenuSelectWidget.js',
1842 'ui/MainWrapperWidget.js',
1843 'ui/ViewSwitchWidget.js',
1844 'ui/ValuePickerWidget.js',
1845 'ui/ChangesLimitPopupWidget.js',
1846 'ui/ChangesLimitAndDateButtonWidget.js',
1847 'ui/DatePopupWidget.js',
1848 'ui/FilterWrapperWidget.js',
1849 'ui/ChangesListWrapperWidget.js',
1850 'ui/SavedLinksListWidget.js',
1851 'ui/SavedLinksListItemWidget.js',
1852 'ui/SaveFiltersPopupButtonWidget.js',
1853 'ui/FormWrapperWidget.js',
1854 'ui/FilterItemHighlightButton.js',
1855 'ui/HighlightPopupWidget.js',
1856 'ui/HighlightColorPickerWidget.js',
1857 'ui/LiveUpdateButtonWidget.js',
1858 'ui/MarkSeenButtonWidget.js',
1859 'ui/RcTopSectionWidget.js',
1860 'ui/RclTopSectionWidget.js',
1861 'ui/RclTargetPageWidget.js',
1862 'ui/RclToOrFromWidget.js',
1863 'ui/WatchlistTopSectionWidget.js',
1864 [ 'name' => 'config.json',
1865 'versionCallback' => [ ChangesListSpecialPage
::class, 'getRcFiltersConfigSummary' ],
1866 'callback' => [ ChangesListSpecialPage
::class, 'getRcFiltersConfigVars' ],
1870 'styles/mw.rcfilters.mixins.less',
1871 'styles/mw.rcfilters.variables.less',
1872 'styles/mw.rcfilters.ui.less',
1873 'styles/mw.rcfilters.ui.Overlay.less',
1874 'styles/mw.rcfilters.ui.FilterTagMultiselectWidget.less',
1875 'styles/mw.rcfilters.ui.ItemMenuOptionWidget.less',
1876 'styles/mw.rcfilters.ui.FilterMenuOptionWidget.less',
1877 'styles/mw.rcfilters.ui.FilterMenuSectionOptionWidget.less',
1878 'styles/mw.rcfilters.ui.TagItemWidget.less',
1879 'styles/mw.rcfilters.ui.FilterMenuHeaderWidget.less',
1880 'styles/mw.rcfilters.ui.MenuSelectWidget.less',
1881 'styles/mw.rcfilters.ui.ViewSwitchWidget.less',
1882 'styles/mw.rcfilters.ui.ValuePickerWidget.less',
1883 'styles/mw.rcfilters.ui.ChangesLimitPopupWidget.less',
1884 'styles/mw.rcfilters.ui.DatePopupWidget.less',
1885 'styles/mw.rcfilters.ui.FilterWrapperWidget.less',
1886 'styles/mw.rcfilters.ui.ChangesListWrapperWidget.less',
1887 'styles/mw.rcfilters.ui.HighlightColorPickerWidget.less',
1888 'styles/mw.rcfilters.ui.FilterItemHighlightButton.less',
1889 'styles/mw.rcfilters.ui.SavedLinksListWidget.less',
1890 'styles/mw.rcfilters.ui.SavedLinksListItemWidget.less',
1891 'styles/mw.rcfilters.ui.SaveFiltersPopupButtonWidget.less',
1892 'styles/mw.rcfilters.ui.LiveUpdateButtonWidget.less',
1893 'styles/mw.rcfilters.ui.RcTopSectionWidget.less',
1894 'styles/mw.rcfilters.ui.RclToOrFromWidget.less',
1895 'styles/mw.rcfilters.ui.RclTargetPageWidget.less',
1896 'styles/mw.rcfilters.ui.WatchlistTopSectionWidget.less',
1897 'styles/mw.rcfilters.ui.FilterTagMultiselectWidgetMobile.less'
1901 'styles/mw.rcfilters.ui.CapsuleItemWidget.monobook.less',
1902 'styles/mw.rcfilters.ui.FilterMenuOptionWidget.monobook.less',
1906 'rcfilters-tag-remove',
1907 'rcfilters-activefilters',
1908 'rcfilters-activefilters-hide',
1909 'rcfilters-activefilters-show',
1910 'rcfilters-activefilters-hide-tooltip',
1911 'rcfilters-activefilters-show-tooltip',
1912 'rcfilters-advancedfilters',
1913 'rcfilters-group-results-by-page',
1914 'rcfilters-limit-title',
1915 'rcfilters-limit-and-date-label',
1916 'rcfilters-limit-and-date-popup-dialog-aria-label',
1917 'rcfilters-date-popup-title',
1918 'rcfilters-days-title',
1919 'rcfilters-hours-title',
1920 'rcfilters-days-show-days',
1921 'rcfilters-days-show-hours',
1922 'rcfilters-highlighted-filters-list',
1923 'rcfilters-quickfilters',
1924 'rcfilters-quickfilters-placeholder-title',
1925 'rcfilters-quickfilters-placeholder-description',
1926 'rcfilters-savedqueries-defaultlabel',
1927 'rcfilters-savedqueries-rename',
1928 'rcfilters-savedqueries-setdefault',
1929 'rcfilters-savedqueries-unsetdefault',
1930 'rcfilters-savedqueries-remove',
1931 'rcfilters-savedqueries-new-name-label',
1932 'rcfilters-savedqueries-new-name-placeholder',
1933 'rcfilters-savedqueries-add-new-title',
1934 'rcfilters-savedqueries-already-saved',
1935 'rcfilters-savedqueries-apply-label',
1936 'rcfilters-savedqueries-cancel-label',
1937 'rcfilters-restore-default-filters',
1938 'rcfilters-clear-all-filters',
1939 'rcfilters-show-new-changes',
1940 'rcfilters-search-placeholder',
1941 'rcfilters-search-placeholder-mobile',
1942 'rcfilters-invalid-filter',
1943 'rcfilters-empty-filter',
1944 'rcfilters-filterlist-title',
1945 'rcfilters-filterlist-noresults',
1946 'rcfilters-filterlist-whatsthis',
1947 'rcfilters-highlightbutton-title',
1948 'rcfilters-highlightmenu-title',
1949 'rcfilters-highlightmenu-help',
1950 'rcfilters-noresults-conflict',
1951 'rcfilters-state-message-subset',
1952 'rcfilters-state-message-fullcoverage',
1953 'rcfilters-filter-excluded',
1954 'rcfilters-tag-help',
1955 'rcfilters-tag-prefix-namespace',
1956 'rcfilters-tag-prefix-namespace-inverted',
1957 'rcfilters-tag-prefix-tags',
1958 'rcfilters-tag-prefix-tags-inverted',
1959 'rcfilters-exclude-button-off',
1960 'rcfilters-exclude-button-on',
1961 'rcfilters-view-tags',
1962 'rcfilters-view-namespaces-tooltip',
1963 'rcfilters-view-tags-tooltip',
1964 'rcfilters-view-return-to-default-tooltip',
1965 'rcfilters-view-tags-help-icon-tooltip',
1966 'rcfilters-liveupdates-button',
1967 'rcfilters-liveupdates-button-title-on',
1968 'rcfilters-liveupdates-button-title-off',
1969 'rcfilters-watchlist-markseen-button',
1970 'rcfilters-watchlist-edit-watchlist-button',
1971 'rcfilters-other-review-tools',
1972 'rcfilters-filter-showlinkedfrom-label',
1973 'rcfilters-filter-showlinkedfrom-option-label',
1974 'rcfilters-filter-showlinkedto-label',
1975 'rcfilters-filter-showlinkedto-option-label',
1976 'rcfilters-target-page-placeholder',
1977 'rcfilters-allcontents-label',
1978 'rcfilters-alldiscussions-label',
1983 'recentchanges-noresult',
1984 'recentchanges-timeout',
1985 'recentchanges-network',
1986 'recentchanges-notargetpage',
1991 'web2017-polyfills',
1992 'jquery.makeCollapsible',
1995 'mediawiki.jqueryMsg',
1996 'mediawiki.language',
2000 'mediawiki.widgets',
2003 'oojs-ui.styles.icons-content',
2004 'oojs-ui.styles.icons-moderation',
2005 'oojs-ui.styles.icons-editing-core',
2006 'oojs-ui.styles.icons-editing-styling',
2007 'oojs-ui.styles.icons-interactions',
2008 'oojs-ui.styles.icons-layout',
2009 'oojs-ui.styles.icons-media',
2010 'oojs-ui-windows.icons',
2014 'mediawiki.interface.helpers.styles' => [
2015 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.interface.helpers.styles',
2016 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.interface.helpers.styles",
2017 'class' => LessVarFileModule
::class,
2020 'parentheses-start',
2022 'semicolon-separator',
2028 'linker.styles.less',
2031 'default' => 'skinStyles.less',
2034 'mediawiki.special' => [
2036 'resources/src/mediawiki.special/special.less',
2037 'resources/src/mediawiki.special/apisandbox.css',
2038 'resources/src/mediawiki.special/comparepages.less',
2039 'resources/src/mediawiki.special/contributions.less',
2040 'resources/src/mediawiki.special/edittags.css',
2041 'resources/src/mediawiki.special/movePage.css',
2042 'resources/src/mediawiki.special/newpages.less',
2043 'resources/src/mediawiki.special/pagesWithProp.css',
2044 'resources/src/mediawiki.special/upload.css',
2045 'resources/src/mediawiki.special/userrights.css',
2046 'resources/src/mediawiki.special/watchlist.css',
2047 'resources/src/mediawiki.special/whatlinkshere.less',
2048 'resources/src/mediawiki.special/block.less',
2049 'resources/src/mediawiki.special/listFiles.less',
2050 'resources/src/mediawiki.special/blocklist.less',
2051 'resources/src/mediawiki.special/version.less',
2052 'resources/src/mediawiki.special/contribute.less',
2055 'mediawiki.special.apisandbox' => [
2056 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.special.apisandbox',
2057 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.special.apisandbox",
2058 'styles' => 'apisandbox.less',
2062 'ApiSandboxLayout.js',
2063 'OptionalParamWidget.js',
2064 'ParamLabelWidget.js',
2065 'BooleanToggleSwitchParamWidget.js',
2066 'DateTimeParamWidget.js',
2067 'LimitParamWidget.js',
2068 'PasswordParamWidget.js',
2069 'UploadSelectFileParamWidget.js',
2070 'TextParamMixin.js',
2076 'mediawiki.jqueryMsg',
2079 'oojs-ui.styles.icons-content',
2080 'oojs-ui.styles.icons-editing-advanced',
2081 'oojs-ui.styles.icons-interactions',
2082 'oojs-ui.styles.icons-moderation',
2083 'mediawiki.widgets',
2084 'mediawiki.widgets.datetime',
2085 'mediawiki.widgets.TitlesMultiselectWidget',
2086 'jquery.makeCollapsible',
2091 'apisandbox-submit',
2094 'apisandbox-loading',
2095 'apisandbox-load-error',
2096 'apisandbox-fetch-token',
2097 'apisandbox-add-multi',
2098 'apisandbox-helpurls',
2099 'apisandbox-examples',
2100 'apisandbox-dynamic-parameters',
2101 'apisandbox-dynamic-parameters-add-label',
2102 'apisandbox-dynamic-parameters-add-placeholder',
2103 'apisandbox-dynamic-error-exists',
2104 'apisandbox-templated-parameter-reason',
2105 'apisandbox-deprecated-parameters',
2106 'apisandbox-no-parameters',
2107 'paramvalidator-help-type-number-min',
2108 'paramvalidator-help-type-number-max',
2109 'paramvalidator-help-type-number-minmax',
2110 'api-help-param-deprecated',
2111 'api-help-param-deprecated-label',
2112 'api-help-param-internal',
2113 'api-help-param-internal-label',
2114 'api-help-param-multi-separate',
2115 'paramvalidator-help-multi-max',
2116 'paramvalidator-help-type-string-maxbytes',
2117 'paramvalidator-help-type-string-maxchars',
2118 'apisandbox-submit-invalid-fields-title',
2119 'apisandbox-submit-invalid-fields-message',
2120 'apisandbox-results',
2121 'apisandbox-sending-request',
2122 'apisandbox-loading-results',
2123 'apisandbox-results-error',
2124 'apisandbox-results-login-suppressed',
2125 'apisandbox-request-selectformat-label',
2126 'apisandbox-request-format-url-label',
2127 'apisandbox-request-url-label',
2128 'apisandbox-request-format-json-label',
2129 'apisandbox-request-json-label',
2130 'apisandbox-request-format-php-label',
2131 'apisandbox-request-php-label',
2132 'apisandbox-request-time',
2133 'apisandbox-request-post',
2134 'apisandbox-request-formdata',
2135 'apisandbox-results-fixtoken',
2136 'apisandbox-results-fixtoken-fail',
2137 'apisandbox-alert-page',
2138 'apisandbox-alert-field',
2139 'apisandbox-continue',
2140 'apisandbox-continue-clear',
2141 'apisandbox-continue-help',
2142 'apisandbox-param-limit',
2143 'apisandbox-multivalue-all-namespaces',
2144 'apisandbox-multivalue-all-values',
2145 'api-format-prettyprint-status',
2152 'mediawiki.special.restsandbox.styles' => [
2154 'resources/src/mediawiki.special.restsandbox/restsandbox.css',
2157 'mediawiki.special.restsandbox' => [
2158 'localBasePath' => MW_INSTALL_PATH
. '/resources',
2159 'remoteBasePath' => "$wgResourceBasePath/resources",
2161 "src/mediawiki.special.restsandbox/restsandbox.js",
2162 "lib/swagger-ui/swagger-ui-bundle.js",
2163 "lib/swagger-ui/swagger-ui-standalone-preset.js",
2165 'name' => 'src/mediawiki.special.restsandbox/config.json',
2166 'config' => [ 'RestSandboxSpecs' ],
2170 'lib/swagger-ui/swagger-ui.css',
2173 'mediawiki.special.restsandbox.styles'
2176 'mediawiki.special.block' => [
2177 'localBasePath' => MW_INSTALL_PATH
. '/resources/src',
2178 'remoteBasePath' => "$wgResourceBasePath/resources/src",
2180 'mediawiki.special.block.js',
2184 'oojs-ui.styles.icons-editing-core',
2185 'oojs-ui.styles.icons-editing-advanced',
2186 'mediawiki.widgets.DateInputWidget',
2187 'mediawiki.widgets.SelectWithInputWidget',
2188 'mediawiki.widgets.NamespacesMultiselectWidget',
2189 'mediawiki.widgets.TitlesMultiselectWidget',
2190 'mediawiki.widgets.UserInputWidget',
2192 'mediawiki.htmlform',
2196 // This bundles various small (under 5 KB?) JavaScript files that:
2197 // - .. are never loaded when viewing or editing wiki pages.
2198 // - .. are only used by logged-in users.
2199 // - .. depend on oojs-ui-core.
2200 // - .. contain UI initialisation code (e.g. no public module exports, because
2201 // requiring or depending on this bundle is awkward)
2202 'mediawiki.misc-authed-ooui' => [
2203 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.misc-authed-ooui',
2204 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.misc-authed-ooui",
2207 'special.changecredentials.js',
2208 'special.import.js',
2209 'special.movePage.js',
2211 'special.pageLanguage.js',
2212 'special.revisionDelete.js',
2213 'special.undelete.js',
2214 'special.undelete.loadMoreRevisions.js',
2220 'mediawiki.htmlform.ooui',
2221 'mediawiki.widgets.visibleLengthLimit',
2222 'mediawiki.widgets',
2226 // This bundles various small (under 2 KB?) JavaScript files that:
2227 // - .. are only used by logged-in users when a non-default preference was enabled.
2228 // - .. may be loaded in the critical path for those users on page views.
2229 // - .. do NOT depend on OOUI.
2230 // - .. contain only UI initialisation code (e.g. no public exports)
2231 'mediawiki.misc-authed-pref' => [
2232 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.misc-authed-pref',
2233 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.misc-authed-pref",
2235 'rightClickEdit.js',
2242 // This bundles various small scripts that relate to moderation or curation
2243 // in some way, and:
2244 // - .. only have an effect for a privileged subset of logged-in users.
2245 // - .. may be loaded in the critical path on page views.
2246 // - .. do NOT depend on OOUI or other "large" modules.
2247 // - .. contain only UI initialisation code (e.g. no public exports)
2248 'mediawiki.misc-authed-curate' => [
2249 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.misc-authed-curate',
2250 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.misc-authed-curate",
2258 'jquery.lengthLimit',
2264 'jquery.confirmable',
2267 'markedaspatrollednotify',
2268 'rollback-confirmation-confirm',
2269 'rollback-confirmation-yes',
2270 'rollback-confirmation-no',
2271 'tags-edit-chosen-placeholder',
2272 'tags-edit-chosen-no-results',
2275 'mediawiki.special.block.codex' => [
2277 'resources/src/mediawiki.special.block/init.js',
2278 'resources/src/mediawiki.special.block/util.js',
2279 'resources/src/mediawiki.special.block/stores/block.js',
2280 'resources/src/mediawiki.special.block/components/AdditionalDetailsField.vue',
2281 'resources/src/mediawiki.special.block/components/BlockDetailsField.vue',
2282 'resources/src/mediawiki.special.block/components/BlockTypeField.vue',
2283 'resources/src/mediawiki.special.block/components/ConfirmationDialog.vue',
2284 'resources/src/mediawiki.special.block/components/ExpiryField.vue',
2285 'resources/src/mediawiki.special.block/components/NamespacesField.vue',
2286 'resources/src/mediawiki.special.block/components/PagesField.vue',
2287 'resources/src/mediawiki.special.block/components/ReasonField.vue',
2288 'resources/src/mediawiki.special.block/components/BlockLog.vue',
2289 'resources/src/mediawiki.special.block/components/UserLookup.vue',
2290 'resources/src/mediawiki.special.block/components/ValidatingTextInput.js',
2291 'resources/src/mediawiki.special.block/SpecialBlock.vue',
2293 'name' => 'resources/src/mediawiki.special.block/icons.json',
2294 'callback' => 'MediaWiki\\ResourceLoader\\CodexModule::getIcons',
2295 'callbackParam' => [
2310 'mediawiki.jqueryMsg',
2315 'block-change-visibility',
2317 'block-confirm-yes',
2320 'block-details-description',
2322 'block-expiry-custom',
2323 'block-expiry-custom-days',
2324 'block-expiry-custom-hours',
2325 'block-expiry-custom-minutes',
2326 'block-expiry-custom-months',
2327 'block-expiry-custom-weeks',
2328 'block-expiry-custom-years',
2329 'block-expiry-datetime',
2330 'block-expiry-preset',
2331 'block-expiry-preset-placeholder',
2334 'block-item-remove',
2335 'block-log-flags-angry-autoblock',
2336 'block-log-flags-anononly',
2337 'block-log-flags-hiddenname',
2338 'block-log-flags-noautoblock',
2339 'block-log-flags-nocreate',
2340 'block-log-flags-noemail',
2341 'block-log-flags-nousertalk',
2342 'block-namespaces-placeholder',
2344 'block-pages-placeholder',
2346 'block-reason-help',
2347 'block-reason-other',
2350 'block-target-placeholder',
2352 'block-user-active-blocks',
2353 'block-user-label-count-exceeds-limit',
2354 'block-user-no-active-blocks',
2355 'block-user-no-previous-blocks',
2356 'block-user-no-suppressed-blocks',
2357 'block-user-previous-blocks',
2358 'block-user-suppressed-blocks',
2359 'blockipsuccesssub',
2365 'blocklist-timestamp',
2366 'blocklist-type-header',
2367 'blocklist-type-opt-partial',
2368 'blocklist-type-opt-sitewide',
2371 'htmlform-optional-flag',
2372 'htmlform-selectorother-other',
2374 'ipb-action-create',
2376 'ipb-action-upload',
2378 'ipb-blocklist-contribs',
2381 'ipb-confirmaction',
2382 'ipb-confirmhideuser',
2383 'ipb-disableusertalk',
2384 'ipb-edit-dropdown',
2386 'block-multiblocks-new-feature',
2387 'ipb-namespaces-label',
2391 'ipb-sitewide-help',
2392 'ipb_expiry_invalid',
2395 'ipbenableautoblock',
2399 'log-action-filter-block-block',
2400 'log-action-filter-block-reblock',
2401 'log-action-filter-block-unblock',
2404 'parentheses-start',
2407 'userlink-with-contribs',
2410 'mediawiki.protectionIndicators.styles' => [
2411 'styles' => 'resources/src/mediawiki.protectionIndicators/styles.less',
2413 'mediawiki.special.changeslist' => [
2415 'resources/src/mediawiki.special.changeslist/changeslist.less'
2418 'default' => 'resources/src/mediawiki.special.changeslist/default.less',
2421 'mediawiki.special.changeslist.watchlistexpiry' => [
2422 'scripts' => 'resources/src/mediawiki.special.changeslist.watchlistexpiry/watchlistexpiry.js',
2423 'styles' => 'resources/src/mediawiki.special.changeslist.watchlistexpiry/watchlistexpiry.less',
2426 'watchlist-expiry-days-left',
2427 'watchlist-expiry-hours-left',
2430 'mediawiki.special',
2431 'oojs-ui.styles.icons-interactions'
2434 'mediawiki.special.changeslist.enhanced' => [
2435 'styles' => 'resources/src/mediawiki.special.changeslist.enhanced.less',
2437 'mediawiki.special.changeslist.legend' => [
2438 'styles' => 'resources/src/mediawiki.special.changeslist.legend.less',
2440 'mediawiki.special.changeslist.legend.js' => [
2441 'scripts' => 'resources/src/mediawiki.special.changeslist.legend.js',
2446 'mediawiki.special.contributions' => [
2447 'scripts' => 'resources/src/mediawiki.special.contributions.js',
2449 'jquery.makeCollapsible',
2451 'mediawiki.widgets.DateInputWidget',
2452 'mediawiki.jqueryMsg',
2455 'mediawiki.special.import.styles.ooui' => [
2456 'styles' => 'resources/src/mediawiki.special.import.styles.ooui.less',
2458 'mediawiki.special.interwiki' => [
2459 'styles' => 'resources/src/mediawiki.special.interwiki.less',
2461 'mediawiki.special.changecredentials' => [
2462 'scripts' => [ 'resources/src/mediawiki.special.changecredentails.js' ],
2464 'mediawiki.special.changeemail' => [
2465 'scripts' => [ 'resources/src/mediawiki.special.changeemail.js' ],
2468 'mediawiki.special.preferences.ooui' => [
2469 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.special.preferences.ooui',
2470 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.special.preferences.ooui",
2474 'convertmessagebox.js',
2481 'name' => 'layout.js',
2482 'callback' => static function ( Context
$context ) {
2483 $skinName = $context->getSkin();
2484 ( new HookRunner( MediaWikiServices
::getInstance()->getHookContainer() ) )
2485 ->onPreferencesGetLayout( $useMobileLayout, $skinName );
2486 $file = $useMobileLayout ?
'mobile.js' : 'tabs.js';
2487 return new FilePath( $file );
2492 'prefs-tabs-navigation-hint',
2493 'prefs-sections-navigation-hint',
2494 'prefs-signature-highlight-error',
2497 'searchprefs-noresults',
2498 'searchprefs-results',
2501 'mediawiki.language',
2502 'mediawiki.confirmCloseWindow',
2503 'mediawiki.notification.convertmessagebox',
2504 'mediawiki.storage',
2508 'mediawiki.widgets.SelectWithInputWidget',
2509 'mediawiki.editfont.styles',
2510 'mediawiki.widgets.visibleLengthLimit',
2513 'mediawiki.special.preferences.styles.ooui' => [
2514 'styles' => 'resources/src/mediawiki.special.preferences.styles.ooui.less',
2516 'mediawiki.special.editrecovery.styles' => [
2517 'styles' => 'resources/src/mediawiki.special.editrecovery/styles.less',
2519 'mediawiki.special.editrecovery' => [
2521 'resources/src/mediawiki.special.editrecovery/init.js',
2522 'resources/src/mediawiki.special.editrecovery/SpecialEditRecovery.vue',
2523 'resources/src/mediawiki.editRecovery/storage.js',
2525 'name' => 'resources/src/mediawiki.editRecovery/config.json',
2526 'config' => [ 'EditRecoveryExpiry' ],
2534 'parentheses-start',
2537 'edit-recovery-special-intro',
2538 'edit-recovery-special-intro-empty',
2539 'edit-recovery-special-view',
2540 'edit-recovery-special-edit',
2541 'edit-recovery-special-delete',
2542 'edit-recovery-special-recovered-on',
2543 'edit-recovery-special-recovered-on-tooltip',
2546 'mediawiki.special.search' => [
2547 'scripts' => 'resources/src/mediawiki.special.search/search.js',
2548 'dependencies' => 'mediawiki.widgets.SearchInputWidget',
2550 'mediawiki.special.search.commonsInterwikiWidget' => [
2551 'scripts' => 'resources/src/mediawiki.special.search.commonsInterwikiWidget.js',
2558 'search-interwiki-more-results',
2559 'searchprofile-images'
2562 'mediawiki.special.search.interwikiwidget.styles' => [
2563 'styles' => 'resources/src/mediawiki.special.search.interwikiwidget.styles.less',
2565 'mediawiki.special.search.styles' => [
2566 'styles' => 'resources/src/mediawiki.special.search.styles.less',
2568 'mediawiki.special.unwatchedPages' => [
2569 'scripts' => 'resources/src/mediawiki.special.unwatchedPages/unwatchedPages.js',
2570 'styles' => 'resources/src/mediawiki.special.unwatchedPages/unwatchedPages.css',
2572 'addedwatchtext-short',
2573 'removedwatchtext-short',
2585 'mediawiki.special.upload' => [
2587 'thumbnail.html' => 'resources/src/mediawiki.special.upload/templates/thumbnail.html',
2589 'scripts' => 'resources/src/mediawiki.special.upload/upload.js',
2599 'mediawiki.special',
2601 'mediawiki.jqueryMsg',
2603 'mediawiki.libs.jpegmeta',
2606 'mediawiki.confirmCloseWindow',
2610 'mediawiki.authenticationPopup' => [
2612 'resources/src/mediawiki.authenticationPopup/index.js',
2613 'resources/src/mediawiki.authenticationPopup/constants.js',
2614 'resources/src/mediawiki.authenticationPopup/AuthPopup.js',
2615 'resources/src/mediawiki.authenticationPopup/AuthMessageDialog.js',
2616 'resources/src/mediawiki.authenticationPopup/AuthPopupError.js',
2618 'name' => 'resources/src/mediawiki.authenticationPopup/config.json',
2619 'callback' => static function ( Context
$context ) {
2620 $specials = MediaWikiServices
::getInstance()->getSpecialPageFactory();
2622 'specialPageNames' => [
2623 'UserLogin' => $specials->getLocalNameFor( 'Userlogin' ),
2624 'AuthenticationPopupSuccess' => $specials->getLocalNameFor( 'AuthenticationPopupSuccess' ),
2631 'userlogin-authpopup-loggingin-title',
2632 'userlogin-authpopup-loggingin-body',
2633 'userlogin-authpopup-loggingin-body-link',
2634 'userlogin-authpopup-retry',
2635 'userlogin-authpopup-cancel',
2643 'mediawiki.authenticationPopup.success' => [
2645 'resources/src/mediawiki.authenticationPopup/success.js',
2646 'resources/src/mediawiki.authenticationPopup/constants.js',
2649 'mediawiki.special.userlogin.common.styles' => [
2651 'resources/src/mediawiki.special.userlogin.common.styles/userlogin.less',
2654 'default' => 'resources/src/mediawiki.special.userlogin.common.styles/skinStyles.less',
2657 'mediawiki.special.userlogin.login.styles' => [
2659 'default' => 'resources/src/mediawiki.special.userlogin.login.styles/login.less',
2662 'mediawiki.special.userlogin.authentication-popup' => [
2663 'styles' => 'resources/src/mediawiki.special.userlogin.common.styles/authentication-popup.less',
2665 'mediawiki.special.createaccount' => [
2666 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.special.createaccount',
2667 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.special.createaccount",
2670 'HtmlformChecker.js'
2673 'createacct-emailrequired',
2676 'createacct-normalization',
2680 'mediawiki.jqueryMsg',
2684 'mediawiki.special.userlogin.signup.styles' => [
2686 'default' => 'resources/src/mediawiki.special.userlogin.signup.styles/signup.less',
2689 'mediawiki.special.userrights' => [
2690 'localBasePath' => MW_INSTALL_PATH
. '/resources/src',
2691 'remoteBasePath' => "$wgResourceBasePath/resources/src",
2693 'mediawiki.special.userrights.js',
2695 'name' => 'config.json',
2697 MainConfigNames
::UserrightsInterwikiDelimiter
2702 'mediawiki.notification.convertmessagebox',
2703 'jquery.lengthLimit',
2706 'mediawiki.special.watchlist' => [
2708 'resources/src/mediawiki.special.watchlist/watchlist.js',
2709 'resources/src/mediawiki.special.watchlist/visitedstatus.js',
2710 'resources/src/mediawiki.special.watchlist/editwatchlist.js'
2714 'addedwatchtext-talk',
2716 'removedwatchtext-talk',
2718 'tooltip-ca-unwatch',
2719 'tooltip-ca-unwatch-expiring',
2720 'tooltip-ca-unwatch-expiring-hours',
2721 'watchlist-unwatch',
2722 'watchlist-unwatch-undo',
2723 'watchlistedit-normal-check-all'
2727 'mediawiki.jqueryMsg',
2731 'oojs-ui.styles.icons-interactions',
2735 'mediawiki.tempUserBanner.styles' => [
2737 'resources/src/mediawiki.tempUserBanner/tempUserBanner.less',
2740 'mediawiki.tempUserBanner' => [
2741 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.tempUserBanner',
2742 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.tempUserBanner",
2744 'tempUserBanner.js',
2745 [ 'name' => 'config.json', 'config' => [ MainConfigNames
::AutoCreateTempUser
] ],
2748 'mediawiki.jqueryMsg',
2751 'temp-user-banner-tooltip-title',
2752 'temp-user-banner-tooltip-description-expiration-soon',
2753 'temp-user-banner-tooltip-description-expiration-soon-day',
2754 'temp-user-banner-tooltip-description-learn-more',
2755 'temp-user-banner-tooltip-description-login'
2758 'mediawiki.tempUserCreated' => [
2759 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.tempUserCreated',
2760 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.tempUserCreated",
2762 'mediawiki.tempUserCreated.js',
2763 [ 'name' => 'contLangMessages.json', 'callback' => static function ( MessageLocalizer
$messageLocalizer ) {
2765 'tempuser-helppage' => $messageLocalizer->msg( 'tempuser-helppage' )->inContentLanguage()->text(),
2773 /* MediaWiki Installer */
2775 // Used in the web installer. Test it after modifying this definition!
2777 /* MediaWiki Legacy */
2779 // Used in the web installer. Test it after modifying this definition!
2784 'deprecated' => '[1.41] Please use Codex. See migration guidelines: ' .
2785 'https://www.mediawiki.org/wiki/Codex/Migrating_from_MediaWiki_UI',
2788 'resources/src/mediawiki.ui/default.less',
2792 'mediawiki.ui.checkbox' => [
2793 'deprecated' => '[1.41] Please use Codex. See migration guidelines: ' .
2794 'https://www.mediawiki.org/wiki/Codex/Migrating_from_MediaWiki_UI',
2797 'resources/src/mediawiki.ui.checkbox/checkbox.less',
2801 'mediawiki.ui.radio' => [
2802 'deprecated' => '[1.41] Please use Codex. See migration guidelines: ' .
2803 'https://www.mediawiki.org/wiki/Codex/Migrating_from_MediaWiki_UI',
2806 'resources/src/mediawiki.ui.radio/radio.less',
2810 // Lightweight compatibility module for legacy message box styles
2811 'mediawiki.legacy.messageBox' => [
2812 'class' => SkinModule
::class,
2813 'deprecated' => '[1.43] Please use Codex if possible. If styling user generated ' .
2814 'content, please subscribe to https://phabricator.wikimedia.org/T363607 .',
2815 'features' => [ 'interface-message-box' ],
2817 // Lightweight module for button styles
2818 'mediawiki.ui.button' => [
2819 'deprecated' => '[1.41] Please use Codex. See migration guidelines: ' .
2820 'https://www.mediawiki.org/wiki/Codex/Migrating_from_MediaWiki_UI',
2823 'resources/src/mediawiki.ui.button/button.less',
2827 'mediawiki.ui.input' => [
2828 'deprecated' => '[1.41] Please use Codex. See migration guidelines: ' .
2829 'https://www.mediawiki.org/wiki/Codex/Migrating_from_MediaWiki_UI',
2832 'resources/src/mediawiki.ui.input/input.less',
2836 'mediawiki.ui.icon' => [
2837 'deprecated' => '[1.41] Please use Codex. See migration guidelines: ' .
2838 'https://www.mediawiki.org/wiki/Codex/Migrating_from_MediaWiki_UI',
2840 'default' => 'resources/src/mediawiki.ui.icon/icons-2.less',
2844 'mediawiki.widgets' => [
2845 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.widgets',
2846 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.widgets",
2849 [ 'name' => 'data.json', 'callback' => static function ( Context
$context ) {
2850 // $context only has a language code, we need to look up the language object
2851 $langCode = $context->getLanguage();
2852 $services = MediaWikiServices
::getInstance();
2853 $userLang = $services->getLanguageFactory()->getLanguage( $langCode );
2854 $converter = $services->getLanguageConverterFactory()
2855 ->getLanguageConverter( $services->getContentLanguage() );
2857 'isContLangVariant' => $converter->hasVariant( $langCode ),
2858 'formattedNamespaces' => $userLang->getFormattedNamespaces(),
2861 'mw.widgets.NamespaceInputWidget.js',
2862 'mw.widgets.ComplexNamespaceInputWidget.js',
2863 'mw.widgets.CopyTextLayout.js',
2864 'mw.widgets.TitleWidget.js',
2865 'mw.widgets.TitleInputWidget.js',
2866 'mw.widgets.TitleSearchWidget.js',
2867 'mw.widgets.ComplexTitleInputWidget.js',
2868 'mw.widgets.TitleOptionWidget.js',
2873 'mw.widgets.TitleWidget.less',
2878 'mediawiki.widgets.styles',
2880 'oojs-ui.styles.icons-content',
2881 // CopyTextLayout uses 'copy'
2882 'oojs-ui.styles.icons-editing-advanced',
2886 'mediawiki.language',
2889 // NamespaceInputWidget
2893 'mw-widgets-copytextlayout-copy-fail',
2894 'mw-widgets-copytextlayout-copy-success',
2896 'mw-widgets-titleinput-description-new-page',
2897 'mw-widgets-titleinput-description-redirect',
2900 'mediawiki.widgets.styles' => [
2903 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.less',
2904 'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.base.less',
2908 'mediawiki.widgets.AbandonEditDialog' => [
2910 'resources/src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js',
2913 'mw-widgets-abandonedit',
2914 'mw-widgets-abandonedit-discard',
2915 'mw-widgets-abandonedit-keep',
2916 'mw-widgets-abandonedit-title',
2922 'mediawiki.widgets.DateInputWidget' => [
2924 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js',
2925 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js',
2929 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less',
2930 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less',
2934 'mw-widgets-dateinput-no-date',
2935 'mw-widgets-dateinput-placeholder-day',
2936 'mw-widgets-dateinput-placeholder-month',
2940 'oojs-ui.styles.icons-movement',
2942 'mediawiki.widgets.DateInputWidget.styles',
2945 'mediawiki.widgets.DateInputWidget.styles' => [
2948 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.styles.less',
2952 'mediawiki.widgets.DateTimeInputWidget.styles' => [
2955 'resources/src/mediawiki.widgets/mw.widgets.DateTimeInputWidget.styles.less',
2959 'mediawiki.widgets.visibleLengthLimit' => [
2960 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.widgets.visibleLengthLimit',
2961 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.widgets.visibleLengthLimit",
2963 'mediawiki.widgets.visibleLengthLimit.js',
2965 'name' => 'contentMessages.json',
2967 'callback' => static function ( Context
$context ) {
2969 'colonSeparator' => $context->msg( 'colon-separator' )->inContentLanguage()->text(),
2976 'jquery.lengthLimit',
2977 'mediawiki.language',
2981 'mediawiki.widgets.datetime' => [
2983 'resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.js',
2984 'resources/src/mediawiki.widgets.datetime/CalendarWidget.js',
2985 'resources/src/mediawiki.widgets.datetime/DateTimeFormatter.js',
2986 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js',
2987 'resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js',
2991 'resources/src/mediawiki.widgets.datetime/CalendarWidget.less',
2992 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.less',
3041 'mediawiki.widgets.DateTimeInputWidget.styles',
3043 'oojs-ui.styles.icons-moderation',
3044 'oojs-ui.styles.icons-movement',
3045 'oojs-ui.styles.icons-interactions',
3048 'mediawiki.widgets.expiry' => [
3050 'resources/src/mediawiki.widgets/mw.widgets.ExpiryInputWidget.js',
3056 'mediawiki.widgets.datetime'
3059 'default' => 'resources/src/mediawiki.widgets/mw.widgets.ExpiryInputWidget.less',
3062 'mediawiki.widgets.CheckMatrixWidget' => [
3064 'resources/src/mediawiki.widgets/mw.widgets.CheckMatrixWidget.js',
3070 'mediawiki.widgets.CategoryMultiselectWidget' => [
3072 'resources/src/mediawiki.widgets/mw.widgets.CategoryTagItemWidget.js',
3073 'resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js',
3078 'mediawiki.ForeignApi',
3083 'mw-widgets-categoryselector-add-category-placeholder',
3086 'mediawiki.widgets.SelectWithInputWidget' => [
3087 'scripts' => 'resources/src/mediawiki.widgets/mw.widgets.SelectWithInputWidget.js',
3089 'mediawiki.widgets.SelectWithInputWidget.styles',
3093 'mediawiki.widgets.SelectWithInputWidget.styles' => [
3094 'styles' => 'resources/src/mediawiki.widgets/mw.widgets.SelectWithInputWidget.base.less',
3096 'mediawiki.widgets.SizeFilterWidget' => [
3097 'scripts' => 'resources/src/mediawiki.widgets/mw.widgets.SizeFilterWidget.js',
3099 'mediawiki.widgets.SizeFilterWidget.styles',
3108 'mediawiki.widgets.SizeFilterWidget.styles' => [
3109 'styles' => 'resources/src/mediawiki.widgets/mw.widgets.SizeFilterWidget.base.less',
3111 'mediawiki.widgets.MediaSearch' => [
3113 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.APIResultsProvider.js',
3114 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.APIResultsQueue.js',
3115 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResourceProvider.js',
3116 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchProvider.js',
3117 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaUserUploadsProvider.js',
3118 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResourceQueue.js',
3119 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchQueue.js',
3120 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaUserUploadsQueue.js',
3121 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchWidget.js',
3122 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResultWidget.js',
3125 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchWidget.less',
3126 'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResultWidget.less',
3130 'mediawiki.ForeignApi',
3136 'mw-widgets-mediasearch-noresults',
3137 'mw-widgets-mediasearch-input-placeholder',
3138 'mw-widgets-mediasearch-results-aria-label',
3139 'mw-widgets-mediasearch-recent-uploads',
3142 'mediawiki.widgets.Table' => [
3144 'resources/src/mediawiki.widgets/Table/mw.widgets.RowWidget.js',
3145 'resources/src/mediawiki.widgets/Table/mw.widgets.RowWidgetModel.js',
3146 'resources/src/mediawiki.widgets/Table/mw.widgets.TableWidget.js',
3147 'resources/src/mediawiki.widgets/Table/mw.widgets.TableWidgetModel.js'
3150 'resources/src/mediawiki.widgets/Table/mw.widgets.RowWidget.less',
3151 'resources/src/mediawiki.widgets/Table/mw.widgets.TableWidget.less',
3157 'mw-widgets-table-row-delete',
3160 'mediawiki.widgets.TagMultiselectWidget' => [
3162 'resources/src/mediawiki.widgets/mw.widgets.TagMultiselectWidget.js',
3168 'mediawiki.widgets.MenuTagMultiselectWidget' => [
3170 'resources/src/mediawiki.widgets/mw.widgets.MenuTagMultiselectWidget.js',
3176 'mediawiki.widgets.UserInputWidget' => [
3178 'resources/src/mediawiki.widgets/mw.widgets.UserInputWidget.js',
3185 'mediawiki.widgets.UsersMultiselectWidget' => [
3187 'resources/src/mediawiki.widgets/mw.widgets.UsersMultiselectWidget.js',
3194 'mediawiki.widgets.NamespacesMultiselectWidget' => [
3196 'resources/src/mediawiki.widgets/mw.widgets.NamespacesMultiselectWidget.js',
3197 'resources/src/mediawiki.widgets/mw.widgets.NamespacesMenuOptionWidget.js',
3201 // FIXME: Only needs NamespaceInputWidget
3202 'mediawiki.widgets',
3205 'mediawiki.widgets.TitlesMultiselectWidget' => [
3207 'resources/src/mediawiki.widgets/mw.widgets.TitlesMultiselectWidget.js',
3212 // FIXME: Needs TitleInputWidget only
3213 'mediawiki.widgets',
3216 'mediawiki.widgets.TagMultiselectWidget.styles' => [
3217 'styles' => 'resources/src/mediawiki.widgets/mw.widgets.TagMultiselectWidget.base.css',
3219 'mediawiki.widgets.SearchInputWidget' => [
3221 'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js',
3224 'mediawiki.searchSuggest',
3225 'oojs-ui.styles.icons-interactions',
3226 // FIXME: Needs TitleInputWidget only
3227 'mediawiki.widgets',
3230 'mediawiki.widgets.SearchInputWidget.styles' => [
3233 'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.css',
3237 'mediawiki.widgets.ToggleSwitchWidget' => [
3239 'resources/src/mediawiki.widgets/mw.widgets.ToggleSwitchWidget.js',
3245 'mediawiki.watchstar.widgets' => [
3246 'localBasePath' => MW_INSTALL_PATH
. '/resources/src/mediawiki.watchstar.widgets',
3247 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.watchstar.widgets",
3249 'WatchlistExpiryWidget.js',
3250 [ 'name' => 'data.json', 'callback' => static function ( MessageLocalizer
$messageLocalizer ) {
3251 return WatchAction
::getExpiryOptions( $messageLocalizer, false );
3254 'styles' => 'WatchlistExpiryWidget.css',
3259 'accesskey-ca-watch',
3260 'addedwatchexpiry-options-label',
3261 'addedwatchexpirytext',
3262 'addedwatchexpirytext-talk',
3263 'addedwatchindefinitelytext',
3264 'addedwatchindefinitelytext-talk'
3268 'mediawiki.deflate' => [
3270 'resources/src/mediawiki.deflate/mw.deflate.js',
3272 'name' => 'resources/lib/pako/pako_deflate.js',
3273 'callback' => static function ( Context
$context, Config
$config ) {
3274 return new FilePath( $context->getDebug() ?
3275 'resources/lib/pako/pako_deflate.js' :
3276 'resources/lib/pako/pako_deflate.min.js' );
3285 'resources/lib/oojs/oojs.js',
3286 'resources/src/oojs-global.js',
3290 'mediawiki.router' => [
3292 'resources/src/mediawiki.router/router.js',
3311 // The core JavaScript library.
3313 'class' => OOUIFileModule
::class,
3315 'resources/lib/ooui/oojs-ui-core.js',
3316 'resources/src/ooui-local.js',
3318 'themeScripts' => 'core',
3321 'oojs-ui-core.styles',
3322 'oojs-ui-core.icons',
3323 'oojs-ui.styles.indicators',
3324 'mediawiki.language',
3325 'mediawiki.page.ready',
3329 'ooui-combobox-button-label',
3330 'ooui-popup-widget-close-button-aria-label',
3331 'ooui-selectfile-button-select',
3332 'ooui-selectfile-button-select-multiple',
3333 'ooui-selectfile-dragdrop-placeholder',
3334 'ooui-selectfile-dragdrop-placeholder-multiple',
3335 'ooui-selectfile-placeholder',
3338 // This contains only the styles required by core widgets.
3339 'oojs-ui-core.styles' => [
3340 'class' => OOUIFileModule
::class,
3342 'resources/lib/ooui/wikimedia-ui-base.less', // Providing Wikimedia UI LESS variables to all
3344 'themeStyles' => 'core',
3346 'oojs-ui-core.icons' => [
3347 'class' => OOUIIconPackModule
::class,
3349 'add', 'alert', 'infoFilled', 'error', 'check', 'close', 'info', 'search', 'subtract', 'success'
3352 // Additional widgets and layouts module.
3353 'oojs-ui-widgets' => [
3354 'class' => OOUIFileModule
::class,
3355 'scripts' => 'resources/lib/ooui/oojs-ui-widgets.js',
3356 'themeStyles' => 'widgets',
3359 'oojs-ui-widgets.icons',
3362 'ooui-copytextlayout-copy',
3364 'ooui-outline-control-move-down',
3365 'ooui-outline-control-move-up',
3366 'ooui-outline-control-remove',
3369 // You should never directly load this module. The CSS classes it defines are not a public API,
3370 // they depend on the internal structure of OOUI widgets, which can change at any time. If you
3371 // find that you need to load this module, you're probably doing something wrong or very hacky.
3372 'oojs-ui-widgets.styles' => [
3373 'class' => OOUIFileModule
::class,
3374 'themeStyles' => 'widgets',
3376 'oojs-ui-widgets.icons' => [
3377 'class' => OOUIIconPackModule
::class,
3378 // Do not repeat icons already used in 'oojs-ui-core.icons'
3379 'icons' => [ 'attachment', 'collapse', 'expand', 'trash', 'upload' ],
3381 // Toolbar and tools module.
3382 'oojs-ui-toolbars' => [
3383 'class' => OOUIFileModule
::class,
3384 'scripts' => 'resources/lib/ooui/oojs-ui-toolbars.js',
3385 'themeStyles' => 'toolbars',
3388 'oojs-ui-toolbars.icons',
3391 'ooui-toolbar-more',
3392 'ooui-toolgroup-collapse',
3393 'ooui-toolgroup-expand',
3396 'oojs-ui-toolbars.icons' => [
3397 'class' => OOUIIconPackModule
::class,
3398 // Do not repeat icons already used in 'oojs-ui-core.icons': 'check'
3399 'icons' => [ 'collapse', 'expand' ],
3401 // Windows and dialogs module.
3402 'oojs-ui-windows' => [
3403 'class' => OOUIFileModule
::class,
3404 'scripts' => 'resources/lib/ooui/oojs-ui-windows.js',
3405 'themeStyles' => 'windows',
3408 'oojs-ui-windows.icons',
3411 'ooui-dialog-message-accept',
3412 'ooui-dialog-message-reject',
3413 'ooui-dialog-process-continue',
3414 'ooui-dialog-process-dismiss',
3415 'ooui-dialog-process-error',
3416 'ooui-dialog-process-retry',
3419 'oojs-ui-windows.icons' => [
3420 'class' => OOUIIconPackModule
::class,
3421 // Do not repeat icons already used in 'oojs-ui-core.icons': 'close'
3422 'icons' => [ 'previous' ],
3425 'oojs-ui.styles.indicators' => [
3426 'class' => OOUIImageModule
::class,
3427 'themeImages' => 'indicators',
3429 'oojs-ui.styles.icons-accessibility' => [
3430 'class' => OOUIImageModule
::class,
3431 'themeImages' => 'icons-accessibility',
3433 'oojs-ui.styles.icons-alerts' => [
3434 'class' => OOUIImageModule
::class,
3435 'themeImages' => 'icons-alerts',
3437 'oojs-ui.styles.icons-content' => [
3438 'class' => OOUIImageModule
::class,
3439 'themeImages' => 'icons-content',
3441 'oojs-ui.styles.icons-editing-advanced' => [
3442 'class' => OOUIImageModule
::class,
3443 'themeImages' => 'icons-editing-advanced',
3445 'oojs-ui.styles.icons-editing-citation' => [
3446 'class' => OOUIImageModule
::class,
3447 'themeImages' => 'icons-editing-citation',
3449 'oojs-ui.styles.icons-editing-core' => [
3450 'class' => OOUIImageModule
::class,
3451 'themeImages' => 'icons-editing-core',
3453 'oojs-ui.styles.icons-editing-functions' => [
3454 'class' => OOUIImageModule
::class,
3455 'themeImages' => 'icons-editing-functions',
3457 'oojs-ui.styles.icons-editing-list' => [
3458 'class' => OOUIImageModule
::class,
3459 'themeImages' => 'icons-editing-list',
3461 'oojs-ui.styles.icons-editing-styling' => [
3462 'class' => OOUIImageModule
::class,
3463 'themeImages' => 'icons-editing-styling',
3465 'oojs-ui.styles.icons-interactions' => [
3466 'class' => OOUIImageModule
::class,
3467 'themeImages' => 'icons-interactions',
3469 'oojs-ui.styles.icons-layout' => [
3470 'class' => OOUIImageModule
::class,
3471 'themeImages' => 'icons-layout',
3473 'oojs-ui.styles.icons-location' => [
3474 'class' => OOUIImageModule
::class,
3475 'themeImages' => 'icons-location',
3477 'oojs-ui.styles.icons-media' => [
3478 'class' => OOUIImageModule
::class,
3479 'themeImages' => 'icons-media',
3481 'oojs-ui.styles.icons-moderation' => [
3482 'class' => OOUIImageModule
::class,
3483 'themeImages' => 'icons-moderation',
3485 'oojs-ui.styles.icons-movement' => [
3486 'class' => OOUIImageModule
::class,
3487 'themeImages' => 'icons-movement',
3489 'oojs-ui.styles.icons-user' => [
3490 'class' => OOUIImageModule
::class,
3491 'themeImages' => 'icons-user',
3493 'oojs-ui.styles.icons-wikimedia' => [
3494 'class' => OOUIImageModule
::class,
3495 'themeImages' => 'icons-wikimedia',