Release note for Id83eda95
[mediawiki.git] / resources / Resources.php
blobaa94fcda50d9e7b2649e606ffffd6035410b075d
1 <?php
2 /**
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
20 * @file
23 if ( !defined( 'MEDIAWIKI' ) ) {
24 die( 'Not an entry point.' );
27 return [
29 /**
30 * Special modules who have their own classes
32 'startup' => [ 'class' => 'ResourceLoaderStartUpModule' ],
34 // Scripts managed by the local wiki (stored in the MediaWiki namespace)
35 'site' => [ 'class' => 'ResourceLoaderSiteModule' ],
36 'noscript' => [
37 'class' => 'ResourceLoaderWikiModule',
38 'styles' => [ 'MediaWiki:Noscript.css' ],
39 'group' => 'noscript',
41 'filepage' => [
42 'position' => 'top',
43 'class' => 'ResourceLoaderWikiModule',
44 'styles' => [ 'MediaWiki:Filepage.css' ],
46 'user.groups' => [ 'class' => 'ResourceLoaderUserGroupsModule' ],
48 // Scripts managed by the current user (stored in their user space)
49 'user' => [ 'class' => 'ResourceLoaderUserModule' ],
51 // Scripts generated based on the current user's preferences
52 'user.cssprefs' => [ 'class' => 'ResourceLoaderUserCSSPrefsModule' ],
54 // Populate mediawiki.user placeholders with information about the current user
55 'user.defaults' => [ 'class' => 'ResourceLoaderUserDefaultsModule' ],
56 'user.options' => [ 'class' => 'ResourceLoaderUserOptionsModule' ],
57 'user.tokens' => [ 'class' => 'ResourceLoaderUserTokensModule' ],
59 // Scripts for the dynamic language specific data, like grammar forms.
60 'mediawiki.language.data' => [ 'class' => 'ResourceLoaderLanguageDataModule' ],
62 /* MediaWiki base skinning modules */
64 /**
65 * Common skin styles, grouped into three graded levels.
67 * Level 1 "elements":
68 * The base level that only contains the most basic of common skin styles.
69 * Only styles for single elements are included, no styling for complex structures like the
70 * TOC is present. This level is for skins that want to implement the entire style of even
71 * content area structures like the TOC themselves.
73 * Level 2 "content":
74 * The most commonly used level for skins implemented from scratch. This level includes all
75 * the single element styles from "elements" as well as styles for complex structures such
76 * as the TOC that are output in the content area by MediaWiki rather than the skin.
77 * Essentially this is the common level that lets skins leave the style of the content area
78 * as it is normally styled, while leaving the rest of the skin up to the skin
79 * implementation.
81 * Level 3 "interface":
82 * The highest level, this stylesheet contains extra common styles for classes like
83 * .firstHeading, #contentSub, et cetera which are not outputted by MediaWiki but are common
84 * to skins like MonoBook, Vector, etc... Essentially this level is for styles that are
85 * common to MonoBook clones. And since practically every skin that currently exists within
86 * core is a MonoBook clone, all our core skins currently use this level.
88 * These modules are typically loaded by addModuleStyles(), which has absolutely no concept of
89 * dependency management. As a result they contain duplicate stylesheet references instead of
90 * setting 'dependencies' to the lower level the module is based on. For this reason avoid
91 * including more than one of them into your skin as this will result in duplicate CSS.
93 'mediawiki.skinning.elements' => [
94 'position' => 'top',
95 'styles' => [
96 'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
99 'mediawiki.skinning.content' => [
100 'position' => 'top',
101 'styles' => [
102 'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
103 'resources/src/mediawiki.skinning/content.css' => [ 'media' => 'screen' ],
106 // Used in the web installer. Test it after modifying this definition!
107 'mediawiki.skinning.interface' => [
108 'position' => 'top',
109 'class' => 'ResourceLoaderSkinModule',
110 'styles' => [
111 'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
112 'resources/src/mediawiki.skinning/content.css' => [ 'media' => 'screen' ],
113 'resources/src/mediawiki.skinning/interface.css' => [ 'media' => 'screen' ],
117 'mediawiki.skinning.content.parsoid' => [
118 'position' => 'top',
119 // Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser
120 // with the interface.css styles; skinStyles should be used if your
121 // skin over-rides common content styling.
122 'skinStyles' => [
123 'default' => 'resources/src/mediawiki.skinning/content.parsoid.less',
125 'targets' => [ 'desktop', 'mobile' ],
128 'mediawiki.skinning.content.externallinks' => [
129 'position' => 'bottom',
130 'styles' => [
131 'resources/src/mediawiki.skinning/content.externallinks.css' => [ 'media' => 'screen' ],
135 /* jQuery */
137 'jquery' => [
138 'scripts' => [
139 'resources/lib/jquery/jquery.js',
141 'raw' => true,
142 'targets' => [ 'desktop', 'mobile' ],
145 /* jQuery Plugins */
147 'jquery.accessKeyLabel' => [
148 'scripts' => 'resources/src/jquery/jquery.accessKeyLabel.js',
149 'dependencies' => [
150 'jquery.client',
151 'mediawiki.RegExp',
153 'messages' => [ 'brackets', 'word-separator' ],
154 'targets' => [ 'mobile', 'desktop' ],
156 'jquery.appear' => [
157 'scripts' => 'resources/lib/jquery/jquery.appear.js',
159 'jquery.arrowSteps' => [
160 'scripts' => 'resources/src/jquery/jquery.arrowSteps.js',
161 'styles' => 'resources/src/jquery/jquery.arrowSteps.css',
163 'jquery.async' => [
164 'scripts' => 'resources/lib/jquery/jquery.async.js',
166 'jquery.autoEllipsis' => [
167 'scripts' => 'resources/src/jquery/jquery.autoEllipsis.js',
168 'dependencies' => 'jquery.highlightText',
169 'targets' => [ 'desktop', 'mobile' ],
171 'jquery.badge' => [
172 'scripts' => 'resources/src/jquery/jquery.badge.js',
173 'styles' => 'resources/src/jquery/jquery.badge.css',
174 'dependencies' => 'mediawiki.language',
176 'jquery.byteLength' => [
177 'scripts' => 'resources/src/jquery/jquery.byteLength.js',
178 'targets' => [ 'desktop', 'mobile' ],
180 'jquery.byteLimit' => [
181 'scripts' => 'resources/src/jquery/jquery.byteLimit.js',
182 'dependencies' => 'jquery.byteLength',
183 'targets' => [ 'desktop', 'mobile' ],
185 'jquery.checkboxShiftClick' => [
186 'scripts' => 'resources/src/jquery/jquery.checkboxShiftClick.js',
187 'targets' => [ 'desktop', 'mobile' ],
189 'jquery.chosen' => [
190 'scripts' => 'resources/lib/jquery.chosen/chosen.jquery.js',
191 'styles' => 'resources/lib/jquery.chosen/chosen.css',
193 'jquery.client' => [
194 'scripts' => 'resources/lib/jquery.client/jquery.client.js',
195 'targets' => [ 'desktop', 'mobile' ],
197 'jquery.color' => [
198 'scripts' => 'resources/src/jquery/jquery.color.js',
199 'dependencies' => 'jquery.colorUtil',
201 'jquery.colorUtil' => [
202 'scripts' => 'resources/src/jquery/jquery.colorUtil.js',
204 'jquery.confirmable' => [
205 'scripts' => [
206 'resources/src/jquery/jquery.confirmable.js',
207 'resources/src/jquery/jquery.confirmable.mediawiki.js',
209 'messages' => [
210 'confirmable-confirm',
211 'confirmable-yes',
212 'confirmable-no',
213 'word-separator',
215 'styles' => 'resources/src/jquery/jquery.confirmable.css',
216 'dependencies' => 'mediawiki.jqueryMsg',
218 'jquery.cookie' => [
219 'scripts' => 'resources/lib/jquery/jquery.cookie.js',
220 'targets' => [ 'desktop', 'mobile' ],
222 'jquery.expandableField' => [
223 'scripts' => 'resources/src/jquery/jquery.expandableField.js',
225 'jquery.farbtastic' => [
226 'scripts' => 'resources/src/jquery/jquery.farbtastic.js',
227 'styles' => 'resources/src/jquery/jquery.farbtastic.css',
228 'dependencies' => 'jquery.colorUtil',
230 'jquery.footHovzer' => [
231 'scripts' => 'resources/src/jquery/jquery.footHovzer.js',
232 'styles' => 'resources/src/jquery/jquery.footHovzer.css',
234 'jquery.form' => [
235 'scripts' => 'resources/lib/jquery/jquery.form.js',
237 'jquery.fullscreen' => [
238 'scripts' => 'resources/lib/jquery/jquery.fullscreen.js',
240 'jquery.getAttrs' => [
241 'scripts' => 'resources/src/jquery/jquery.getAttrs.js',
242 'targets' => [ 'desktop', 'mobile' ],
244 'jquery.hidpi' => [
245 'scripts' => 'resources/src/jquery/jquery.hidpi.js',
246 'targets' => [ 'desktop', 'mobile' ],
248 'jquery.highlightText' => [
249 'scripts' => 'resources/src/jquery/jquery.highlightText.js',
250 'dependencies' => [
251 'mediawiki.RegExp',
252 'dom-level2-shim',
254 'targets' => [ 'desktop', 'mobile' ],
256 'jquery.hoverIntent' => [
257 'scripts' => 'resources/lib/jquery/jquery.hoverIntent.js',
259 'jquery.i18n' => [
260 'scripts' => [
261 'resources/lib/jquery.i18n/src/jquery.i18n.js',
262 'resources/lib/jquery.i18n/src/jquery.i18n.messagestore.js',
263 'resources/lib/jquery.i18n/src/jquery.i18n.parser.js',
264 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.js',
265 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.bidi.js',
266 'resources/lib/jquery.i18n/src/jquery.i18n.language.js',
267 'resources/lib/jquery.i18n/src/jquery.i18n.fallbacks.js',
269 'dependencies' => 'mediawiki.libs.pluralruleparser',
270 'languageScripts' => [
271 'bs' => 'resources/lib/jquery.i18n/src/languages/bs.js',
272 'dsb' => 'resources/lib/jquery.i18n/src/languages/dsb.js',
273 'fi' => 'resources/lib/jquery.i18n/src/languages/fi.js',
274 'ga' => 'resources/lib/jquery.i18n/src/languages/ga.js',
275 'he' => 'resources/lib/jquery.i18n/src/languages/he.js',
276 'hsb' => 'resources/lib/jquery.i18n/src/languages/hsb.js',
277 'hu' => 'resources/lib/jquery.i18n/src/languages/hu.js',
278 'hy' => 'resources/lib/jquery.i18n/src/languages/hy.js',
279 'la' => 'resources/lib/jquery.i18n/src/languages/la.js',
280 'ml' => 'resources/lib/jquery.i18n/src/languages/ml.js',
281 'os' => 'resources/lib/jquery.i18n/src/languages/os.js',
282 'ru' => 'resources/lib/jquery.i18n/src/languages/ru.js',
283 'sl' => 'resources/lib/jquery.i18n/src/languages/sl.js',
284 'uk' => 'resources/lib/jquery.i18n/src/languages/uk.js',
286 'targets' => [ 'desktop', 'mobile' ],
288 'jquery.localize' => [
289 'scripts' => 'resources/src/jquery/jquery.localize.js',
291 'jquery.makeCollapsible' => [
292 'scripts' => 'resources/src/jquery/jquery.makeCollapsible.js',
293 'styles' => 'resources/src/jquery/jquery.makeCollapsible.css',
294 'messages' => [ 'collapsible-expand', 'collapsible-collapse' ],
295 'targets' => [ 'desktop', 'mobile' ],
297 'jquery.mockjax' => [
298 'scripts' => 'resources/lib/jquery/jquery.mockjax.js',
300 'jquery.mw-jump' => [
301 'scripts' => 'resources/src/jquery/jquery.mw-jump.js',
302 'targets' => [ 'desktop', 'mobile' ],
304 'jquery.mwExtension' => [
305 'scripts' => 'resources/src/jquery/jquery.mwExtension.js',
306 'targets' => [ 'desktop', 'mobile' ],
308 'jquery.placeholder' => [
309 'scripts' => 'resources/src/jquery/jquery.placeholder.js',
310 'targets' => [ 'desktop', 'mobile' ],
312 'jquery.qunit' => [
313 'scripts' => 'resources/lib/qunitjs/qunit.js',
314 'styles' => 'resources/lib/qunitjs/qunit.css',
315 'position' => 'top',
316 'targets' => [ 'desktop', 'mobile' ],
318 'jquery.qunit.completenessTest' => [
319 'scripts' => 'resources/src/jquery/jquery.qunit.completenessTest.js',
320 'dependencies' => 'jquery.qunit',
321 'targets' => [ 'desktop', 'mobile' ],
323 'jquery.spinner' => [
324 'scripts' => 'resources/src/jquery/jquery.spinner.js',
325 'styles' => 'resources/src/jquery/jquery.spinner.css',
327 'jquery.jStorage' => [
328 'scripts' => 'resources/lib/jquery/jquery.jStorage.js',
329 'dependencies' => 'json',
331 'jquery.suggestions' => [
332 'scripts' => 'resources/src/jquery/jquery.suggestions.js',
333 'styles' => 'resources/src/jquery/jquery.suggestions.css',
334 'dependencies' => 'jquery.highlightText',
336 'jquery.tabIndex' => [
337 'scripts' => 'resources/src/jquery/jquery.tabIndex.js',
339 'jquery.tablesorter' => [
340 'scripts' => 'resources/src/jquery/jquery.tablesorter.js',
341 'styles' => 'resources/src/jquery/jquery.tablesorter.less',
342 'messages' => [ 'sort-descending', 'sort-ascending' ],
343 'dependencies' => [
344 'dom-level2-shim',
345 'mediawiki.RegExp',
346 'mediawiki.language.months',
349 'jquery.textSelection' => [
350 'scripts' => 'resources/src/jquery/jquery.textSelection.js',
351 'dependencies' => 'jquery.client',
352 'targets' => [ 'mobile', 'desktop' ],
354 'jquery.throttle-debounce' => [
355 'scripts' => 'resources/lib/jquery/jquery.ba-throttle-debounce.js',
356 'targets' => [ 'desktop', 'mobile' ],
358 'jquery.xmldom' => [
359 'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
362 /* jQuery Tipsy */
364 'jquery.tipsy' => [
365 'scripts' => 'resources/src/jquery.tipsy/jquery.tipsy.js',
366 'styles' => 'resources/src/jquery.tipsy/jquery.tipsy.css',
369 /* jQuery UI */
371 'jquery.ui.core' => [
372 'scripts' => 'resources/lib/jquery.ui/jquery.ui.core.js',
373 'dependencies' => [
374 'jquery.ui.core.styles',
376 'group' => 'jquery.ui',
378 'jquery.ui.core.styles' => [
379 'position' => 'top',
380 'skinStyles' => [
381 'default' => [
382 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.core.css',
383 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.theme.css',
386 'group' => 'jquery.ui',
388 'jquery.ui.accordion' => [
389 'scripts' => 'resources/lib/jquery.ui/jquery.ui.accordion.js',
390 'dependencies' => [
391 'jquery.ui.core',
392 'jquery.ui.widget',
394 'skinStyles' => [
395 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.accordion.css',
397 'group' => 'jquery.ui',
399 'jquery.ui.autocomplete' => [
400 'scripts' => 'resources/lib/jquery.ui/jquery.ui.autocomplete.js',
401 'dependencies' => [
402 'jquery.ui.core',
403 'jquery.ui.widget',
404 'jquery.ui.position',
405 'jquery.ui.menu',
407 'skinStyles' => [
408 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.autocomplete.css',
410 'group' => 'jquery.ui',
412 'jquery.ui.button' => [
413 'scripts' => 'resources/lib/jquery.ui/jquery.ui.button.js',
414 'dependencies' => [
415 'jquery.ui.core',
416 'jquery.ui.widget',
418 'skinStyles' => [
419 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.button.css',
421 'group' => 'jquery.ui',
423 'jquery.ui.datepicker' => [
424 'scripts' => 'resources/lib/jquery.ui/jquery.ui.datepicker.js',
425 'dependencies' => 'jquery.ui.core',
426 'skinStyles' => [
427 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.datepicker.css',
429 'languageScripts' => [
430 'af' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js',
431 'ar' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
432 'ar-dz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js',
433 'az' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js',
434 'bg' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
435 'bs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
436 'ca' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
437 'cs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
438 'da' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js',
439 'de-at' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js',
440 'de-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js',
441 'de' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js',
442 'el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js',
443 'en-au' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js',
444 'en-gb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
445 'en-nz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js',
446 'eo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
447 'es' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js',
448 'et' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js',
449 'eu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
450 'fa' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
451 'fi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
452 'fo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
453 'fr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
454 'fr-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js',
455 'gl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
456 'he' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js',
457 'hi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
458 'hr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
459 'hu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
460 'hy' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
461 'id' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js',
462 'is' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js',
463 'it' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js',
464 'ja' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
465 'ka' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
466 'kk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
467 'km' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js',
468 'ko' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
469 'lb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
470 'lt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
471 'lv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
472 'mk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
473 'ml' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
474 'ms' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
475 'nl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
476 'nl-be' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js',
477 'no' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js',
478 'pl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
479 'pt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
480 'pt-br' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
481 'rm' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
482 'ro' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
483 'ru' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
484 'sk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
485 'sl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
486 'sq' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
487 'sr-ec' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
488 'sr-el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
489 'sv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
490 'ta' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
491 'th' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js',
492 'tj' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js',
493 'tr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
494 'uk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
495 'vi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
496 'zh-cn' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
497 'zh-hk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
498 'zh-tw' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
500 'group' => 'jquery.ui',
502 'jquery.ui.dialog' => [
503 'scripts' => 'resources/lib/jquery.ui/jquery.ui.dialog.js',
504 'dependencies' => [
505 'jquery.ui.core',
506 'jquery.ui.widget',
507 'jquery.ui.button',
508 'jquery.ui.draggable',
509 'jquery.ui.mouse',
510 'jquery.ui.position',
511 'jquery.ui.resizable',
513 'skinStyles' => [
514 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css',
516 'group' => 'jquery.ui',
518 'jquery.ui.draggable' => [
519 'scripts' => 'resources/lib/jquery.ui/jquery.ui.draggable.js',
520 'dependencies' => [
521 'jquery.ui.core',
522 'jquery.ui.mouse',
523 'jquery.ui.widget',
525 'group' => 'jquery.ui',
527 'jquery.ui.droppable' => [
528 'scripts' => 'resources/lib/jquery.ui/jquery.ui.droppable.js',
529 'dependencies' => [
530 'jquery.ui.core',
531 'jquery.ui.mouse',
532 'jquery.ui.widget',
533 'jquery.ui.draggable',
535 'group' => 'jquery.ui',
537 'jquery.ui.menu' => [
538 'scripts' => 'resources/lib/jquery.ui/jquery.ui.menu.js',
539 'dependencies' => [
540 'jquery.ui.core',
541 'jquery.ui.widget',
542 'jquery.ui.position',
544 'skinStyles' => [
545 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.menu.css',
547 'group' => 'jquery.ui',
549 'jquery.ui.mouse' => [
550 'scripts' => 'resources/lib/jquery.ui/jquery.ui.mouse.js',
551 'dependencies' => 'jquery.ui.widget',
552 'group' => 'jquery.ui',
554 'jquery.ui.position' => [
555 'scripts' => 'resources/lib/jquery.ui/jquery.ui.position.js',
556 'group' => 'jquery.ui',
558 'jquery.ui.progressbar' => [
559 'scripts' => 'resources/lib/jquery.ui/jquery.ui.progressbar.js',
560 'dependencies' => [
561 'jquery.ui.core',
562 'jquery.ui.widget',
564 'skinStyles' => [
565 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.progressbar.css',
567 'group' => 'jquery.ui',
569 'jquery.ui.resizable' => [
570 'scripts' => 'resources/lib/jquery.ui/jquery.ui.resizable.js',
571 'dependencies' => [
572 'jquery.ui.core',
573 'jquery.ui.widget',
574 'jquery.ui.mouse',
576 'skinStyles' => [
577 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.resizable.css',
579 'group' => 'jquery.ui',
581 'jquery.ui.selectable' => [
582 'scripts' => 'resources/lib/jquery.ui/jquery.ui.selectable.js',
583 'dependencies' => [
584 'jquery.ui.core',
585 'jquery.ui.widget',
586 'jquery.ui.mouse',
588 'skinStyles' => [
589 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.selectable.css',
591 'group' => 'jquery.ui',
593 'jquery.ui.slider' => [
594 'scripts' => 'resources/lib/jquery.ui/jquery.ui.slider.js',
595 'dependencies' => [
596 'jquery.ui.core',
597 'jquery.ui.widget',
598 'jquery.ui.mouse',
600 'skinStyles' => [
601 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.slider.css',
603 'group' => 'jquery.ui',
605 'jquery.ui.sortable' => [
606 'scripts' => 'resources/lib/jquery.ui/jquery.ui.sortable.js',
607 'dependencies' => [
608 'jquery.ui.core',
609 'jquery.ui.mouse',
610 'jquery.ui.widget',
612 'group' => 'jquery.ui',
614 'jquery.ui.spinner' => [
615 'scripts' => 'resources/lib/jquery.ui/jquery.ui.spinner.js',
616 'dependencies' => [
617 'jquery.ui.core',
618 'jquery.ui.widget',
619 'jquery.ui.button',
621 'skinStyles' => [
622 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.spinner.css',
624 'group' => 'jquery.ui',
626 'jquery.ui.tabs' => [
627 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tabs.js',
628 'dependencies' => [
629 'jquery.ui.core',
630 'jquery.ui.widget',
632 'skinStyles' => [
633 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tabs.css',
635 'group' => 'jquery.ui',
637 'jquery.ui.tooltip' => [
638 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tooltip.js',
639 'dependencies' => [
640 'jquery.ui.core',
641 'jquery.ui.widget',
642 'jquery.ui.position',
644 'skinStyles' => [
645 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tooltip.css',
647 'group' => 'jquery.ui',
649 'jquery.ui.widget' => [
650 'scripts' => 'resources/lib/jquery.ui/jquery.ui.widget.js',
651 'group' => 'jquery.ui',
653 // Effects
654 'jquery.effects.core' => [
655 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect.js',
656 'group' => 'jquery.ui',
658 'jquery.effects.blind' => [
659 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-blind.js',
660 'dependencies' => 'jquery.effects.core',
661 'group' => 'jquery.ui',
663 'jquery.effects.bounce' => [
664 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-bounce.js',
665 'dependencies' => 'jquery.effects.core',
666 'group' => 'jquery.ui',
668 'jquery.effects.clip' => [
669 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-clip.js',
670 'dependencies' => 'jquery.effects.core',
671 'group' => 'jquery.ui',
673 'jquery.effects.drop' => [
674 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-drop.js',
675 'dependencies' => 'jquery.effects.core',
676 'group' => 'jquery.ui',
678 'jquery.effects.explode' => [
679 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-explode.js',
680 'dependencies' => 'jquery.effects.core',
681 'group' => 'jquery.ui',
683 'jquery.effects.fade' => [
684 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fade.js',
685 'dependencies' => 'jquery.effects.core',
686 'group' => 'jquery.ui',
688 'jquery.effects.fold' => [
689 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fold.js',
690 'dependencies' => 'jquery.effects.core',
691 'group' => 'jquery.ui',
693 'jquery.effects.highlight' => [
694 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-highlight.js',
695 'dependencies' => 'jquery.effects.core',
696 'group' => 'jquery.ui',
698 'jquery.effects.pulsate' => [
699 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-pulsate.js',
700 'dependencies' => 'jquery.effects.core',
701 'group' => 'jquery.ui',
703 'jquery.effects.scale' => [
704 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-scale.js',
705 'dependencies' => 'jquery.effects.core',
706 'group' => 'jquery.ui',
708 'jquery.effects.shake' => [
709 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-shake.js',
710 'dependencies' => 'jquery.effects.core',
711 'group' => 'jquery.ui',
713 'jquery.effects.slide' => [
714 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-slide.js',
715 'dependencies' => 'jquery.effects.core',
716 'group' => 'jquery.ui',
718 'jquery.effects.transfer' => [
719 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-transfer.js',
720 'dependencies' => 'jquery.effects.core',
721 'group' => 'jquery.ui',
724 /* json2 */
726 'json' => [
727 'scripts' => 'resources/lib/json2/json2.js',
728 'targets' => [ 'desktop', 'mobile' ],
729 'skipFunction' => 'resources/src/json-skip.js',
732 /* Moment.js */
734 'moment' => [
735 'scripts' => [
736 'resources/lib/moment/moment.js',
737 'resources/src/moment-global.js',
739 'languageScripts' => [
740 'af' => 'resources/lib/moment/locale/af.js',
741 'ar' => 'resources/lib/moment/locale/ar.js',
742 'ar-ma' => 'resources/lib/moment/locale/ar-ma.js',
743 'ar-sa' => 'resources/lib/moment/locale/ar-sa.js',
744 'az' => 'resources/lib/moment/locale/az.js',
745 'be' => 'resources/lib/moment/locale/be.js',
746 'bg' => 'resources/lib/moment/locale/bg.js',
747 'bn' => 'resources/lib/moment/locale/bn.js',
748 'bo' => 'resources/lib/moment/locale/bo.js',
749 'br' => 'resources/lib/moment/locale/br.js',
750 'bs' => 'resources/lib/moment/locale/bs.js',
751 'ca' => 'resources/lib/moment/locale/ca.js',
752 'cs' => 'resources/lib/moment/locale/cs.js',
753 'cv' => 'resources/lib/moment/locale/cv.js',
754 'cy' => 'resources/lib/moment/locale/cy.js',
755 'da' => 'resources/lib/moment/locale/da.js',
756 'de' => 'resources/lib/moment/locale/de.js',
757 'de-at' => 'resources/lib/moment/locale/de-at.js',
758 'el' => 'resources/lib/moment/locale/el.js',
759 'en-au' => 'resources/lib/moment/locale/en-au.js',
760 'en-ca' => 'resources/lib/moment/locale/en-ca.js',
761 'en-gb' => 'resources/lib/moment/locale/en-gb.js',
762 'eo' => 'resources/lib/moment/locale/eo.js',
763 'es' => 'resources/lib/moment/locale/es.js',
764 'et' => 'resources/lib/moment/locale/et.js',
765 'eu' => 'resources/lib/moment/locale/eu.js',
766 'fa' => 'resources/lib/moment/locale/fa.js',
767 'fi' => 'resources/lib/moment/locale/fi.js',
768 'fo' => 'resources/lib/moment/locale/fo.js',
769 'fr-ca' => 'resources/lib/moment/locale/fr-ca.js',
770 'fr' => 'resources/lib/moment/locale/fr.js',
771 'gl' => 'resources/lib/moment/locale/gl.js',
772 'he' => 'resources/lib/moment/locale/he.js',
773 'hi' => 'resources/lib/moment/locale/hi.js',
774 'hr' => 'resources/lib/moment/locale/hr.js',
775 'hu' => 'resources/lib/moment/locale/hu.js',
776 'hy-am' => 'resources/lib/moment/locale/hy-am.js',
777 'id' => 'resources/lib/moment/locale/id.js',
778 'is' => 'resources/lib/moment/locale/is.js',
779 'it' => 'resources/lib/moment/locale/it.js',
780 'ja' => 'resources/lib/moment/locale/ja.js',
781 'ka' => 'resources/lib/moment/locale/ka.js',
782 'ko' => 'resources/lib/moment/locale/ko.js',
783 'lt' => 'resources/lib/moment/locale/lt.js',
784 'lv' => 'resources/lib/moment/locale/lv.js',
785 'mk' => 'resources/lib/moment/locale/mk.js',
786 'ml' => 'resources/lib/moment/locale/ml.js',
787 'mr' => 'resources/lib/moment/locale/mr.js',
788 'ms-my' => 'resources/lib/moment/locale/ms-my.js',
789 'my' => 'resources/lib/moment/locale/my.js',
790 'nb' => 'resources/lib/moment/locale/nb.js',
791 'ne' => 'resources/lib/moment/locale/ne.js',
792 'nl' => 'resources/lib/moment/locale/nl.js',
793 'nn' => 'resources/lib/moment/locale/nn.js',
794 'pl' => 'resources/lib/moment/locale/pl.js',
795 'pt-br' => 'resources/lib/moment/locale/pt-br.js',
796 'pt' => 'resources/lib/moment/locale/pt.js',
797 'ro' => 'resources/lib/moment/locale/ro.js',
798 'ru' => 'resources/lib/moment/locale/ru.js',
799 'sk' => 'resources/lib/moment/locale/sk.js',
800 'sl' => 'resources/lib/moment/locale/sl.js',
801 'sq' => 'resources/lib/moment/locale/sq.js',
802 'sr-ec' => 'resources/lib/moment/locale/sr-cyrl.js',
803 'sr-el' => 'resources/lib/moment/locale/sr.js',
804 'sv' => 'resources/lib/moment/locale/sv.js',
805 'ta' => 'resources/lib/moment/locale/ta.js',
806 'th' => 'resources/lib/moment/locale/th.js',
807 'tl-ph' => 'resources/lib/moment/locale/tl-ph.js',
808 'tr' => 'resources/lib/moment/locale/tr.js',
809 'tzm' => 'resources/lib/moment/locale/tzm.js',
810 'tzm-latn' => 'resources/lib/moment/locale/tzm-latn.js',
811 'uk' => 'resources/lib/moment/locale/uk.js',
812 'uz' => 'resources/lib/moment/locale/uz.js',
813 'vi' => 'resources/lib/moment/locale/vi.js',
814 'zh-cn' => 'resources/lib/moment/locale/zh-cn.js',
815 'zh-tw' => 'resources/lib/moment/locale/zh-tw.js',
816 'zh-hans' => 'resources/lib/moment/locale/zh-cn.js',
817 'zh-hant' => 'resources/lib/moment/locale/zh-tw.js',
819 // HACK: skinScripts come after languageScripts, and we need locale overrides to come
820 // after locale definitions
821 'skinScripts' => [
822 'default' => [
823 'resources/src/moment-locale-overrides.js',
826 'targets' => [ 'desktop', 'mobile' ],
829 /* MediaWiki */
831 'mediawiki' => [
832 'class' => 'ResourceLoaderRawFileModule',
833 // Keep in sync with maintenance/jsduck/eg-iframe.html
834 'scripts' => [
835 'resources/lib/phpjs-sha1/sha1.js',
836 'resources/src/mediawiki/mediawiki.js',
837 'resources/src/mediawiki/mediawiki.requestIdleCallback.js',
838 'resources/src/mediawiki/mediawiki.errorLogger.js',
840 'debugScripts' => 'resources/src/mediawiki/mediawiki.log.js',
841 'targets' => [ 'desktop', 'mobile' ],
843 'mediawiki.apihelp' => [
844 'styles' => 'resources/src/mediawiki/mediawiki.apihelp.css',
845 'targets' => [ 'desktop' ],
846 'position' => 'top',
848 'mediawiki.template' => [
849 'scripts' => 'resources/src/mediawiki/mediawiki.template.js',
850 'targets' => [ 'desktop', 'mobile' ],
852 'mediawiki.template.mustache' => [
853 'scripts' => [
854 'resources/lib/mustache/mustache.js',
855 'resources/src/mediawiki/mediawiki.template.mustache.js',
857 'targets' => [ 'desktop', 'mobile' ],
858 'dependencies' => 'mediawiki.template',
860 'mediawiki.template.regexp' => [
861 'scripts' => 'resources/src/mediawiki/mediawiki.template.regexp.js',
862 'targets' => [ 'desktop', 'mobile' ],
863 'dependencies' => 'mediawiki.template',
865 'mediawiki.apipretty' => [
866 'styles' => 'resources/src/mediawiki/mediawiki.apipretty.css',
867 'targets' => [ 'desktop', 'mobile' ],
868 'position' => 'top',
870 'mediawiki.api' => [
871 'scripts' => 'resources/src/mediawiki/api.js',
872 'dependencies' => [
873 'mediawiki.util',
874 'user.tokens',
876 'targets' => [ 'desktop', 'mobile' ],
878 'mediawiki.api.category' => [
879 'scripts' => 'resources/src/mediawiki/api/category.js',
880 'dependencies' => [
881 'mediawiki.api',
882 'mediawiki.Title',
885 'mediawiki.api.edit' => [
886 'scripts' => 'resources/src/mediawiki/api/edit.js',
887 'dependencies' => [
888 'mediawiki.api',
889 'mediawiki.Title',
891 'targets' => [ 'desktop', 'mobile' ],
893 'mediawiki.api.login' => [
894 'scripts' => 'resources/src/mediawiki/api/login.js',
895 'dependencies' => 'mediawiki.api',
897 'mediawiki.api.options' => [
898 'scripts' => 'resources/src/mediawiki/api/options.js',
899 'dependencies' => 'mediawiki.api',
900 'targets' => [ 'desktop', 'mobile' ],
902 'mediawiki.api.parse' => [
903 'scripts' => 'resources/src/mediawiki/api/parse.js',
904 'dependencies' => 'mediawiki.api',
905 'targets' => [ 'desktop', 'mobile' ],
907 'mediawiki.api.upload' => [
908 'scripts' => 'resources/src/mediawiki/api/upload.js',
909 'dependencies' => [
910 'dom-level2-shim',
911 'mediawiki.api',
912 'mediawiki.api.edit',
913 'json',
916 'mediawiki.api.user' => [
917 'scripts' => 'resources/src/mediawiki/api/user.js',
918 'dependencies' => [
919 'mediawiki.api',
921 'targets' => [ 'desktop', 'mobile' ],
923 'mediawiki.api.watch' => [
924 'scripts' => 'resources/src/mediawiki/api/watch.js',
925 'dependencies' => [
926 'mediawiki.api',
929 'mediawiki.api.messages' => [
930 'scripts' => 'resources/src/mediawiki/api/messages.js',
931 'dependencies' => [
932 'mediawiki.api',
935 'mediawiki.content.json' => [
936 'position' => 'top',
937 'styles' => 'resources/src/mediawiki/mediawiki.content.json.css',
939 'mediawiki.confirmCloseWindow' => [
940 'scripts' => [
941 'resources/src/mediawiki/mediawiki.confirmCloseWindow.js',
943 'targets' => [ 'desktop', 'mobile' ],
945 'mediawiki.debug' => [
946 'scripts' => [
947 'resources/src/mediawiki/mediawiki.debug.js',
949 'styles' => [
950 'resources/src/mediawiki/mediawiki.debug.less',
952 'dependencies' => [
953 'jquery.footHovzer',
954 'jquery.tipsy',
956 'position' => 'bottom',
958 'mediawiki.debug.init' => [
959 'scripts' => 'resources/src/mediawiki/mediawiki.debug.init.js',
960 'dependencies' => 'mediawiki.debug',
961 // Uses a custom mw.config variable that is set in debughtml,
962 // must be loaded on the bottom
963 'position' => 'bottom',
965 'mediawiki.feedback' => [
966 'scripts' => 'resources/src/mediawiki/mediawiki.feedback.js',
967 'styles' => 'resources/src/mediawiki/mediawiki.feedback.css',
968 'dependencies' => [
969 'mediawiki.messagePoster',
970 'mediawiki.Title',
971 'oojs-ui-core',
972 'oojs-ui-windows',
974 'messages' => [
975 'feedback-adding',
976 'feedback-back',
977 'feedback-bugcheck',
978 'feedback-dialog-intro',
979 'feedback-external-bug-report-button',
980 'feedback-bugnew',
981 'feedback-bugornote',
982 'feedback-cancel',
983 'feedback-close',
984 'feedback-dialog-title',
985 'feedback-error-title',
986 'feedback-error1',
987 'feedback-error2',
988 'feedback-error3',
989 'feedback-error4',
990 'feedback-message',
991 'feedback-subject',
992 'feedback-submit',
993 'feedback-terms',
994 'feedback-termsofuse',
995 'feedback-thanks',
996 'feedback-thanks-title',
997 'feedback-useragent'
1000 'mediawiki.feedlink' => [
1001 'position' => 'top',
1002 'styles' => 'resources/src/mediawiki/mediawiki.feedlink.css',
1004 'mediawiki.filewarning' => [
1005 'scripts' => 'resources/src/mediawiki/mediawiki.filewarning.js',
1006 'styles' => 'resources/src/mediawiki/mediawiki.filewarning.less',
1007 'dependencies' => [
1008 'oojs-ui-core',
1011 'mediawiki.ForeignApi' => [
1012 'targets' => [ 'desktop', 'mobile' ],
1013 'class' => 'ResourceLoaderForeignApiModule',
1014 // Additional dependencies generated dynamically
1015 'dependencies' => 'mediawiki.ForeignApi.core',
1017 'mediawiki.ForeignApi.core' => [
1018 'scripts' => 'resources/src/mediawiki/ForeignApi.js',
1019 'dependencies' => [
1020 'mediawiki.api',
1021 'oojs',
1023 'targets' => [ 'desktop', 'mobile' ],
1025 'mediawiki.helplink' => [
1026 'position' => 'top',
1027 'styles' => [
1028 'resources/src/mediawiki/mediawiki.helplink.less',
1030 'targets' => [ 'desktop', 'mobile' ],
1032 'mediawiki.hidpi' => [
1033 'scripts' => 'resources/src/mediawiki/mediawiki.hidpi.js',
1034 'dependencies' => 'jquery.hidpi',
1035 'skipFunction' => 'resources/src/mediawiki.hidpi-skip.js',
1036 'targets' => [ 'desktop', 'mobile' ],
1038 'mediawiki.hlist' => [
1039 'styles' => 'resources/src/mediawiki/mediawiki.hlist.css',
1041 'mediawiki.htmlform' => [
1042 'scripts' => 'resources/src/mediawiki/mediawiki.htmlform.js',
1043 'dependencies' => [
1044 'mediawiki.RegExp',
1045 'jquery.byteLimit',
1047 'messages' => [
1048 'htmlform-chosen-placeholder',
1049 // @todo Load this message in content language
1050 'colon-separator',
1053 'mediawiki.htmlform.styles' => [
1054 'styles' => 'resources/src/mediawiki/mediawiki.htmlform.css',
1055 'position' => 'top',
1057 'mediawiki.htmlform.ooui.styles' => [
1058 'styles' => 'resources/src/mediawiki/mediawiki.htmlform.ooui.css',
1059 'position' => 'top',
1061 'mediawiki.icon' => [
1062 'styles' => 'resources/src/mediawiki/mediawiki.icon.less',
1064 'mediawiki.inspect' => [
1065 'scripts' => 'resources/src/mediawiki/mediawiki.inspect.js',
1066 'dependencies' => [
1067 'jquery.byteLength',
1068 'mediawiki.RegExp',
1069 'json',
1071 'targets' => [ 'desktop', 'mobile' ],
1073 'mediawiki.messagePoster' => [
1074 'scripts' => [
1075 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.factory.js',
1076 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.MessagePoster.js',
1078 'dependencies' => [
1079 'oojs',
1080 'mediawiki.api',
1081 'mediawiki.ForeignApi',
1083 'targets' => [ 'desktop', 'mobile' ],
1085 'mediawiki.messagePoster.wikitext' => [
1086 'scripts' => [
1087 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.WikitextMessagePoster.js',
1089 'dependencies' => [
1090 'mediawiki.api.edit',
1091 'mediawiki.messagePoster',
1093 'targets' => [ 'desktop', 'mobile' ],
1095 'mediawiki.notification' => [
1096 'styles' => [
1097 'resources/src/mediawiki/mediawiki.notification.common.css',
1098 'resources/src/mediawiki/mediawiki.notification.hideForPrint.css'
1099 => [ 'media' => 'print' ],
1101 'skinStyles' => [
1102 'default' => 'resources/src/mediawiki/mediawiki.notification.css',
1104 'scripts' => 'resources/src/mediawiki/mediawiki.notification.js',
1105 'dependencies' => 'mediawiki.page.startup',
1106 'targets' => [ 'desktop', 'mobile' ],
1108 'mediawiki.notify' => [
1109 'scripts' => 'resources/src/mediawiki/mediawiki.notify.js',
1110 'targets' => [ 'desktop', 'mobile' ],
1112 'mediawiki.RegExp' => [
1113 'scripts' => 'resources/src/mediawiki/mediawiki.RegExp.js',
1114 'targets' => [ 'desktop', 'mobile' ],
1116 'mediawiki.pager.tablePager' => [
1117 'styles' => 'resources/src/mediawiki/mediawiki.pager.tablePager.less',
1118 'position' => 'top',
1120 'mediawiki.searchSuggest' => [
1121 'scripts' => 'resources/src/mediawiki/mediawiki.searchSuggest.js',
1122 'styles' => 'resources/src/mediawiki/mediawiki.searchSuggest.css',
1123 'messages' => [
1124 'searchsuggest-search',
1125 'searchsuggest-containing',
1127 'dependencies' => [
1128 'jquery.client',
1129 'jquery.placeholder',
1130 'jquery.suggestions',
1131 'jquery.getAttrs',
1132 'mediawiki.api',
1135 'mediawiki.sectionAnchor' => [
1136 'position' => 'top',
1137 // Back-compat to hide it on cached pages (T18691; Ie9e334e973; 2015-03-17)
1138 'styles' => 'resources/src/mediawiki/mediawiki.sectionAnchor.css',
1139 'targets' => [ 'desktop', 'mobile' ],
1141 'mediawiki.storage' => [
1142 'scripts' => 'resources/src/mediawiki/mediawiki.storage.js',
1143 'targets' => [ 'desktop', 'mobile' ],
1145 'mediawiki.Title' => [
1146 'scripts' => 'resources/src/mediawiki/mediawiki.Title.js',
1147 'dependencies' => [
1148 'jquery.byteLength',
1149 'mediawiki.util',
1151 'targets' => [ 'desktop', 'mobile' ],
1153 'mediawiki.Upload' => [
1154 'scripts' => 'resources/src/mediawiki/mediawiki.Upload.js',
1155 'dependencies' => [
1156 'dom-level2-shim',
1157 'mediawiki.api.upload',
1160 'mediawiki.ForeignUpload' => [
1161 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignUpload.js',
1162 'dependencies' => [
1163 'mediawiki.ForeignApi',
1164 'mediawiki.Upload',
1165 'oojs',
1167 'messages' => [
1168 'uploaddisabledtext',
1169 'upload-foreign-cant-upload',
1172 'mediawiki.ForeignStructuredUpload' => [
1173 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js',
1174 'dependencies' => [
1175 'mediawiki.ForeignUpload',
1178 'mediawiki.Upload.Dialog' => [
1179 'scripts' => [
1180 'resources/src/mediawiki/mediawiki.Upload.Dialog.js',
1182 'dependencies' => [
1183 'mediawiki.Upload.BookletLayout',
1185 'messages' => [
1186 'upload-dialog-title',
1187 'upload-dialog-button-cancel',
1188 'upload-dialog-button-done',
1189 'upload-dialog-button-save',
1190 'upload-dialog-button-upload',
1193 'mediawiki.Upload.BookletLayout' => [
1194 'scripts' => [
1195 'resources/src/mediawiki/mediawiki.Upload.BookletLayout.js',
1197 'styles' => [
1198 'resources/src/mediawiki/mediawiki.Upload.BookletLayout.css',
1200 'dependencies' => [
1201 'oojs-ui-core',
1202 'oojs-ui-windows',
1203 'oojs-ui.styles.icons-content',
1204 'oojs-ui.styles.icons-editing-advanced',
1205 'moment',
1206 'mediawiki.Title',
1207 'mediawiki.user',
1208 'mediawiki.Upload',
1209 'mediawiki.jqueryMsg',
1210 'mediawiki.widgets.StashedFileWidget'
1212 'messages' => [
1213 'upload-form-label-infoform-title',
1214 'upload-form-label-infoform-name',
1215 'upload-form-label-infoform-name-tooltip',
1216 'upload-form-label-infoform-description',
1217 'upload-form-label-infoform-description-tooltip',
1218 'upload-form-label-usage-title',
1219 'upload-form-label-usage-filename',
1220 'api-error-unknownerror',
1221 'api-error-unknown-warning',
1222 'api-error-autoblocked',
1223 'api-error-blocked',
1224 'api-error-badaccess-groups',
1225 'api-error-badtoken',
1226 'api-error-copyuploaddisabled',
1227 'api-error-duplicate',
1228 'api-error-duplicate-archive',
1229 'api-error-empty-file',
1230 'api-error-emptypage',
1231 'api-error-fetchfileerror',
1232 'api-error-fileexists-forbidden',
1233 'api-error-fileexists-shared-forbidden',
1234 'api-error-file-too-large',
1235 'api-error-filename-tooshort',
1236 'api-error-filetype-banned',
1237 'api-error-filetype-banned-type',
1238 'api-error-filetype-missing',
1239 'api-error-hookaborted',
1240 'api-error-http',
1241 'api-error-illegal-filename',
1242 'api-error-internal-error',
1243 'api-error-invalid-file-key',
1244 'api-error-missingparam',
1245 'api-error-missingresult',
1246 'api-error-mustbeloggedin',
1247 'api-error-mustbeposted',
1248 'api-error-noimageinfo',
1249 'api-error-nomodule',
1250 'api-error-ok-but-empty',
1251 'api-error-overwrite',
1252 'api-error-stashfailed',
1253 'api-error-publishfailed',
1254 'api-error-stasherror',
1255 'api-error-stashedfilenotfound',
1256 'api-error-stashpathinvalid',
1257 'api-error-stashfilestorage',
1258 'api-error-stashzerolength',
1259 'api-error-stashnotloggedin',
1260 'api-error-stashwrongowner',
1261 'api-error-stashnosuchfilekey',
1262 'api-error-timeout',
1263 'api-error-unclassified',
1264 'api-error-unknown-code',
1265 'api-error-unknown-error',
1266 'api-error-uploaddisabled',
1267 'api-error-verification-error',
1268 'api-error-was-deleted',
1269 'fileexists',
1270 'filepageexists',
1271 'filename-bad-prefix',
1272 'filename-thumb-name',
1273 'badfilename',
1274 'protectedpagetext',
1275 'api-error-blacklisted', // HACK
1278 'mediawiki.ForeignStructuredUpload.BookletLayout' => [
1279 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js',
1280 'styles' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.less',
1281 'dependencies' => [
1282 'mediawiki.ForeignStructuredUpload',
1283 'mediawiki.Upload.BookletLayout',
1284 'mediawiki.widgets.CategorySelector',
1285 'mediawiki.widgets.DateInputWidget',
1286 'mediawiki.jqueryMsg',
1287 'moment',
1288 'mediawiki.libs.jpegmeta',
1290 'messages' => [
1291 'foreign-structured-upload-form-label-own-work',
1292 'foreign-structured-upload-form-label-infoform-categories',
1293 'foreign-structured-upload-form-label-infoform-date',
1294 'foreign-structured-upload-form-label-own-work-message-default',
1295 'foreign-structured-upload-form-label-not-own-work-message-default',
1296 'foreign-structured-upload-form-label-not-own-work-local-default',
1297 'foreign-structured-upload-form-label-own-work-message-shared',
1298 'foreign-structured-upload-form-label-not-own-work-message-shared',
1299 'foreign-structured-upload-form-label-not-own-work-local-shared',
1300 'foreign-structured-upload-form-label-own-work-message-local',
1301 'foreign-structured-upload-form-label-not-own-work-message-local',
1302 'foreign-structured-upload-form-label-not-own-work-local-local',
1305 'mediawiki.toc' => [
1306 'scripts' => 'resources/src/mediawiki/mediawiki.toc.js',
1307 'styles' => [
1308 'resources/src/mediawiki/mediawiki.toc.css'
1309 => [ 'media' => 'screen' ],
1310 'resources/src/mediawiki/mediawiki.toc.print.css'
1311 => [ 'media' => 'print' ],
1313 'dependencies' => 'mediawiki.cookie',
1314 'messages' => [ 'showtoc', 'hidetoc' ],
1315 'targets' => [ 'desktop', 'mobile' ],
1317 'mediawiki.Uri' => [
1318 'scripts' => 'resources/src/mediawiki/mediawiki.Uri.js',
1319 'templates' => [
1320 'strict.regexp' => 'resources/src/mediawiki/mediawiki.Uri.strict.regexp',
1321 'loose.regexp' => 'resources/src/mediawiki/mediawiki.Uri.loose.regexp',
1323 'dependencies' => 'mediawiki.util',
1324 'targets' => [ 'desktop', 'mobile' ],
1326 'mediawiki.user' => [
1327 'scripts' => 'resources/src/mediawiki/mediawiki.user.js',
1328 'dependencies' => [
1329 'mediawiki.cookie',
1330 'mediawiki.api',
1331 'mediawiki.api.user',
1332 'user.options',
1333 'user.tokens',
1335 'targets' => [ 'desktop', 'mobile' ],
1337 'mediawiki.userSuggest' => [
1338 'scripts' => 'resources/src/mediawiki/mediawiki.userSuggest.js',
1339 'dependencies' => [
1340 'jquery.suggestions',
1341 'mediawiki.api'
1344 'mediawiki.util' => [
1345 'scripts' => 'resources/src/mediawiki/mediawiki.util.js',
1346 'dependencies' => [
1347 'jquery.accessKeyLabel',
1348 'mediawiki.RegExp',
1349 'mediawiki.notify',
1351 'targets' => [ 'desktop', 'mobile' ],
1353 'mediawiki.viewport' => [
1354 'scripts' => 'resources/src/mediawiki/mediawiki.viewport.js',
1355 'position' => 'top',
1356 'targets' => [ 'desktop', 'mobile' ],
1358 'mediawiki.checkboxtoggle' => [
1359 'scripts' => 'resources/src/mediawiki/mediawiki.checkboxtoggle.js',
1360 'position' => 'top',
1362 'mediawiki.checkboxtoggle.styles' => [
1363 'styles' => 'resources/src/mediawiki/mediawiki.checkboxtoggle.css',
1364 'position' => 'top',
1366 'mediawiki.cookie' => [
1367 'scripts' => 'resources/src/mediawiki/mediawiki.cookie.js',
1368 'dependencies' => 'jquery.cookie',
1369 'targets' => [ 'desktop', 'mobile' ],
1371 'mediawiki.toolbar' => [
1372 'class' => 'ResourceLoaderEditToolbarModule',
1373 'scripts' => 'resources/src/mediawiki.toolbar/toolbar.js',
1374 'styles' => 'resources/src/mediawiki.toolbar/toolbar.less',
1375 'position' => 'top',
1377 'mediawiki.experiments' => [
1378 'scripts' => 'resources/src/mediawiki/mediawiki.experiments.js',
1379 'targets' => [ 'desktop', 'mobile' ],
1381 'mediawiki.raggett' => [
1382 'styles' => 'resources/src/mediawiki/mediawiki.raggett.css',
1383 'targets' => [ 'desktop', 'mobile' ],
1386 /* MediaWiki Action */
1388 'mediawiki.action.edit' => [
1389 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.js',
1390 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.css',
1391 'dependencies' => [
1392 'mediawiki.action.edit.styles',
1393 'jquery.textSelection',
1394 'jquery.byteLimit',
1396 'position' => 'top',
1398 'mediawiki.action.edit.styles' => [
1399 'position' => 'top',
1400 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.styles.css',
1402 'mediawiki.action.edit.collapsibleFooter' => [
1403 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
1404 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
1405 'dependencies' => [
1406 'jquery.makeCollapsible',
1407 'mediawiki.cookie',
1408 'mediawiki.icon',
1411 'mediawiki.action.edit.preview' => [
1412 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.js',
1413 'dependencies' => [
1414 'jquery.form',
1415 'jquery.spinner',
1416 'jquery.textSelection',
1417 'mediawiki.api',
1418 'mediawiki.action.history.diff',
1419 'mediawiki.util',
1420 'mediawiki.jqueryMsg',
1422 'messages' => [
1423 // Keep the uses message keys in sync with EditPage#setHeaders
1424 'creating',
1425 'editconflict',
1426 'editing',
1427 'editingcomment',
1428 'editingsection',
1429 'pagetitle',
1430 'otherlanguages',
1431 'summary-preview',
1432 'subject-preview',
1433 'parentheses',
1434 'previewerrortext',
1437 'mediawiki.action.edit.stash' => [
1438 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.stash.js',
1439 'dependencies' => [
1440 'jquery.getAttrs',
1441 'mediawiki.api',
1444 'mediawiki.action.history' => [
1445 'position' => 'top',
1446 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
1447 'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
1449 'mediawiki.action.history.diff' => [
1450 'position' => 'top',
1451 'styles' => [
1452 'resources/src/mediawiki.action/mediawiki.action.history.diff.css',
1453 'resources/src/mediawiki.action/mediawiki.action.history.diff.print.css' => [
1454 'media' => 'print'
1457 'targets' => [ 'desktop', 'mobile' ],
1459 'mediawiki.action.view.dblClickEdit' => [
1460 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
1461 'dependencies' => [
1462 'mediawiki.util',
1463 'mediawiki.page.startup',
1464 'user.options',
1467 'mediawiki.action.view.metadata' => [
1468 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.css',
1469 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.js',
1470 'messages' => [
1471 'metadata-expand',
1472 'metadata-collapse',
1475 'mediawiki.action.view.categoryPage.styles' => [
1476 'position' => 'top',
1477 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less',
1478 'targets' => [ 'desktop', 'mobile' ]
1480 'mediawiki.action.view.postEdit' => [
1481 'templates' => [
1482 'postEdit.html' => 'resources/src/mediawiki.action/templates/postEdit.html',
1484 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.js',
1485 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.css',
1486 'dependencies' => [
1487 'mediawiki.cookie',
1488 'mediawiki.jqueryMsg'
1490 'messages' => [
1491 'postedit-confirmation-created',
1492 'postedit-confirmation-restored',
1493 'postedit-confirmation-saved',
1496 'mediawiki.action.view.redirect' => [
1497 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.redirect.js',
1498 'dependencies' => 'jquery.client',
1499 'position' => 'top',
1500 'targets' => [ 'desktop', 'mobile' ],
1502 'mediawiki.action.view.redirectPage' => [
1503 'position' => 'top',
1504 'targets' => [ 'desktop', 'mobile' ],
1505 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css',
1507 'mediawiki.action.view.rightClickEdit' => [
1508 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
1510 'mediawiki.action.edit.editWarning' => [
1511 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js',
1512 'dependencies' => [
1513 'jquery.textSelection',
1514 'mediawiki.jqueryMsg',
1515 'mediawiki.confirmCloseWindow',
1516 'user.options',
1518 'messages' => [
1519 'editwarning-warning',
1520 // editwarning-warning uses {{int:prefs-editing}}
1521 'prefs-editing'
1524 'mediawiki.action.view.filepage' => [
1525 'styles' => [
1526 'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.css' =>
1527 [ 'media' => 'print' ],
1528 'resources/src/mediawiki.action/mediawiki.action.view.filepage.css',
1530 'position' => 'top',
1533 /* MediaWiki Language */
1535 'mediawiki.language' => [
1536 'scripts' => [
1537 'resources/src/mediawiki.language/mediawiki.language.js',
1538 'resources/src/mediawiki.language/mediawiki.language.numbers.js',
1539 'resources/src/mediawiki.language/mediawiki.language.fallback.js',
1541 'languageScripts' => [
1542 'bs' => 'resources/src/mediawiki.language/languages/bs.js',
1543 'dsb' => 'resources/src/mediawiki.language/languages/dsb.js',
1544 'fi' => 'resources/src/mediawiki.language/languages/fi.js',
1545 'ga' => 'resources/src/mediawiki.language/languages/ga.js',
1546 'he' => 'resources/src/mediawiki.language/languages/he.js',
1547 'hsb' => 'resources/src/mediawiki.language/languages/hsb.js',
1548 'hu' => 'resources/src/mediawiki.language/languages/hu.js',
1549 'hy' => 'resources/src/mediawiki.language/languages/hy.js',
1550 'la' => 'resources/src/mediawiki.language/languages/la.js',
1551 'os' => 'resources/src/mediawiki.language/languages/os.js',
1552 'ru' => 'resources/src/mediawiki.language/languages/ru.js',
1553 'sl' => 'resources/src/mediawiki.language/languages/sl.js',
1554 'uk' => 'resources/src/mediawiki.language/languages/uk.js',
1556 'dependencies' => [
1557 'mediawiki.language.data',
1558 'mediawiki.cldr',
1560 'targets' => [ 'desktop', 'mobile' ],
1561 'messages' => [
1562 'and',
1563 'comma-separator',
1564 'word-separator'
1568 'mediawiki.cldr' => [
1569 'scripts' => 'resources/src/mediawiki.language/mediawiki.cldr.js',
1570 'dependencies' => [
1571 'mediawiki.libs.pluralruleparser',
1573 'targets' => [ 'desktop', 'mobile' ],
1576 'mediawiki.libs.pluralruleparser' => [
1577 'scripts' => 'resources/src/mediawiki.libs/CLDRPluralRuleParser.js',
1578 'targets' => [ 'desktop', 'mobile' ],
1581 'mediawiki.language.init' => [
1582 'scripts' => 'resources/src/mediawiki.language/mediawiki.language.init.js',
1583 'targets' => [ 'desktop', 'mobile' ],
1586 'mediawiki.jqueryMsg' => [
1587 // Add data for mediawiki.jqueryMsg, such as allowed tags
1588 'class' => 'ResourceLoaderJqueryMsgModule',
1589 'scripts' => 'resources/src/mediawiki/mediawiki.jqueryMsg.js',
1590 'dependencies' => [
1591 'mediawiki.util',
1592 'mediawiki.language',
1593 'user.options',
1594 'dom-level2-shim',
1596 'targets' => [ 'desktop', 'mobile' ],
1599 'mediawiki.language.months' => [
1600 'scripts' => 'resources/src/mediawiki.language/mediawiki.language.months.js',
1601 'dependencies' => 'mediawiki.language',
1602 'messages' => array_merge(
1603 Language::$mMonthMsgs,
1604 Language::$mMonthGenMsgs,
1605 Language::$mMonthAbbrevMsgs
1609 'mediawiki.language.names' => [ 'class' => 'ResourceLoaderLanguageNamesModule' ],
1611 'mediawiki.language.specialCharacters' => [
1612 'class' => 'ResourceLoaderSpecialCharacterDataModule'
1615 /* MediaWiki Libs */
1617 'mediawiki.libs.jpegmeta' => [
1618 'scripts' => 'resources/src/mediawiki.libs/mediawiki.libs.jpegmeta.js',
1621 /* MediaWiki Page */
1623 'mediawiki.page.gallery' => [
1624 'scripts' => 'resources/src/mediawiki/page/gallery.js',
1625 'dependencies' => [
1626 'mediawiki.page.gallery.styles',
1627 'jquery.throttle-debounce',
1630 'mediawiki.page.gallery.styles' => [
1631 'styles' => [
1632 'resources/src/mediawiki/page/gallery-print.css' => [ 'media' => 'print' ],
1633 'resources/src/mediawiki/page/gallery.css',
1635 'position' => 'top',
1636 'targets' => [ 'desktop', 'mobile' ],
1638 'mediawiki.page.ready' => [
1639 'scripts' => 'resources/src/mediawiki/page/ready.js',
1640 'dependencies' => [
1641 'jquery.accessKeyLabel',
1642 'jquery.checkboxShiftClick',
1643 'jquery.makeCollapsible',
1644 'jquery.placeholder',
1645 'jquery.mw-jump',
1647 'targets' => [ 'desktop', 'mobile' ],
1649 'mediawiki.page.startup' => [
1650 'scripts' => 'resources/src/mediawiki/page/startup.js',
1651 'dependencies' => 'mediawiki.util',
1652 'position' => 'top',
1653 'targets' => [ 'desktop', 'mobile' ],
1655 'mediawiki.page.patrol.ajax' => [
1656 'scripts' => 'resources/src/mediawiki/page/patrol.ajax.js',
1657 'dependencies' => [
1658 'mediawiki.page.startup',
1659 'mediawiki.api',
1660 'mediawiki.util',
1661 'mediawiki.Title',
1662 'mediawiki.notify',
1663 'jquery.spinner',
1664 'user.tokens'
1666 'messages' => [
1667 'markedaspatrollednotify',
1668 'markedaspatrollederrornotify',
1669 'markedaspatrollederror-noautopatrol'
1672 'mediawiki.page.watch.ajax' => [
1673 'scripts' => 'resources/src/mediawiki/page/watch.js',
1674 'dependencies' => [
1675 'mediawiki.page.startup',
1676 'mediawiki.api.watch',
1677 'mediawiki.notify',
1678 'mediawiki.util',
1679 'jquery.accessKeyLabel',
1680 'mediawiki.RegExp',
1682 'messages' => [
1683 'watch',
1684 'unwatch',
1685 'watching',
1686 'unwatching',
1687 'tooltip-ca-watch',
1688 'tooltip-ca-unwatch',
1689 'watcherrortext',
1692 'mediawiki.page.image.pagination' => [
1693 'scripts' => 'resources/src/mediawiki/page/image-pagination.js',
1694 'dependencies' => [
1695 'mediawiki.util',
1696 'jquery.spinner',
1700 /* MediaWiki Special pages */
1702 'mediawiki.special' => [
1703 'position' => 'top',
1704 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.js',
1705 'styles' => 'resources/src/mediawiki.special/mediawiki.special.css',
1706 'targets' => [ 'desktop', 'mobile' ],
1708 'mediawiki.special.apisandbox.styles' => [
1709 'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.top.css',
1711 'mediawiki.special.apisandbox' => [
1712 'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.css',
1713 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.js',
1714 'dependencies' => [
1715 'mediawiki.special',
1716 'mediawiki.api',
1717 'mediawiki.jqueryMsg',
1718 'oojs-ui',
1719 'mediawiki.widgets.datetime',
1721 'messages' => [
1722 'apisandbox-intro',
1723 'apisandbox-submit',
1724 'apisandbox-reset',
1725 'apisandbox-fullscreen',
1726 'apisandbox-fullscreen-tooltip',
1727 'apisandbox-unfullscreen',
1728 'apisandbox-unfullscreen-tooltip',
1729 'apisandbox-retry',
1730 'apisandbox-loading',
1731 'apisandbox-load-error',
1732 'apisandbox-fetch-token',
1733 'apisandbox-helpurls',
1734 'apisandbox-examples',
1735 'apisandbox-dynamic-parameters',
1736 'apisandbox-dynamic-parameters-add-label',
1737 'apisandbox-dynamic-parameters-add-placeholder',
1738 'apisandbox-dynamic-error-exists',
1739 'apisandbox-deprecated-parameters',
1740 'apisandbox-no-parameters',
1741 'api-help-param-limit',
1742 'api-help-param-limit2',
1743 'api-help-param-integer-min',
1744 'api-help-param-integer-max',
1745 'api-help-param-integer-minmax',
1746 'api-help-param-multi-separate',
1747 'api-help-param-multi-max',
1748 'apisandbox-submit-invalid-fields-title',
1749 'apisandbox-submit-invalid-fields-message',
1750 'apisandbox-results',
1751 'apisandbox-sending-request',
1752 'apisandbox-loading-results',
1753 'apisandbox-results-error',
1754 'apisandbox-request-url-label',
1755 'apisandbox-request-time',
1756 'apisandbox-results-fixtoken',
1757 'apisandbox-results-fixtoken-fail',
1758 'apisandbox-alert-page',
1759 'apisandbox-alert-field',
1760 'blanknamespace',
1763 'mediawiki.special.block' => [
1764 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.block.js',
1765 'styles' => 'resources/src/mediawiki.special/mediawiki.special.block.css',
1766 'dependencies' => 'mediawiki.util',
1768 'mediawiki.special.blocklist' => [
1769 'styles' => 'resources/src/mediawiki.special/mediawiki.special.blocklist.css',
1770 'position' => 'top',
1772 'mediawiki.special.changeslist' => [
1773 'position' => 'top',
1774 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.css',
1776 'mediawiki.special.changeslist.legend' => [
1777 'position' => 'top',
1778 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.css',
1780 'mediawiki.special.changeslist.legend.js' => [
1781 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js',
1782 'dependencies' => [
1783 'jquery.makeCollapsible',
1784 'mediawiki.cookie',
1787 'mediawiki.special.changeslist.enhanced' => [
1788 'position' => 'top',
1789 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.enhanced.css',
1791 'mediawiki.special.changeslist.visitedstatus' => [
1792 'position' => 'top',
1793 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.visitedstatus.js',
1795 'mediawiki.special.comparepages.styles' => [
1796 'position' => 'top',
1797 'styles' => 'resources/src/mediawiki.special/mediawiki.special.comparepages.styles.less',
1799 'mediawiki.special.edittags' => [
1800 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.edittags.js',
1801 'dependencies' => [
1802 'jquery.chosen',
1804 'messages' => [
1805 'tags-edit-chosen-placeholder',
1806 'tags-edit-chosen-no-results',
1809 'mediawiki.special.edittags.styles' => [
1810 'styles' => 'resources/src/mediawiki.special/mediawiki.special.edittags.css',
1811 'position' => 'top',
1813 'mediawiki.special.import' => [
1814 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.import.js',
1816 'mediawiki.special.movePage' => [
1817 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.movePage.js',
1818 'dependencies' => [
1819 'jquery.byteLimit',
1820 'mediawiki.widgets',
1823 'mediawiki.special.movePage.styles' => [
1824 'styles' => 'resources/src/mediawiki.special/mediawiki.special.movePage.css',
1825 'position' => 'top',
1827 'mediawiki.special.pageLanguage' => [
1828 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.pageLanguage.js',
1829 'dependencies' => [
1830 'oojs-ui-core',
1833 'mediawiki.special.pagesWithProp' => [
1834 'position' => 'top',
1835 'styles' => 'resources/src/mediawiki.special/mediawiki.special.pagesWithProp.css',
1837 'mediawiki.special.preferences' => [
1838 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.preferences.js',
1839 'position' => 'top',
1840 'messages' => [
1841 'prefs-tabs-navigation-hint',
1842 'prefswarning-warning',
1843 'saveprefs',
1844 'savedprefs',
1846 'dependencies' => [
1847 'mediawiki.language',
1848 'mediawiki.confirmCloseWindow',
1849 'mediawiki.notification',
1852 'mediawiki.special.preferences.styles' => [
1853 'styles' => 'resources/src/mediawiki.special/mediawiki.special.preferences.styles.css',
1854 'position' => 'top',
1856 'mediawiki.special.recentchanges' => [
1857 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.recentchanges.js',
1858 'dependencies' => 'mediawiki.special',
1859 'position' => 'top',
1861 'mediawiki.special.search' => [
1862 'position' => 'top',
1863 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.search.js',
1864 'styles' => 'resources/src/mediawiki.special/mediawiki.special.search.css',
1865 'dependencies' => 'mediawiki.widgets.SearchInputWidget',
1866 'messages' => [
1867 'powersearch-togglelabel',
1868 'powersearch-toggleall',
1869 'powersearch-togglenone',
1872 'mediawiki.special.undelete' => [
1873 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.undelete.js',
1875 'mediawiki.special.upload' => [
1876 'templates' => [
1877 'thumbnail.html' => 'resources/src/mediawiki.special/templates/thumbnail.html',
1879 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.upload.js',
1880 'styles' => 'resources/src/mediawiki.special/mediawiki.special.upload.css',
1881 'messages' => [
1882 'widthheight',
1883 'size-bytes',
1884 'size-kilobytes',
1885 'size-megabytes',
1886 'size-gigabytes',
1887 'largefileserver',
1888 'editwarning-warning',
1889 // editwarning-warning uses {{int:prefs-editing}}
1890 'prefs-editing',
1892 'dependencies' => [
1893 'jquery.spinner',
1894 'mediawiki.jqueryMsg',
1895 'mediawiki.api',
1896 'mediawiki.libs.jpegmeta',
1897 'mediawiki.Title',
1898 'mediawiki.util',
1899 'mediawiki.confirmCloseWindow',
1900 'user.options',
1903 'mediawiki.special.userlogin.common.styles' => [
1904 'styles' => [
1905 'resources/src/mediawiki.special/mediawiki.special.userlogin.common.css',
1907 'position' => 'top',
1909 'mediawiki.special.userlogin.signup.styles' => [
1910 'position' => 'top',
1911 'styles' => [
1912 'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.css',
1915 'mediawiki.special.userlogin.login.styles' => [
1916 'position' => 'top',
1917 'styles' => [
1918 'resources/src/mediawiki.special/mediawiki.special.userlogin.login.css',
1921 'mediawiki.special.userlogin.signup.js' => [
1922 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js',
1923 'messages' => [
1924 'createacct-error',
1925 'createacct-emailrequired',
1926 'noname',
1927 'userexists',
1929 'dependencies' => [
1930 'mediawiki.api',
1931 'mediawiki.jqueryMsg',
1932 'jquery.throttle-debounce',
1935 'mediawiki.special.unwatchedPages' => [
1936 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.js',
1937 'styles' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.css',
1938 'messages' => [
1939 'addedwatchtext-short',
1940 'removedwatchtext-short',
1941 'unwatch',
1942 'unwatching',
1943 'watch',
1944 'watcherrortext',
1945 'watching',
1947 'dependencies' => [
1948 'mediawiki.api',
1949 'mediawiki.api.watch',
1950 'mediawiki.notify',
1951 'mediawiki.Title',
1952 'mediawiki.util',
1955 'mediawiki.special.watchlist' => [
1956 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.watchlist.js',
1958 'mediawiki.special.version' => [
1959 'styles' => 'resources/src/mediawiki.special/mediawiki.special.version.css',
1962 /* MediaWiki Installer */
1964 // Used in the web installer. Test it after modifying this definition!
1965 'mediawiki.legacy.config' => [
1966 // These files are not actually loaded via ResourceLoader, so dependencies etc. won't work.
1967 'scripts' => 'mw-config/config.js',
1968 'styles' => 'mw-config/config.css',
1971 /* MediaWiki Legacy */
1973 'mediawiki.legacy.commonPrint' => [
1974 'position' => 'top',
1975 'styles' => [
1976 'resources/src/mediawiki.legacy/commonPrint.css' => [ 'media' => 'print' ]
1979 'mediawiki.legacy.protect' => [
1980 'scripts' => 'resources/src/mediawiki.legacy/protect.js',
1981 'dependencies' => 'jquery.byteLimit',
1982 'messages' => [ 'protect-unchain-permissions' ]
1984 // Used in the web installer. Test it after modifying this definition!
1985 'mediawiki.legacy.shared' => [
1986 'position' => 'top',
1987 'styles' => [
1988 'resources/src/mediawiki.legacy/shared.css' => [ 'media' => 'screen' ]
1991 'mediawiki.legacy.oldshared' => [
1992 'position' => 'top',
1993 'styles' => [
1994 'resources/src/mediawiki.legacy/oldshared.css' => [ 'media' => 'screen' ]
1997 'mediawiki.legacy.wikibits' => [
1998 'scripts' => 'resources/src/mediawiki.legacy/wikibits.js',
1999 'dependencies' => 'mediawiki.util',
2000 'position' => 'top',
2001 'targets' => [ 'desktop', 'mobile' ],
2004 /* MediaWiki UI */
2006 'mediawiki.ui' => [
2007 'position' => 'top',
2008 'skinStyles' => [
2009 'default' => [
2010 'resources/src/mediawiki.ui/default.less',
2013 'targets' => [ 'desktop', 'mobile' ],
2015 'mediawiki.ui.checkbox' => [
2016 'position' => 'top',
2017 'skinStyles' => [
2018 'default' => [
2019 'resources/src/mediawiki.ui/components/checkbox.less',
2022 'targets' => [ 'desktop', 'mobile' ],
2024 'mediawiki.ui.radio' => [
2025 'position' => 'top',
2026 'skinStyles' => [
2027 'default' => [
2028 'resources/src/mediawiki.ui/components/radio.less',
2031 'targets' => [ 'desktop', 'mobile' ],
2033 // Lightweight module for anchor styles
2034 'mediawiki.ui.anchor' => [
2035 'position' => 'top',
2036 'skinStyles' => [
2037 'default' => [
2038 'resources/src/mediawiki.ui/components/anchors.less',
2041 'targets' => [ 'desktop', 'mobile' ],
2043 // Lightweight module for button styles
2044 'mediawiki.ui.button' => [
2045 'position' => 'top',
2046 'skinStyles' => [
2047 'default' => [
2048 'resources/src/mediawiki.ui/components/buttons.less',
2051 'targets' => [ 'desktop', 'mobile' ],
2053 'mediawiki.ui.input' => [
2054 'position' => 'top',
2055 'skinStyles' => [
2056 'default' => [
2057 'resources/src/mediawiki.ui/components/inputs.less',
2060 'targets' => [ 'desktop', 'mobile' ],
2062 'mediawiki.ui.icon' => [
2063 'position' => 'top',
2064 'skinStyles' => [
2065 'default' => [
2066 'resources/src/mediawiki.ui/components/icons.less',
2069 'targets' => [ 'desktop', 'mobile' ],
2071 // Lightweight module for text styles
2072 'mediawiki.ui.text' => [
2073 'position' => 'top',
2074 'skinStyles' => [
2075 'default' => [
2076 'resources/src/mediawiki.ui/components/text.less',
2079 'targets' => [ 'desktop', 'mobile' ],
2082 'mediawiki.widgets' => [
2083 'scripts' => [
2084 'resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js',
2085 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.js',
2086 'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js',
2087 'resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js',
2088 'resources/src/mediawiki.widgets/mw.widgets.TitleSearchWidget.js',
2089 'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js',
2090 'resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js',
2092 'skinStyles' => [
2093 'default' => [
2094 'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.less',
2097 'dependencies' => [
2098 'oojs-ui-widgets',
2099 'mediawiki.widgets.styles',
2100 // TitleInputWidget
2101 'mediawiki.Title',
2102 'mediawiki.api',
2103 'jquery.byteLimit',
2104 // TitleOptionWidget
2105 'jquery.autoEllipsis',
2107 'messages' => [
2108 // NamespaceInputWidget
2109 'blanknamespace',
2110 'namespacesall',
2111 // TitleInputWidget
2112 'mw-widgets-titleinput-description-new-page',
2113 'mw-widgets-titleinput-description-redirect',
2115 'targets' => [ 'desktop', 'mobile' ],
2117 'mediawiki.widgets.styles' => [
2118 'skinStyles' => [
2119 'default' => [
2120 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.css',
2121 'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.base.css',
2124 'position' => 'top',
2125 'targets' => [ 'desktop', 'mobile' ],
2127 'mediawiki.widgets.DateInputWidget' => [
2128 'scripts' => [
2129 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js',
2130 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js',
2132 'skinStyles' => [
2133 'default' => [
2134 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less',
2135 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less',
2138 'messages' => [
2139 'mw-widgets-dateinput-no-date',
2140 'mw-widgets-dateinput-placeholder-day',
2141 'mw-widgets-dateinput-placeholder-month',
2143 'dependencies' => [
2144 'oojs-ui-widgets',
2145 'moment',
2147 'targets' => [ 'desktop', 'mobile' ],
2149 'mediawiki.widgets.datetime' => [
2150 'scripts' => [
2151 'resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.js',
2152 'resources/src/mediawiki.widgets.datetime/CalendarWidget.js',
2153 'resources/src/mediawiki.widgets.datetime/DateTimeFormatter.js',
2154 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js',
2155 'resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js',
2157 'skinStyles' => [
2158 'default' => [
2159 'resources/src/mediawiki.widgets.datetime/CalendarWidget.less',
2160 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.less',
2163 'messages' => [
2164 'timezone-utc',
2165 'timezone-local',
2166 'january',
2167 'february',
2168 'march',
2169 'april',
2170 'may_long',
2171 'june',
2172 'july',
2173 'august',
2174 'september',
2175 'october',
2176 'november',
2177 'december',
2178 'jan',
2179 'feb',
2180 'mar',
2181 'apr',
2182 'may',
2183 'jun',
2184 'jul',
2185 'aug',
2186 'sep',
2187 'oct',
2188 'nov',
2189 'dec',
2190 'sunday',
2191 'monday',
2192 'tuesday',
2193 'wednesday',
2194 'thursday',
2195 'friday',
2196 'saturday',
2197 'sun',
2198 'mon',
2199 'tue',
2200 'wed',
2201 'thu',
2202 'fri',
2203 'sat',
2204 'period-am',
2205 'period-pm',
2207 'dependencies' => [
2208 'oojs-ui-core',
2210 'targets' => [ 'desktop', 'mobile' ],
2212 'mediawiki.widgets.CategorySelector' => [
2213 'scripts' => [
2214 'resources/src/mediawiki.widgets/mw.widgets.CategoryCapsuleItemWidget.js',
2215 'resources/src/mediawiki.widgets/mw.widgets.CategorySelector.js',
2217 'dependencies' => [
2218 'oojs-ui-widgets',
2219 'mediawiki.api',
2220 'mediawiki.ForeignApi',
2221 'mediawiki.Title',
2223 'messages' => [
2224 'red-link-title',
2226 'targets' => [ 'desktop', 'mobile' ],
2228 'mediawiki.widgets.UserInputWidget' => [
2229 'scripts' => [
2230 'resources/src/mediawiki.widgets/mw.widgets.UserInputWidget.js',
2232 'dependencies' => [
2233 'oojs-ui-widgets',
2235 'targets' => [ 'desktop', 'mobile' ],
2237 'mediawiki.widgets.SearchInputWidget' => [
2238 'scripts' => [
2239 'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js',
2241 'dependencies' => [
2242 'mediawiki.searchSuggest',
2243 // FIXME: Needs TitleInputWidget only
2244 'mediawiki.widgets',
2247 'mediawiki.widgets.SearchInputWidget.styles' => [
2248 'skinStyles' => [
2249 'default' => [
2250 'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.css',
2253 'position' => 'top',
2254 'targets' => [ 'desktop', 'mobile' ],
2256 'mediawiki.widgets.StashedFileWidget' => [
2257 'scripts' => [
2258 'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.js',
2260 'skinStyles' => [
2261 'default' => [
2262 'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.less',
2265 'dependencies' => [
2266 'oojs-ui-core',
2269 /* es5-shim */
2270 'es5-shim' => [
2271 'scripts' => [
2272 'resources/lib/es5-shim/es5-shim.js',
2273 'resources/src/polyfill-object-create.js',
2275 'targets' => [ 'desktop', 'mobile' ],
2276 'skipFunction' => 'resources/src/es5-skip.js',
2279 /* dom-level2-shim */
2280 // IE 8
2281 'dom-level2-shim' => [
2282 'scripts' => 'resources/src/polyfill-nodeTypes.js',
2283 'targets' => [ 'desktop', 'mobile' ],
2284 'skipFunction' => 'resources/src/dom-level2-skip.js',
2287 /* OOjs */
2288 'oojs' => [
2289 'scripts' => [
2290 'resources/lib/oojs/oojs.jquery.js',
2291 'resources/src/oojs-global.js',
2293 'targets' => [ 'desktop', 'mobile' ],
2294 'dependencies' => [
2295 'es5-shim',
2296 'json',
2300 /* OOjs UI */
2301 // WARNING: OOjs-UI is NOT TESTED with older browsers and is likely to break
2302 // if loaded in browsers that don't support ES5
2303 // @see ResourcesOOUI.php