ApiMessage: Use a trait to avoid code duplication
[mediawiki.git] / resources / Resources.php
blob7c3bc743edf8c21f21806104c2da02af50bba9c5
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 array(
29 /**
30 * Special modules who have their own classes
32 'startup' => array( 'class' => 'ResourceLoaderStartUpModule' ),
34 // Scripts managed by the local wiki (stored in the MediaWiki namespace)
35 'site' => array( 'class' => 'ResourceLoaderSiteModule' ),
36 'noscript' => array(
37 'class' => 'ResourceLoaderWikiModule',
38 'styles' => array( 'MediaWiki:Noscript.css' ),
39 'group' => 'noscript',
41 'filepage' => array(
42 'position' => 'top',
43 'class' => 'ResourceLoaderWikiModule',
44 'styles' => array( 'MediaWiki:Filepage.css' ),
46 'user.groups' => array( 'class' => 'ResourceLoaderUserGroupsModule' ),
48 // Scripts managed by the current user (stored in their user space)
49 'user' => array( 'class' => 'ResourceLoaderUserModule' ),
51 // Scripts generated based on the current user's preferences
52 'user.cssprefs' => array( 'class' => 'ResourceLoaderUserCSSPrefsModule' ),
54 // Populate mediawiki.user placeholders with information about the current user
55 'user.defaults' => array( 'class' => 'ResourceLoaderUserDefaultsModule' ),
56 'user.options' => array( 'class' => 'ResourceLoaderUserOptionsModule' ),
57 'user.tokens' => array( 'class' => 'ResourceLoaderUserTokensModule' ),
59 // Scripts for the dynamic language specific data, like grammar forms.
60 'mediawiki.language.data' => array( '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' => array(
94 'position' => 'top',
95 'styles' => array(
96 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ),
99 'mediawiki.skinning.content' => array(
100 'position' => 'top',
101 'styles' => array(
102 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ),
103 'resources/src/mediawiki.skinning/content.css' => array( 'media' => 'screen' ),
106 // Used in the web installer. Test it after modifying this definition!
107 'mediawiki.skinning.interface' => array(
108 'position' => 'top',
109 'class' => 'ResourceLoaderSkinModule',
110 'styles' => array(
111 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ),
112 'resources/src/mediawiki.skinning/content.css' => array( 'media' => 'screen' ),
113 'resources/src/mediawiki.skinning/interface.css' => array( 'media' => 'screen' ),
117 'mediawiki.skinning.content.parsoid' => array(
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' => array(
123 'default' => 'resources/src/mediawiki.skinning/content.parsoid.less',
125 'targets' => array( 'desktop', 'mobile' ),
128 'mediawiki.skinning.content.externallinks' => array(
129 'position' => 'bottom',
130 'styles' => array(
131 'resources/src/mediawiki.skinning/content.externallinks.css' => array( 'media' => 'screen' ),
135 /* jQuery */
137 'jquery' => array(
138 'scripts' => array(
139 'resources/lib/jquery/jquery.js',
141 'raw' => true,
142 'targets' => array( 'desktop', 'mobile' ),
145 /* jQuery Plugins */
147 'jquery.accessKeyLabel' => array(
148 'scripts' => 'resources/src/jquery/jquery.accessKeyLabel.js',
149 'dependencies' => array(
150 'jquery.client',
151 'mediawiki.RegExp',
153 'messages' => array( 'brackets', 'word-separator' ),
154 'targets' => array( 'mobile', 'desktop' ),
156 'jquery.appear' => array(
157 'scripts' => 'resources/lib/jquery/jquery.appear.js',
159 'jquery.arrowSteps' => array(
160 'scripts' => 'resources/src/jquery/jquery.arrowSteps.js',
161 'styles' => 'resources/src/jquery/jquery.arrowSteps.css',
163 'jquery.async' => array(
164 'scripts' => 'resources/lib/jquery/jquery.async.js',
166 'jquery.autoEllipsis' => array(
167 'scripts' => 'resources/src/jquery/jquery.autoEllipsis.js',
168 'dependencies' => 'jquery.highlightText',
169 'targets' => array( 'desktop', 'mobile' ),
171 'jquery.badge' => array(
172 'scripts' => 'resources/src/jquery/jquery.badge.js',
173 'styles' => 'resources/src/jquery/jquery.badge.css',
174 'dependencies' => 'mediawiki.language',
176 'jquery.byteLength' => array(
177 'scripts' => 'resources/src/jquery/jquery.byteLength.js',
178 'targets' => array( 'desktop', 'mobile' ),
180 'jquery.byteLimit' => array(
181 'scripts' => 'resources/src/jquery/jquery.byteLimit.js',
182 'dependencies' => 'jquery.byteLength',
183 'targets' => array( 'desktop', 'mobile' ),
185 'jquery.checkboxShiftClick' => array(
186 'scripts' => 'resources/src/jquery/jquery.checkboxShiftClick.js',
187 'targets' => array( 'desktop', 'mobile' ),
189 'jquery.chosen' => array(
190 'scripts' => 'resources/lib/jquery.chosen/chosen.jquery.js',
191 'styles' => 'resources/lib/jquery.chosen/chosen.css',
193 'jquery.client' => array(
194 'scripts' => 'resources/lib/jquery.client/jquery.client.js',
195 'targets' => array( 'desktop', 'mobile' ),
197 'jquery.color' => array(
198 'scripts' => 'resources/src/jquery/jquery.color.js',
199 'dependencies' => 'jquery.colorUtil',
201 'jquery.colorUtil' => array(
202 'scripts' => 'resources/src/jquery/jquery.colorUtil.js',
204 'jquery.confirmable' => array(
205 'scripts' => array(
206 'resources/src/jquery/jquery.confirmable.js',
207 'resources/src/jquery/jquery.confirmable.mediawiki.js',
209 'messages' => array(
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' => array(
219 'scripts' => 'resources/lib/jquery/jquery.cookie.js',
220 'targets' => array( 'desktop', 'mobile' ),
222 'jquery.expandableField' => array(
223 'scripts' => 'resources/src/jquery/jquery.expandableField.js',
225 'jquery.farbtastic' => array(
226 'scripts' => 'resources/src/jquery/jquery.farbtastic.js',
227 'styles' => 'resources/src/jquery/jquery.farbtastic.css',
228 'dependencies' => 'jquery.colorUtil',
230 'jquery.footHovzer' => array(
231 'scripts' => 'resources/src/jquery/jquery.footHovzer.js',
232 'styles' => 'resources/src/jquery/jquery.footHovzer.css',
234 'jquery.form' => array(
235 'scripts' => 'resources/lib/jquery/jquery.form.js',
237 'jquery.fullscreen' => array(
238 'scripts' => 'resources/lib/jquery/jquery.fullscreen.js',
240 'jquery.getAttrs' => array(
241 'scripts' => 'resources/src/jquery/jquery.getAttrs.js',
242 'targets' => array( 'desktop', 'mobile' ),
244 'jquery.hidpi' => array(
245 'scripts' => 'resources/src/jquery/jquery.hidpi.js',
246 'targets' => array( 'desktop', 'mobile' ),
248 'jquery.highlightText' => array(
249 'scripts' => 'resources/src/jquery/jquery.highlightText.js',
250 'dependencies' => array(
251 'mediawiki.RegExp',
252 'dom-level2-shim',
254 'targets' => array( 'desktop', 'mobile' ),
256 'jquery.hoverIntent' => array(
257 'scripts' => 'resources/lib/jquery/jquery.hoverIntent.js',
259 'jquery.i18n' => array(
260 'scripts' => array(
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' => array(
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' => array( 'desktop', 'mobile' ),
288 'jquery.localize' => array(
289 'scripts' => 'resources/src/jquery/jquery.localize.js',
291 'jquery.makeCollapsible' => array(
292 'scripts' => 'resources/src/jquery/jquery.makeCollapsible.js',
293 'styles' => 'resources/src/jquery/jquery.makeCollapsible.css',
294 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
295 'targets' => array( 'desktop', 'mobile' ),
297 'jquery.mockjax' => array(
298 'scripts' => 'resources/lib/jquery/jquery.mockjax.js',
300 'jquery.mw-jump' => array(
301 'scripts' => 'resources/src/jquery/jquery.mw-jump.js',
302 'targets' => array( 'desktop', 'mobile' ),
304 'jquery.mwExtension' => array(
305 'scripts' => 'resources/src/jquery/jquery.mwExtension.js',
306 'targets' => array( 'desktop', 'mobile' ),
308 'jquery.placeholder' => array(
309 'scripts' => 'resources/src/jquery/jquery.placeholder.js',
310 'targets' => array( 'desktop', 'mobile' ),
312 'jquery.qunit' => array(
313 'scripts' => 'resources/lib/qunitjs/qunit.js',
314 'styles' => 'resources/lib/qunitjs/qunit.css',
315 'position' => 'top',
316 'targets' => array( 'desktop', 'mobile' ),
318 'jquery.qunit.completenessTest' => array(
319 'scripts' => 'resources/src/jquery/jquery.qunit.completenessTest.js',
320 'dependencies' => 'jquery.qunit',
321 'targets' => array( 'desktop', 'mobile' ),
323 'jquery.spinner' => array(
324 'scripts' => 'resources/src/jquery/jquery.spinner.js',
325 'styles' => 'resources/src/jquery/jquery.spinner.css',
327 'jquery.jStorage' => array(
328 'scripts' => 'resources/lib/jquery/jquery.jStorage.js',
329 'dependencies' => 'json',
331 'jquery.suggestions' => array(
332 'scripts' => 'resources/src/jquery/jquery.suggestions.js',
333 'styles' => 'resources/src/jquery/jquery.suggestions.css',
334 'dependencies' => 'jquery.highlightText',
336 'jquery.tabIndex' => array(
337 'scripts' => 'resources/src/jquery/jquery.tabIndex.js',
339 'jquery.tablesorter' => array(
340 'scripts' => 'resources/src/jquery/jquery.tablesorter.js',
341 'styles' => 'resources/src/jquery/jquery.tablesorter.less',
342 'messages' => array( 'sort-descending', 'sort-ascending' ),
343 'dependencies' => array(
344 'dom-level2-shim',
345 'mediawiki.RegExp',
346 'mediawiki.language.months',
349 'jquery.textSelection' => array(
350 'scripts' => 'resources/src/jquery/jquery.textSelection.js',
351 'dependencies' => 'jquery.client',
352 'targets' => array( 'mobile', 'desktop' ),
354 'jquery.throttle-debounce' => array(
355 'scripts' => 'resources/lib/jquery/jquery.ba-throttle-debounce.js',
356 'targets' => array( 'desktop', 'mobile' ),
358 'jquery.xmldom' => array(
359 'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
362 /* jQuery Tipsy */
364 'jquery.tipsy' => array(
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' => array(
372 'scripts' => 'resources/lib/jquery.ui/jquery.ui.core.js',
373 'dependencies' => array(
374 'jquery.ui.core.styles',
376 'group' => 'jquery.ui',
378 'jquery.ui.core.styles' => array(
379 'position' => 'top',
380 'skinStyles' => array(
381 'default' => array(
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' => array(
389 'scripts' => 'resources/lib/jquery.ui/jquery.ui.accordion.js',
390 'dependencies' => array(
391 'jquery.ui.core',
392 'jquery.ui.widget',
394 'skinStyles' => array(
395 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.accordion.css',
397 'group' => 'jquery.ui',
399 'jquery.ui.autocomplete' => array(
400 'scripts' => 'resources/lib/jquery.ui/jquery.ui.autocomplete.js',
401 'dependencies' => array(
402 'jquery.ui.core',
403 'jquery.ui.widget',
404 'jquery.ui.position',
405 'jquery.ui.menu',
407 'skinStyles' => array(
408 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.autocomplete.css',
410 'group' => 'jquery.ui',
412 'jquery.ui.button' => array(
413 'scripts' => 'resources/lib/jquery.ui/jquery.ui.button.js',
414 'dependencies' => array(
415 'jquery.ui.core',
416 'jquery.ui.widget',
418 'skinStyles' => array(
419 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.button.css',
421 'group' => 'jquery.ui',
423 'jquery.ui.datepicker' => array(
424 'scripts' => 'resources/lib/jquery.ui/jquery.ui.datepicker.js',
425 'dependencies' => 'jquery.ui.core',
426 'skinStyles' => array(
427 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.datepicker.css',
429 'languageScripts' => array(
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' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js',
440 'el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js',
441 'en-au' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js',
442 'en-gb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
443 'en-nz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js',
444 'eo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
445 'es' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js',
446 'et' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js',
447 'eu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
448 'fa' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
449 'fi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
450 'fo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
451 'fr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
452 'fr-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js',
453 'gl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
454 'he' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js',
455 'hi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
456 'hr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
457 'hu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
458 'hy' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
459 'id' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js',
460 'is' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js',
461 'it' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js',
462 'ja' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
463 'ka' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
464 'kk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
465 'km' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js',
466 'ko' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
467 'lb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
468 'lt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
469 'lv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
470 'mk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
471 'ml' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
472 'ms' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
473 'nl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
474 'nl-be' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js',
475 'no' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js',
476 'pl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
477 'pt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
478 'pt-br' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
479 'rm' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
480 'ro' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
481 'ru' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
482 'sk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
483 'sl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
484 'sq' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
485 'sr-sr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
486 'sr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
487 'sv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
488 'ta' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
489 'th' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js',
490 'tj' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js',
491 'tr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
492 'uk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
493 'vi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
494 'zh-cn' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
495 'zh-hk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
496 'zh-tw' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
498 'group' => 'jquery.ui',
500 'jquery.ui.dialog' => array(
501 'scripts' => 'resources/lib/jquery.ui/jquery.ui.dialog.js',
502 'dependencies' => array(
503 'jquery.ui.core',
504 'jquery.ui.widget',
505 'jquery.ui.button',
506 'jquery.ui.draggable',
507 'jquery.ui.mouse',
508 'jquery.ui.position',
509 'jquery.ui.resizable',
511 'skinStyles' => array(
512 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css',
514 'group' => 'jquery.ui',
516 'jquery.ui.draggable' => array(
517 'scripts' => 'resources/lib/jquery.ui/jquery.ui.draggable.js',
518 'dependencies' => array(
519 'jquery.ui.core',
520 'jquery.ui.mouse',
521 'jquery.ui.widget',
523 'group' => 'jquery.ui',
525 'jquery.ui.droppable' => array(
526 'scripts' => 'resources/lib/jquery.ui/jquery.ui.droppable.js',
527 'dependencies' => array(
528 'jquery.ui.core',
529 'jquery.ui.mouse',
530 'jquery.ui.widget',
531 'jquery.ui.draggable',
533 'group' => 'jquery.ui',
535 'jquery.ui.menu' => array(
536 'scripts' => 'resources/lib/jquery.ui/jquery.ui.menu.js',
537 'dependencies' => array(
538 'jquery.ui.core',
539 'jquery.ui.widget',
540 'jquery.ui.position',
542 'skinStyles' => array(
543 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.menu.css',
545 'group' => 'jquery.ui',
547 'jquery.ui.mouse' => array(
548 'scripts' => 'resources/lib/jquery.ui/jquery.ui.mouse.js',
549 'dependencies' => 'jquery.ui.widget',
550 'group' => 'jquery.ui',
552 'jquery.ui.position' => array(
553 'scripts' => 'resources/lib/jquery.ui/jquery.ui.position.js',
554 'group' => 'jquery.ui',
556 'jquery.ui.progressbar' => array(
557 'scripts' => 'resources/lib/jquery.ui/jquery.ui.progressbar.js',
558 'dependencies' => array(
559 'jquery.ui.core',
560 'jquery.ui.widget',
562 'skinStyles' => array(
563 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.progressbar.css',
565 'group' => 'jquery.ui',
567 'jquery.ui.resizable' => array(
568 'scripts' => 'resources/lib/jquery.ui/jquery.ui.resizable.js',
569 'dependencies' => array(
570 'jquery.ui.core',
571 'jquery.ui.widget',
572 'jquery.ui.mouse',
574 'skinStyles' => array(
575 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.resizable.css',
577 'group' => 'jquery.ui',
579 'jquery.ui.selectable' => array(
580 'scripts' => 'resources/lib/jquery.ui/jquery.ui.selectable.js',
581 'dependencies' => array(
582 'jquery.ui.core',
583 'jquery.ui.widget',
584 'jquery.ui.mouse',
586 'skinStyles' => array(
587 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.selectable.css',
589 'group' => 'jquery.ui',
591 'jquery.ui.slider' => array(
592 'scripts' => 'resources/lib/jquery.ui/jquery.ui.slider.js',
593 'dependencies' => array(
594 'jquery.ui.core',
595 'jquery.ui.widget',
596 'jquery.ui.mouse',
598 'skinStyles' => array(
599 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.slider.css',
601 'group' => 'jquery.ui',
603 'jquery.ui.sortable' => array(
604 'scripts' => 'resources/lib/jquery.ui/jquery.ui.sortable.js',
605 'dependencies' => array(
606 'jquery.ui.core',
607 'jquery.ui.mouse',
608 'jquery.ui.widget',
610 'group' => 'jquery.ui',
612 'jquery.ui.spinner' => array(
613 'scripts' => 'resources/lib/jquery.ui/jquery.ui.spinner.js',
614 'dependencies' => array(
615 'jquery.ui.core',
616 'jquery.ui.widget',
617 'jquery.ui.button',
619 'skinStyles' => array(
620 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.spinner.css',
622 'group' => 'jquery.ui',
624 'jquery.ui.tabs' => array(
625 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tabs.js',
626 'dependencies' => array(
627 'jquery.ui.core',
628 'jquery.ui.widget',
630 'skinStyles' => array(
631 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tabs.css',
633 'group' => 'jquery.ui',
635 'jquery.ui.tooltip' => array(
636 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tooltip.js',
637 'dependencies' => array(
638 'jquery.ui.core',
639 'jquery.ui.widget',
640 'jquery.ui.position',
642 'skinStyles' => array(
643 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tooltip.css',
645 'group' => 'jquery.ui',
647 'jquery.ui.widget' => array(
648 'scripts' => 'resources/lib/jquery.ui/jquery.ui.widget.js',
649 'group' => 'jquery.ui',
651 // Effects
652 'jquery.effects.core' => array(
653 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect.js',
654 'group' => 'jquery.ui',
656 'jquery.effects.blind' => array(
657 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-blind.js',
658 'dependencies' => 'jquery.effects.core',
659 'group' => 'jquery.ui',
661 'jquery.effects.bounce' => array(
662 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-bounce.js',
663 'dependencies' => 'jquery.effects.core',
664 'group' => 'jquery.ui',
666 'jquery.effects.clip' => array(
667 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-clip.js',
668 'dependencies' => 'jquery.effects.core',
669 'group' => 'jquery.ui',
671 'jquery.effects.drop' => array(
672 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-drop.js',
673 'dependencies' => 'jquery.effects.core',
674 'group' => 'jquery.ui',
676 'jquery.effects.explode' => array(
677 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-explode.js',
678 'dependencies' => 'jquery.effects.core',
679 'group' => 'jquery.ui',
681 'jquery.effects.fade' => array(
682 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fade.js',
683 'dependencies' => 'jquery.effects.core',
684 'group' => 'jquery.ui',
686 'jquery.effects.fold' => array(
687 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fold.js',
688 'dependencies' => 'jquery.effects.core',
689 'group' => 'jquery.ui',
691 'jquery.effects.highlight' => array(
692 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-highlight.js',
693 'dependencies' => 'jquery.effects.core',
694 'group' => 'jquery.ui',
696 'jquery.effects.pulsate' => array(
697 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-pulsate.js',
698 'dependencies' => 'jquery.effects.core',
699 'group' => 'jquery.ui',
701 'jquery.effects.scale' => array(
702 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-scale.js',
703 'dependencies' => 'jquery.effects.core',
704 'group' => 'jquery.ui',
706 'jquery.effects.shake' => array(
707 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-shake.js',
708 'dependencies' => 'jquery.effects.core',
709 'group' => 'jquery.ui',
711 'jquery.effects.slide' => array(
712 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-slide.js',
713 'dependencies' => 'jquery.effects.core',
714 'group' => 'jquery.ui',
716 'jquery.effects.transfer' => array(
717 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-transfer.js',
718 'dependencies' => 'jquery.effects.core',
719 'group' => 'jquery.ui',
722 /* json2 */
724 'json' => array(
725 'scripts' => 'resources/lib/json2/json2.js',
726 'targets' => array( 'desktop', 'mobile' ),
727 'skipFunction' => 'resources/src/json-skip.js',
730 /* Moment.js */
732 'moment' => array(
733 'scripts' => array(
734 'resources/lib/moment/moment.js',
735 'resources/src/moment-local-dmy.js',
737 'languageScripts' => array(
738 'af' => 'resources/lib/moment/locale/af.js',
739 'ar' => 'resources/lib/moment/locale/ar.js',
740 'ar-ma' => 'resources/lib/moment/locale/ar-ma.js',
741 'ar-sa' => 'resources/lib/moment/locale/ar-sa.js',
742 'az' => 'resources/lib/moment/locale/az.js',
743 'be' => 'resources/lib/moment/locale/be.js',
744 'bg' => 'resources/lib/moment/locale/bg.js',
745 'bn' => 'resources/lib/moment/locale/bn.js',
746 'bo' => 'resources/lib/moment/locale/bo.js',
747 'br' => 'resources/lib/moment/locale/br.js',
748 'bs' => 'resources/lib/moment/locale/bs.js',
749 'ca' => 'resources/lib/moment/locale/ca.js',
750 'cs' => 'resources/lib/moment/locale/cs.js',
751 'cv' => 'resources/lib/moment/locale/cv.js',
752 'cy' => 'resources/lib/moment/locale/cy.js',
753 'da' => 'resources/lib/moment/locale/da.js',
754 'de' => 'resources/lib/moment/locale/de.js',
755 'de-at' => 'resources/lib/moment/locale/de-at.js',
756 'el' => 'resources/lib/moment/locale/el.js',
757 'en-au' => 'resources/lib/moment/locale/en-au.js',
758 'en-ca' => 'resources/lib/moment/locale/en-ca.js',
759 'en-gb' => 'resources/lib/moment/locale/en-gb.js',
760 'eo' => 'resources/lib/moment/locale/eo.js',
761 'es' => 'resources/lib/moment/locale/es.js',
762 'et' => 'resources/lib/moment/locale/et.js',
763 'eu' => 'resources/lib/moment/locale/eu.js',
764 'fa' => 'resources/lib/moment/locale/fa.js',
765 'fi' => 'resources/lib/moment/locale/fi.js',
766 'fo' => 'resources/lib/moment/locale/fo.js',
767 'fr-ca' => 'resources/lib/moment/locale/fr-ca.js',
768 'fr' => 'resources/lib/moment/locale/fr.js',
769 'gl' => 'resources/lib/moment/locale/gl.js',
770 'he' => 'resources/lib/moment/locale/he.js',
771 'hi' => 'resources/lib/moment/locale/hi.js',
772 'hr' => 'resources/lib/moment/locale/hr.js',
773 'hu' => 'resources/lib/moment/locale/hu.js',
774 'hy-am' => 'resources/lib/moment/locale/hy-am.js',
775 'id' => 'resources/lib/moment/locale/id.js',
776 'is' => 'resources/lib/moment/locale/is.js',
777 'it' => 'resources/lib/moment/locale/it.js',
778 'ja' => 'resources/lib/moment/locale/ja.js',
779 'ka' => 'resources/lib/moment/locale/ka.js',
780 'ko' => 'resources/lib/moment/locale/ko.js',
781 'lt' => 'resources/lib/moment/locale/lt.js',
782 'lv' => 'resources/lib/moment/locale/lv.js',
783 'mk' => 'resources/lib/moment/locale/mk.js',
784 'ml' => 'resources/lib/moment/locale/ml.js',
785 'mr' => 'resources/lib/moment/locale/mr.js',
786 'ms-my' => 'resources/lib/moment/locale/ms-my.js',
787 'my' => 'resources/lib/moment/locale/my.js',
788 'nb' => 'resources/lib/moment/locale/nb.js',
789 'ne' => 'resources/lib/moment/locale/ne.js',
790 'nl' => 'resources/lib/moment/locale/nl.js',
791 'nn' => 'resources/lib/moment/locale/nn.js',
792 'pl' => 'resources/lib/moment/locale/pl.js',
793 'pt-br' => 'resources/lib/moment/locale/pt-br.js',
794 'pt' => 'resources/lib/moment/locale/pt.js',
795 'ro' => 'resources/lib/moment/locale/ro.js',
796 'ru' => 'resources/lib/moment/locale/ru.js',
797 'sk' => 'resources/lib/moment/locale/sk.js',
798 'sl' => 'resources/lib/moment/locale/sl.js',
799 'sq' => 'resources/lib/moment/locale/sq.js',
800 'sr' => 'resources/lib/moment/locale/sr.js',
801 'sr-ec' => 'resources/lib/moment/locale/sr-cyrl.js',
802 'sv' => 'resources/lib/moment/locale/sv.js',
803 'ta' => 'resources/lib/moment/locale/ta.js',
804 'th' => 'resources/lib/moment/locale/th.js',
805 'tl-ph' => 'resources/lib/moment/locale/tl-ph.js',
806 'tr' => 'resources/lib/moment/locale/tr.js',
807 'tzm' => 'resources/lib/moment/locale/tzm.js',
808 'tzm-latn' => 'resources/lib/moment/locale/tzm-latn.js',
809 'uk' => 'resources/lib/moment/locale/uk.js',
810 'uz' => 'resources/lib/moment/locale/uz.js',
811 'vi' => 'resources/lib/moment/locale/vi.js',
812 'zh-cn' => 'resources/lib/moment/locale/zh-cn.js',
813 'zh-tw' => 'resources/lib/moment/locale/zh-tw.js',
815 'targets' => array( 'desktop', 'mobile' ),
818 /* MediaWiki */
820 'mediawiki' => array(
821 'class' => 'ResourceLoaderRawFileModule',
822 // Keep in sync with maintenance/jsduck/eg-iframe.html
823 'scripts' => array(
824 'resources/lib/phpjs-sha1/sha1.js',
825 'resources/src/mediawiki/mediawiki.js',
826 'resources/src/mediawiki/mediawiki.requestIdleCallback.js',
827 'resources/src/mediawiki/mediawiki.errorLogger.js',
829 'debugScripts' => 'resources/src/mediawiki/mediawiki.log.js',
830 'targets' => array( 'desktop', 'mobile' ),
832 'mediawiki.apihelp' => array(
833 'styles' => 'resources/src/mediawiki/mediawiki.apihelp.css',
834 'targets' => array( 'desktop' ),
835 'position' => 'top',
837 'mediawiki.template' => array(
838 'scripts' => 'resources/src/mediawiki/mediawiki.template.js',
839 'targets' => array( 'desktop', 'mobile' ),
841 'mediawiki.template.mustache' => array(
842 'scripts' => array(
843 'resources/lib/mustache/mustache.js',
844 'resources/src/mediawiki/mediawiki.template.mustache.js',
846 'targets' => array( 'desktop', 'mobile' ),
847 'dependencies' => 'mediawiki.template',
849 'mediawiki.template.regexp' => array(
850 'scripts' => 'resources/src/mediawiki/mediawiki.template.regexp.js',
851 'targets' => array( 'desktop', 'mobile' ),
852 'dependencies' => 'mediawiki.template',
854 'mediawiki.apipretty' => array(
855 'styles' => 'resources/src/mediawiki/mediawiki.apipretty.css',
856 'targets' => array( 'desktop', 'mobile' ),
857 'position' => 'top',
859 'mediawiki.api' => array(
860 'scripts' => 'resources/src/mediawiki/api.js',
861 'dependencies' => array(
862 'mediawiki.util',
863 'user.tokens',
865 'targets' => array( 'desktop', 'mobile' ),
867 'mediawiki.api.category' => array(
868 'scripts' => 'resources/src/mediawiki/api/category.js',
869 'dependencies' => array(
870 'mediawiki.api',
871 'mediawiki.Title',
874 'mediawiki.api.edit' => array(
875 'scripts' => 'resources/src/mediawiki/api/edit.js',
876 'dependencies' => array(
877 'mediawiki.api',
878 'mediawiki.Title',
880 'targets' => array( 'desktop', 'mobile' ),
882 'mediawiki.api.login' => array(
883 'scripts' => 'resources/src/mediawiki/api/login.js',
884 'dependencies' => 'mediawiki.api',
886 'mediawiki.api.options' => array(
887 'scripts' => 'resources/src/mediawiki/api/options.js',
888 'dependencies' => 'mediawiki.api',
889 'targets' => array( 'desktop', 'mobile' ),
891 'mediawiki.api.parse' => array(
892 'scripts' => 'resources/src/mediawiki/api/parse.js',
893 'dependencies' => 'mediawiki.api',
894 'targets' => array( 'desktop', 'mobile' ),
896 'mediawiki.api.upload' => array(
897 'scripts' => 'resources/src/mediawiki/api/upload.js',
898 'dependencies' => array(
899 'dom-level2-shim',
900 'mediawiki.api',
901 'mediawiki.api.edit',
902 'json',
905 'mediawiki.api.user' => array(
906 'scripts' => 'resources/src/mediawiki/api/user.js',
907 'dependencies' => array(
908 'mediawiki.api',
910 'targets' => array( 'desktop', 'mobile' ),
912 'mediawiki.api.watch' => array(
913 'scripts' => 'resources/src/mediawiki/api/watch.js',
914 'dependencies' => array(
915 'mediawiki.api',
918 'mediawiki.api.messages' => array(
919 'scripts' => 'resources/src/mediawiki/api/messages.js',
920 'dependencies' => array(
921 'mediawiki.api',
924 'mediawiki.content.json' => array(
925 'position' => 'top',
926 'styles' => 'resources/src/mediawiki/mediawiki.content.json.css',
928 'mediawiki.confirmCloseWindow' => array(
929 'scripts' => array(
930 'resources/src/mediawiki/mediawiki.confirmCloseWindow.js',
932 'targets' => array( 'desktop', 'mobile' ),
934 'mediawiki.debug' => array(
935 'scripts' => array(
936 'resources/src/mediawiki/mediawiki.debug.js',
938 'styles' => array(
939 'resources/src/mediawiki/mediawiki.debug.less',
941 'dependencies' => array(
942 'jquery.footHovzer',
943 'jquery.tipsy',
945 'position' => 'bottom',
947 'mediawiki.debug.init' => array(
948 'scripts' => 'resources/src/mediawiki/mediawiki.debug.init.js',
949 'dependencies' => 'mediawiki.debug',
950 // Uses a custom mw.config variable that is set in debughtml,
951 // must be loaded on the bottom
952 'position' => 'bottom',
954 'mediawiki.feedback' => array(
955 'scripts' => 'resources/src/mediawiki/mediawiki.feedback.js',
956 'styles' => 'resources/src/mediawiki/mediawiki.feedback.css',
957 'dependencies' => array(
958 'mediawiki.messagePoster',
959 'mediawiki.Title',
960 'oojs-ui',
962 'messages' => array(
963 'feedback-adding',
964 'feedback-back',
965 'feedback-bugcheck',
966 'feedback-dialog-intro',
967 'feedback-external-bug-report-button',
968 'feedback-bugnew',
969 'feedback-bugornote',
970 'feedback-cancel',
971 'feedback-close',
972 'feedback-dialog-title',
973 'feedback-error-title',
974 'feedback-error1',
975 'feedback-error2',
976 'feedback-error3',
977 'feedback-error4',
978 'feedback-message',
979 'feedback-subject',
980 'feedback-submit',
981 'feedback-terms',
982 'feedback-termsofuse',
983 'feedback-thanks',
984 'feedback-thanks-title',
985 'feedback-useragent'
988 'mediawiki.feedlink' => array(
989 'position' => 'top',
990 'styles' => 'resources/src/mediawiki/mediawiki.feedlink.css',
992 'mediawiki.filewarning' => array(
993 'scripts' => 'resources/src/mediawiki/mediawiki.filewarning.js',
994 'styles' => 'resources/src/mediawiki/mediawiki.filewarning.less',
995 'dependencies' => array(
996 'oojs-ui',
999 'mediawiki.ForeignApi' => array(
1000 'targets' => array( 'desktop', 'mobile' ),
1001 'class' => 'ResourceLoaderForeignApiModule',
1002 // Additional dependencies generated dynamically
1003 'dependencies' => 'mediawiki.ForeignApi.core',
1005 'mediawiki.ForeignApi.core' => array(
1006 'scripts' => 'resources/src/mediawiki/ForeignApi.js',
1007 'dependencies' => array(
1008 'mediawiki.api',
1009 'oojs',
1011 'targets' => array( 'desktop', 'mobile' ),
1013 'mediawiki.helplink' => array(
1014 'position' => 'top',
1015 'styles' => array(
1016 'resources/src/mediawiki/mediawiki.helplink.less',
1018 'targets' => array( 'desktop', 'mobile' ),
1020 'mediawiki.hidpi' => array(
1021 'scripts' => 'resources/src/mediawiki/mediawiki.hidpi.js',
1022 'dependencies' => 'jquery.hidpi',
1023 'skipFunction' => 'resources/src/mediawiki.hidpi-skip.js',
1024 'targets' => array( 'desktop', 'mobile' ),
1026 'mediawiki.hlist' => array(
1027 'styles' => 'resources/src/mediawiki/mediawiki.hlist.css',
1029 'mediawiki.htmlform' => array(
1030 'scripts' => 'resources/src/mediawiki/mediawiki.htmlform.js',
1031 'dependencies' => array(
1032 'mediawiki.RegExp',
1033 'jquery.byteLimit',
1035 'messages' => array(
1036 'htmlform-chosen-placeholder',
1037 // @todo Load this message in content language
1038 'colon-separator',
1041 'mediawiki.htmlform.styles' => array(
1042 'styles' => 'resources/src/mediawiki/mediawiki.htmlform.css',
1043 'position' => 'top',
1045 'mediawiki.htmlform.ooui.styles' => array(
1046 'styles' => 'resources/src/mediawiki/mediawiki.htmlform.ooui.css',
1047 'position' => 'top',
1049 'mediawiki.icon' => array(
1050 'styles' => 'resources/src/mediawiki/mediawiki.icon.less',
1052 'mediawiki.inspect' => array(
1053 'scripts' => 'resources/src/mediawiki/mediawiki.inspect.js',
1054 'dependencies' => array(
1055 'jquery.byteLength',
1056 'mediawiki.RegExp',
1057 'json',
1059 'targets' => array( 'desktop', 'mobile' ),
1061 'mediawiki.messagePoster' => array(
1062 'scripts' => array(
1063 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.factory.js',
1064 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.MessagePoster.js',
1066 'dependencies' => array(
1067 'oojs',
1068 'mediawiki.api',
1069 'mediawiki.ForeignApi',
1071 'targets' => array( 'desktop', 'mobile' ),
1073 'mediawiki.messagePoster.wikitext' => array(
1074 'scripts' => array(
1075 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.WikitextMessagePoster.js',
1077 'dependencies' => array(
1078 'mediawiki.api.edit',
1079 'mediawiki.messagePoster',
1081 'targets' => array( 'desktop', 'mobile' ),
1083 'mediawiki.notification' => array(
1084 'styles' => array(
1085 'resources/src/mediawiki/mediawiki.notification.common.css',
1086 'resources/src/mediawiki/mediawiki.notification.hideForPrint.css'
1087 => array( 'media' => 'print' ),
1089 'skinStyles' => array(
1090 'default' => 'resources/src/mediawiki/mediawiki.notification.css',
1092 'scripts' => 'resources/src/mediawiki/mediawiki.notification.js',
1093 'dependencies' => 'mediawiki.page.startup',
1094 'targets' => array( 'desktop', 'mobile' ),
1096 'mediawiki.notify' => array(
1097 'scripts' => 'resources/src/mediawiki/mediawiki.notify.js',
1098 'targets' => array( 'desktop', 'mobile' ),
1100 'mediawiki.RegExp' => array(
1101 'scripts' => 'resources/src/mediawiki/mediawiki.RegExp.js',
1102 'targets' => array( 'desktop', 'mobile' ),
1104 'mediawiki.pager.tablePager' => array(
1105 'styles' => 'resources/src/mediawiki/mediawiki.pager.tablePager.less',
1106 'position' => 'top',
1108 'mediawiki.searchSuggest' => array(
1109 'scripts' => 'resources/src/mediawiki/mediawiki.searchSuggest.js',
1110 'styles' => 'resources/src/mediawiki/mediawiki.searchSuggest.css',
1111 'messages' => array(
1112 'searchsuggest-search',
1113 'searchsuggest-containing',
1115 'dependencies' => array(
1116 'jquery.client',
1117 'jquery.placeholder',
1118 'jquery.suggestions',
1119 'jquery.getAttrs',
1120 'mediawiki.api',
1123 'mediawiki.sectionAnchor' => array(
1124 'position' => 'top',
1125 // Back-compat to hide it on cached pages (T18691; Ie9e334e973; 2015-03-17)
1126 'styles' => 'resources/src/mediawiki/mediawiki.sectionAnchor.css',
1127 'targets' => array( 'desktop', 'mobile' ),
1129 'mediawiki.storage' => array(
1130 'scripts' => 'resources/src/mediawiki/mediawiki.storage.js',
1131 'targets' => array( 'desktop', 'mobile' ),
1133 'mediawiki.Title' => array(
1134 'scripts' => 'resources/src/mediawiki/mediawiki.Title.js',
1135 'dependencies' => array(
1136 'jquery.byteLength',
1137 'mediawiki.util',
1139 'targets' => array( 'desktop', 'mobile' ),
1141 'mediawiki.Upload' => array(
1142 'scripts' => 'resources/src/mediawiki/mediawiki.Upload.js',
1143 'dependencies' => array(
1144 'dom-level2-shim',
1145 'mediawiki.api.upload',
1148 'mediawiki.ForeignUpload' => array(
1149 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignUpload.js',
1150 'dependencies' => array(
1151 'mediawiki.ForeignApi',
1152 'mediawiki.Upload',
1153 'oojs',
1155 'messages' => array(
1156 'uploaddisabledtext',
1157 'upload-foreign-cant-upload',
1160 'mediawiki.ForeignStructuredUpload' => array(
1161 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js',
1162 'dependencies' => array(
1163 'mediawiki.ForeignUpload',
1166 'mediawiki.Upload.Dialog' => array(
1167 'scripts' => array(
1168 'resources/src/mediawiki/mediawiki.Upload.Dialog.js',
1170 'dependencies' => array(
1171 'mediawiki.Upload.BookletLayout',
1173 'messages' => array(
1174 'upload-dialog-title',
1175 'upload-dialog-button-cancel',
1176 'upload-dialog-button-done',
1177 'upload-dialog-button-save',
1178 'upload-dialog-button-upload',
1181 'mediawiki.Upload.BookletLayout' => array(
1182 'scripts' => array(
1183 'resources/src/mediawiki/mediawiki.Upload.BookletLayout.js',
1185 'dependencies' => array(
1186 'oojs-ui',
1187 'mediawiki.Title',
1188 'mediawiki.user',
1189 'mediawiki.Upload',
1190 'mediawiki.jqueryMsg',
1192 'messages' => array(
1193 'upload-form-label-select-file',
1194 'upload-form-label-infoform-title',
1195 'upload-form-label-infoform-name',
1196 'upload-form-label-infoform-name-tooltip',
1197 'upload-form-label-infoform-description',
1198 'upload-form-label-infoform-description-tooltip',
1199 'upload-form-label-usage-title',
1200 'upload-form-label-usage-filename',
1201 'api-error-unknownerror',
1202 'api-error-unknown-warning',
1203 'api-error-badaccess-groups',
1204 'api-error-badtoken',
1205 'api-error-copyuploaddisabled',
1206 'api-error-duplicate',
1207 'api-error-duplicate-archive',
1208 'api-error-empty-file',
1209 'api-error-emptypage',
1210 'api-error-fetchfileerror',
1211 'api-error-fileexists-forbidden',
1212 'api-error-fileexists-shared-forbidden',
1213 'api-error-file-too-large',
1214 'api-error-filename-tooshort',
1215 'api-error-filetype-banned',
1216 'api-error-filetype-banned-type',
1217 'api-error-filetype-missing',
1218 'api-error-hookaborted',
1219 'api-error-http',
1220 'api-error-illegal-filename',
1221 'api-error-internal-error',
1222 'api-error-invalid-file-key',
1223 'api-error-missingparam',
1224 'api-error-missingresult',
1225 'api-error-mustbeloggedin',
1226 'api-error-mustbeposted',
1227 'api-error-noimageinfo',
1228 'api-error-nomodule',
1229 'api-error-ok-but-empty',
1230 'api-error-overwrite',
1231 'api-error-stashfailed',
1232 'api-error-publishfailed',
1233 'api-error-stasherror',
1234 'api-error-stashedfilenotfound',
1235 'api-error-stashpathinvalid',
1236 'api-error-stashfilestorage',
1237 'api-error-stashzerolength',
1238 'api-error-stashnotloggedin',
1239 'api-error-stashwrongowner',
1240 'api-error-stashnosuchfilekey',
1241 'api-error-timeout',
1242 'api-error-unclassified',
1243 'api-error-unknown-code',
1244 'api-error-unknown-error',
1245 'api-error-uploaddisabled',
1246 'api-error-verification-error',
1247 'fileexists',
1248 'filepageexists',
1249 'filename-bad-prefix',
1250 'filename-thumb-name',
1251 'badfilename',
1252 'api-error-blacklisted', // HACK
1255 'mediawiki.ForeignStructuredUpload.BookletLayout' => array(
1256 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js',
1257 'styles' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.less',
1258 'dependencies' => array(
1259 'mediawiki.ForeignStructuredUpload',
1260 'mediawiki.Upload.BookletLayout',
1261 'mediawiki.widgets.CategorySelector',
1262 'mediawiki.widgets.DateInputWidget',
1263 'mediawiki.jqueryMsg',
1264 'moment',
1265 'mediawiki.libs.jpegmeta',
1267 'messages' => array(
1268 'foreign-structured-upload-form-label-own-work',
1269 'foreign-structured-upload-form-label-infoform-categories',
1270 'foreign-structured-upload-form-label-infoform-date',
1271 'foreign-structured-upload-form-label-own-work-message-default',
1272 'foreign-structured-upload-form-label-not-own-work-message-default',
1273 'foreign-structured-upload-form-label-not-own-work-local-default',
1274 'foreign-structured-upload-form-label-own-work-message-shared',
1275 'foreign-structured-upload-form-label-not-own-work-message-shared',
1276 'foreign-structured-upload-form-label-not-own-work-local-shared',
1277 'foreign-structured-upload-form-label-own-work-message-local',
1278 'foreign-structured-upload-form-label-not-own-work-message-local',
1279 'foreign-structured-upload-form-label-not-own-work-local-local',
1280 'foreign-structured-upload-form-2-label-intro',
1281 'foreign-structured-upload-form-2-label-ownwork',
1282 'foreign-structured-upload-form-2-label-noderiv',
1283 'foreign-structured-upload-form-2-label-useful',
1284 'foreign-structured-upload-form-2-label-ccbysa',
1285 'foreign-structured-upload-form-2-label-alternative',
1286 'foreign-structured-upload-form-2-label-termsofuse',
1287 'foreign-structured-upload-form-3-label-question-website',
1288 'foreign-structured-upload-form-3-label-question-ownwork',
1289 'foreign-structured-upload-form-3-label-question-noderiv',
1290 'foreign-structured-upload-form-3-label-yes',
1291 'foreign-structured-upload-form-3-label-no',
1292 'foreign-structured-upload-form-3-label-alternative',
1293 'foreign-structured-upload-form-4-label-good',
1294 'foreign-structured-upload-form-4-label-bad',
1296 'templates' => array(
1297 'guide.html' => 'resources/src/mediawiki/bookletlayout/option4/guide.html',
1300 'mediawiki.toc' => array(
1301 'scripts' => 'resources/src/mediawiki/mediawiki.toc.js',
1302 'styles' => array(
1303 'resources/src/mediawiki/mediawiki.toc.css'
1304 => array( 'media' => 'screen' ),
1305 'resources/src/mediawiki/mediawiki.toc.print.css'
1306 => array( 'media' => 'print' ),
1308 'dependencies' => 'mediawiki.cookie',
1309 'messages' => array( 'showtoc', 'hidetoc' ),
1310 'targets' => array( 'desktop', 'mobile' ),
1312 'mediawiki.Uri' => array(
1313 'scripts' => 'resources/src/mediawiki/mediawiki.Uri.js',
1314 'templates' => array(
1315 'strict.regexp' => 'resources/src/mediawiki/mediawiki.Uri.strict.regexp',
1316 'loose.regexp' => 'resources/src/mediawiki/mediawiki.Uri.loose.regexp',
1318 'dependencies' => 'mediawiki.util',
1319 'targets' => array( 'desktop', 'mobile' ),
1321 'mediawiki.user' => array(
1322 'scripts' => 'resources/src/mediawiki/mediawiki.user.js',
1323 'dependencies' => array(
1324 'mediawiki.cookie',
1325 'mediawiki.api',
1326 'mediawiki.api.user',
1327 'user.options',
1328 'user.tokens',
1330 'targets' => array( 'desktop', 'mobile' ),
1332 'mediawiki.userSuggest' => array(
1333 'scripts' => 'resources/src/mediawiki/mediawiki.userSuggest.js',
1334 'dependencies' => array(
1335 'jquery.suggestions',
1336 'mediawiki.api'
1339 'mediawiki.util' => array(
1340 'scripts' => 'resources/src/mediawiki/mediawiki.util.js',
1341 'dependencies' => array(
1342 'jquery.accessKeyLabel',
1343 'mediawiki.RegExp',
1344 'mediawiki.notify',
1346 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
1347 'targets' => array( 'desktop', 'mobile' ),
1349 'mediawiki.checkboxtoggle' => array(
1350 'scripts' => 'resources/src/mediawiki/mediawiki.checkboxtoggle.js',
1351 'position' => 'top',
1353 'mediawiki.checkboxtoggle.styles' => array(
1354 'styles' => 'resources/src/mediawiki/mediawiki.checkboxtoggle.css',
1355 'position' => 'top',
1357 'mediawiki.cookie' => array(
1358 'scripts' => 'resources/src/mediawiki/mediawiki.cookie.js',
1359 'dependencies' => 'jquery.cookie',
1360 'targets' => array( 'desktop', 'mobile' ),
1362 'mediawiki.toolbar' => array(
1363 'class' => 'ResourceLoaderEditToolbarModule',
1364 'scripts' => 'resources/src/mediawiki.toolbar/toolbar.js',
1365 'styles' => 'resources/src/mediawiki.toolbar/toolbar.less',
1366 'position' => 'top',
1368 'mediawiki.experiments' => array(
1369 'scripts' => 'resources/src/mediawiki/mediawiki.experiments.js',
1370 'targets' => array( 'desktop', 'mobile' ),
1372 'mediawiki.raggett' => array(
1373 'styles' => 'resources/src/mediawiki/mediawiki.raggett.css',
1374 'targets' => array( 'desktop', 'mobile' ),
1377 /* MediaWiki Action */
1379 'mediawiki.action.edit' => array(
1380 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.js',
1381 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.css',
1382 'dependencies' => array(
1383 'mediawiki.action.edit.styles',
1384 'jquery.textSelection',
1385 'jquery.byteLimit',
1387 'position' => 'top',
1389 'mediawiki.action.edit.styles' => array(
1390 'position' => 'top',
1391 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.styles.css',
1393 'mediawiki.action.edit.collapsibleFooter' => array(
1394 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
1395 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
1396 'dependencies' => array(
1397 'jquery.makeCollapsible',
1398 'mediawiki.cookie',
1399 'mediawiki.icon',
1402 'mediawiki.action.edit.preview' => array(
1403 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.js',
1404 'dependencies' => array(
1405 'jquery.form',
1406 'jquery.spinner',
1407 'jquery.textSelection',
1408 'mediawiki.api',
1409 'mediawiki.action.history.diff',
1410 'mediawiki.util',
1411 'mediawiki.jqueryMsg',
1413 'messages' => array(
1414 // Keep the uses message keys in sync with EditPage#setHeaders
1415 'creating',
1416 'editconflict',
1417 'editing',
1418 'editingcomment',
1419 'editingsection',
1420 'pagetitle',
1421 'otherlanguages',
1422 'summary-preview',
1423 'subject-preview',
1424 'parentheses',
1425 'previewerrortext',
1428 'mediawiki.action.edit.stash' => array(
1429 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.stash.js',
1430 'dependencies' => array(
1431 'jquery.getAttrs',
1432 'mediawiki.api',
1435 'mediawiki.action.history' => array(
1436 'position' => 'top',
1437 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
1438 'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
1440 'mediawiki.action.history.diff' => array(
1441 'position' => 'top',
1442 'styles' => array(
1443 'resources/src/mediawiki.action/mediawiki.action.history.diff.css',
1444 'resources/src/mediawiki.action/mediawiki.action.history.diff.print.css' => array(
1445 'media' => 'print'
1448 'targets' => array( 'desktop', 'mobile' ),
1450 'mediawiki.action.view.dblClickEdit' => array(
1451 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
1452 'dependencies' => array(
1453 'mediawiki.util',
1454 'mediawiki.page.startup',
1455 'user.options',
1458 'mediawiki.action.view.metadata' => array(
1459 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.css',
1460 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.js',
1461 'messages' => array(
1462 'metadata-expand',
1463 'metadata-collapse',
1466 'mediawiki.action.view.categoryPage.styles' => array(
1467 'position' => 'top',
1468 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less',
1469 'targets' => array( 'desktop', 'mobile' )
1471 'mediawiki.action.view.postEdit' => array(
1472 'templates' => array(
1473 'postEdit.html' => 'resources/src/mediawiki.action/templates/postEdit.html',
1475 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.js',
1476 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.css',
1477 'dependencies' => array(
1478 'mediawiki.cookie',
1479 'mediawiki.jqueryMsg'
1481 'messages' => array(
1482 'postedit-confirmation-created',
1483 'postedit-confirmation-restored',
1484 'postedit-confirmation-saved',
1487 'mediawiki.action.view.redirect' => array(
1488 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.redirect.js',
1489 'dependencies' => 'jquery.client',
1490 'position' => 'top',
1491 'targets' => array( 'desktop', 'mobile' ),
1493 'mediawiki.action.view.redirectPage' => array(
1494 'position' => 'top',
1495 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css',
1497 'mediawiki.action.view.rightClickEdit' => array(
1498 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
1500 'mediawiki.action.edit.editWarning' => array(
1501 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js',
1502 'dependencies' => array(
1503 'jquery.textSelection',
1504 'mediawiki.jqueryMsg',
1505 'mediawiki.confirmCloseWindow',
1506 'user.options',
1508 'messages' => array(
1509 'editwarning-warning',
1510 // editwarning-warning uses {{int:prefs-editing}}
1511 'prefs-editing'
1514 'mediawiki.action.view.filepage' => array(
1515 'styles' => array(
1516 'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.css' =>
1517 array( 'media' => 'print' ),
1518 'resources/src/mediawiki.action/mediawiki.action.view.filepage.css',
1520 'position' => 'top',
1523 /* MediaWiki Language */
1525 'mediawiki.language' => array(
1526 'scripts' => array(
1527 'resources/src/mediawiki.language/mediawiki.language.js',
1528 'resources/src/mediawiki.language/mediawiki.language.numbers.js',
1529 'resources/src/mediawiki.language/mediawiki.language.fallback.js',
1531 'languageScripts' => array(
1532 'bs' => 'resources/src/mediawiki.language/languages/bs.js',
1533 'dsb' => 'resources/src/mediawiki.language/languages/dsb.js',
1534 'fi' => 'resources/src/mediawiki.language/languages/fi.js',
1535 'ga' => 'resources/src/mediawiki.language/languages/ga.js',
1536 'he' => 'resources/src/mediawiki.language/languages/he.js',
1537 'hsb' => 'resources/src/mediawiki.language/languages/hsb.js',
1538 'hu' => 'resources/src/mediawiki.language/languages/hu.js',
1539 'hy' => 'resources/src/mediawiki.language/languages/hy.js',
1540 'la' => 'resources/src/mediawiki.language/languages/la.js',
1541 'os' => 'resources/src/mediawiki.language/languages/os.js',
1542 'ru' => 'resources/src/mediawiki.language/languages/ru.js',
1543 'sl' => 'resources/src/mediawiki.language/languages/sl.js',
1544 'uk' => 'resources/src/mediawiki.language/languages/uk.js',
1546 'dependencies' => array(
1547 'mediawiki.language.data',
1548 'mediawiki.cldr',
1550 'targets' => array( 'desktop', 'mobile' ),
1551 'messages' => array(
1552 'and',
1553 'comma-separator',
1554 'word-separator'
1558 'mediawiki.cldr' => array(
1559 'scripts' => 'resources/src/mediawiki.language/mediawiki.cldr.js',
1560 'dependencies' => array(
1561 'mediawiki.libs.pluralruleparser',
1563 'targets' => array( 'desktop', 'mobile' ),
1566 'mediawiki.libs.pluralruleparser' => array(
1567 'scripts' => 'resources/src/mediawiki.libs/CLDRPluralRuleParser.js',
1568 'targets' => array( 'desktop', 'mobile' ),
1571 'mediawiki.language.init' => array(
1572 'scripts' => 'resources/src/mediawiki.language/mediawiki.language.init.js',
1573 'targets' => array( 'desktop', 'mobile' ),
1576 'mediawiki.jqueryMsg' => array(
1577 // Add data for mediawiki.jqueryMsg, such as allowed tags
1578 'class' => 'ResourceLoaderJqueryMsgModule',
1579 'scripts' => 'resources/src/mediawiki/mediawiki.jqueryMsg.js',
1580 'dependencies' => array(
1581 'mediawiki.util',
1582 'mediawiki.language',
1583 'user.options',
1584 'dom-level2-shim',
1586 'targets' => array( 'desktop', 'mobile' ),
1589 'mediawiki.language.months' => array(
1590 'scripts' => 'resources/src/mediawiki.language/mediawiki.language.months.js',
1591 'dependencies' => 'mediawiki.language',
1592 'messages' => array_merge(
1593 Language::$mMonthMsgs,
1594 Language::$mMonthGenMsgs,
1595 Language::$mMonthAbbrevMsgs
1599 'mediawiki.language.names' => array( 'class' => 'ResourceLoaderLanguageNamesModule' ),
1601 'mediawiki.language.specialCharacters' => array(
1602 'class' => 'ResourceLoaderSpecialCharacterDataModule'
1605 /* MediaWiki Libs */
1607 'mediawiki.libs.jpegmeta' => array(
1608 'scripts' => 'resources/src/mediawiki.libs/mediawiki.libs.jpegmeta.js',
1611 /* MediaWiki Page */
1613 'mediawiki.page.gallery' => array(
1614 'scripts' => 'resources/src/mediawiki/page/gallery.js',
1615 'dependencies' => array(
1616 'mediawiki.page.gallery.styles',
1617 'jquery.throttle-debounce',
1620 'mediawiki.page.gallery.styles' => array(
1621 'styles' => array(
1622 'resources/src/mediawiki/page/gallery-print.css' => array( 'media' => 'print' ),
1623 'resources/src/mediawiki/page/gallery.css',
1625 'position' => 'top',
1626 'targets' => array( 'desktop', 'mobile' ),
1628 'mediawiki.page.ready' => array(
1629 'scripts' => 'resources/src/mediawiki/page/ready.js',
1630 'dependencies' => array(
1631 'jquery.accessKeyLabel',
1632 'jquery.checkboxShiftClick',
1633 'jquery.makeCollapsible',
1634 'jquery.placeholder',
1635 'jquery.mw-jump',
1637 'targets' => array( 'desktop', 'mobile' ),
1639 'mediawiki.page.startup' => array(
1640 'scripts' => 'resources/src/mediawiki/page/startup.js',
1641 'dependencies' => 'mediawiki.util',
1642 'position' => 'top',
1643 'targets' => array( 'desktop', 'mobile' ),
1645 'mediawiki.page.patrol.ajax' => array(
1646 'scripts' => 'resources/src/mediawiki/page/patrol.ajax.js',
1647 'dependencies' => array(
1648 'mediawiki.page.startup',
1649 'mediawiki.api',
1650 'mediawiki.util',
1651 'mediawiki.Title',
1652 'mediawiki.notify',
1653 'jquery.spinner',
1654 'user.tokens'
1656 'messages' => array(
1657 'markedaspatrollednotify',
1658 'markedaspatrollederrornotify',
1659 'markedaspatrollederror-noautopatrol'
1662 'mediawiki.page.watch.ajax' => array(
1663 'scripts' => 'resources/src/mediawiki/page/watch.js',
1664 'dependencies' => array(
1665 'mediawiki.page.startup',
1666 'mediawiki.api.watch',
1667 'mediawiki.notify',
1668 'mediawiki.util',
1669 'jquery.accessKeyLabel',
1670 'mediawiki.RegExp',
1672 'messages' => array(
1673 'watch',
1674 'unwatch',
1675 'watching',
1676 'unwatching',
1677 'tooltip-ca-watch',
1678 'tooltip-ca-unwatch',
1679 'watcherrortext',
1682 'mediawiki.page.image.pagination' => array(
1683 'scripts' => 'resources/src/mediawiki/page/image-pagination.js',
1684 'dependencies' => array(
1685 'mediawiki.Uri',
1686 'mediawiki.util',
1687 'jquery.spinner',
1691 /* MediaWiki Special pages */
1693 'mediawiki.special' => array(
1694 'position' => 'top',
1695 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.js',
1696 'styles' => 'resources/src/mediawiki.special/mediawiki.special.css',
1698 'mediawiki.special.apisandbox.styles' => array(
1699 'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.top.css',
1701 'mediawiki.special.apisandbox' => array(
1702 'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.css',
1703 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.js',
1704 'dependencies' => array(
1705 'mediawiki.special',
1706 'mediawiki.api',
1707 'mediawiki.jqueryMsg',
1708 'oojs-ui',
1709 'mediawiki.widgets.datetime',
1711 'messages' => array(
1712 'apisandbox-intro',
1713 'apisandbox-submit',
1714 'apisandbox-reset',
1715 'apisandbox-fullscreen',
1716 'apisandbox-fullscreen-tooltip',
1717 'apisandbox-unfullscreen',
1718 'apisandbox-unfullscreen-tooltip',
1719 'apisandbox-retry',
1720 'apisandbox-loading',
1721 'apisandbox-load-error',
1722 'apisandbox-fetch-token',
1723 'apisandbox-helpurls',
1724 'apisandbox-examples',
1725 'apisandbox-dynamic-parameters',
1726 'apisandbox-dynamic-parameters-add-label',
1727 'apisandbox-dynamic-parameters-add-placeholder',
1728 'apisandbox-dynamic-error-exists',
1729 'apisandbox-deprecated-parameters',
1730 'apisandbox-no-parameters',
1731 'api-help-param-limit',
1732 'api-help-param-limit2',
1733 'api-help-param-integer-min',
1734 'api-help-param-integer-max',
1735 'api-help-param-integer-minmax',
1736 'api-help-param-multi-separate',
1737 'api-help-param-multi-max',
1738 'apisandbox-submit-invalid-fields-title',
1739 'apisandbox-submit-invalid-fields-message',
1740 'apisandbox-results',
1741 'apisandbox-sending-request',
1742 'apisandbox-loading-results',
1743 'apisandbox-results-error',
1744 'apisandbox-request-url-label',
1745 'apisandbox-request-time',
1746 'apisandbox-results-fixtoken',
1747 'apisandbox-results-fixtoken-fail',
1748 'apisandbox-alert-page',
1749 'apisandbox-alert-field',
1750 'blanknamespace',
1753 'mediawiki.special.block' => array(
1754 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.block.js',
1755 'styles' => 'resources/src/mediawiki.special/mediawiki.special.block.css',
1756 'dependencies' => 'mediawiki.util',
1758 'mediawiki.special.blocklist' => array(
1759 'styles' => 'resources/src/mediawiki.special/mediawiki.special.blocklist.css',
1760 'position' => 'top',
1762 'mediawiki.special.changeslist' => array(
1763 'position' => 'top',
1764 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.css',
1766 'mediawiki.special.changeslist.legend' => array(
1767 'position' => 'top',
1768 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.css',
1770 'mediawiki.special.changeslist.legend.js' => array(
1771 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js',
1772 'dependencies' => array(
1773 'jquery.makeCollapsible',
1774 'mediawiki.cookie',
1777 'mediawiki.special.changeslist.enhanced' => array(
1778 'position' => 'top',
1779 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.enhanced.css',
1781 'mediawiki.special.changeslist.visitedstatus' => array(
1782 'position' => 'top',
1783 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.visitedstatus.js',
1785 'mediawiki.special.comparepages.styles' => array(
1786 'position' => 'top',
1787 'styles' => 'resources/src/mediawiki.special/mediawiki.special.comparepages.styles.less',
1789 'mediawiki.special.edittags' => array(
1790 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.edittags.js',
1791 'dependencies' => array(
1792 'jquery.chosen',
1794 'messages' => array(
1795 'tags-edit-chosen-placeholder',
1796 'tags-edit-chosen-no-results',
1799 'mediawiki.special.edittags.styles' => array(
1800 'styles' => 'resources/src/mediawiki.special/mediawiki.special.edittags.css',
1801 'position' => 'top',
1803 'mediawiki.special.import' => array(
1804 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.import.js',
1806 'mediawiki.special.movePage' => array(
1807 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.movePage.js',
1808 'dependencies' => array(
1809 'jquery.byteLimit',
1810 'mediawiki.widgets',
1813 'mediawiki.special.movePage.styles' => array(
1814 'styles' => 'resources/src/mediawiki.special/mediawiki.special.movePage.css',
1815 'position' => 'top',
1817 'mediawiki.special.pageLanguage' => array(
1818 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.pageLanguage.js',
1819 'dependencies' => array(
1820 'oojs-ui',
1823 'mediawiki.special.pagesWithProp' => array(
1824 'position' => 'top',
1825 'styles' => 'resources/src/mediawiki.special/mediawiki.special.pagesWithProp.css',
1827 'mediawiki.special.preferences' => array(
1828 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.preferences.js',
1829 'position' => 'top',
1830 'messages' => array(
1831 'prefs-tabs-navigation-hint',
1832 'prefswarning-warning',
1833 'saveprefs',
1834 'savedprefs',
1836 'dependencies' => array(
1837 'mediawiki.language',
1838 'mediawiki.confirmCloseWindow',
1839 'mediawiki.notification',
1842 'mediawiki.special.preferences.styles' => array(
1843 'styles' => 'resources/src/mediawiki.special/mediawiki.special.preferences.styles.css',
1844 'position' => 'top',
1846 'mediawiki.special.recentchanges' => array(
1847 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.recentchanges.js',
1848 'dependencies' => 'mediawiki.special',
1849 'position' => 'top',
1851 'mediawiki.special.search' => array(
1852 'position' => 'top',
1853 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.search.js',
1854 'styles' => 'resources/src/mediawiki.special/mediawiki.special.search.css',
1855 'messages' => array(
1856 'powersearch-togglelabel',
1857 'powersearch-toggleall',
1858 'powersearch-togglenone',
1861 'mediawiki.special.undelete' => array(
1862 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.undelete.js',
1864 'mediawiki.special.upload' => array(
1865 'templates' => array(
1866 'thumbnail.html' => 'resources/src/mediawiki.special/templates/thumbnail.html',
1868 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.upload.js',
1869 'messages' => array(
1870 'widthheight',
1871 'size-bytes',
1872 'size-kilobytes',
1873 'size-megabytes',
1874 'size-gigabytes',
1875 'largefileserver',
1876 'editwarning-warning',
1877 // editwarning-warning uses {{int:prefs-editing}}
1878 'prefs-editing',
1880 'dependencies' => array(
1881 'jquery.spinner',
1882 'mediawiki.jqueryMsg',
1883 'mediawiki.api',
1884 'mediawiki.libs.jpegmeta',
1885 'mediawiki.Title',
1886 'mediawiki.util',
1887 'mediawiki.confirmCloseWindow',
1888 'user.options',
1891 'mediawiki.special.userlogin.common.styles' => array(
1892 'styles' => array(
1893 'resources/src/mediawiki.special/mediawiki.special.userlogin.common.css',
1895 'position' => 'top',
1897 'mediawiki.special.userlogin.signup.styles' => array(
1898 'position' => 'top',
1899 'styles' => array(
1900 'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.css',
1903 'mediawiki.special.userlogin.login.styles' => array(
1904 'position' => 'top',
1905 'styles' => array(
1906 'resources/src/mediawiki.special/mediawiki.special.userlogin.login.css',
1909 'mediawiki.special.userlogin.signup.js' => array(
1910 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js',
1911 'messages' => array(
1912 'createacct-error',
1913 'createacct-emailrequired',
1914 'noname',
1915 'userexists',
1917 'dependencies' => array(
1918 'mediawiki.api',
1919 'mediawiki.jqueryMsg',
1920 'jquery.throttle-debounce',
1923 'mediawiki.special.unwatchedPages' => array(
1924 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.js',
1925 'styles' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.css',
1926 'messages' => array(
1927 'addedwatchtext-short',
1928 'removedwatchtext-short',
1929 'unwatch',
1930 'unwatching',
1931 'watch',
1932 'watcherrortext',
1933 'watching',
1935 'dependencies' => array(
1936 'mediawiki.api',
1937 'mediawiki.api.watch',
1938 'mediawiki.notify',
1939 'mediawiki.Title',
1940 'mediawiki.util',
1943 'mediawiki.special.watchlist' => array(
1944 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.watchlist.js',
1946 'mediawiki.special.version' => array(
1947 'styles' => 'resources/src/mediawiki.special/mediawiki.special.version.css',
1950 /* MediaWiki Installer */
1952 // Used in the web installer. Test it after modifying this definition!
1953 'mediawiki.legacy.config' => array(
1954 // These files are not actually loaded via ResourceLoader, so dependencies etc. won't work.
1955 'scripts' => 'mw-config/config.js',
1956 'styles' => 'mw-config/config.css',
1959 /* MediaWiki Legacy */
1961 'mediawiki.legacy.commonPrint' => array(
1962 'position' => 'top',
1963 'styles' => array(
1964 'resources/src/mediawiki.legacy/commonPrint.css' => array( 'media' => 'print' )
1967 'mediawiki.legacy.protect' => array(
1968 'scripts' => 'resources/src/mediawiki.legacy/protect.js',
1969 'dependencies' => 'jquery.byteLimit',
1970 'messages' => array( 'protect-unchain-permissions' )
1972 // Used in the web installer. Test it after modifying this definition!
1973 'mediawiki.legacy.shared' => array(
1974 'position' => 'top',
1975 'styles' => array(
1976 'resources/src/mediawiki.legacy/shared.css' => array( 'media' => 'screen' )
1979 'mediawiki.legacy.oldshared' => array(
1980 'position' => 'top',
1981 'styles' => array(
1982 'resources/src/mediawiki.legacy/oldshared.css' => array( 'media' => 'screen' )
1985 'mediawiki.legacy.wikibits' => array(
1986 'scripts' => 'resources/src/mediawiki.legacy/wikibits.js',
1987 'dependencies' => 'mediawiki.util',
1988 'position' => 'top',
1989 'targets' => array( 'desktop', 'mobile' ),
1992 /* MediaWiki UI */
1994 'mediawiki.ui' => array(
1995 'position' => 'top',
1996 'skinStyles' => array(
1997 'default' => array(
1998 'resources/src/mediawiki.ui/default.less',
2001 'targets' => array( 'desktop', 'mobile' ),
2003 'mediawiki.ui.checkbox' => array(
2004 'position' => 'top',
2005 'skinStyles' => array(
2006 'default' => array(
2007 'resources/src/mediawiki.ui/components/checkbox.less',
2010 'targets' => array( 'desktop', 'mobile' ),
2012 'mediawiki.ui.radio' => array(
2013 'position' => 'top',
2014 'skinStyles' => array(
2015 'default' => array(
2016 'resources/src/mediawiki.ui/components/radio.less',
2019 'targets' => array( 'desktop', 'mobile' ),
2021 // Lightweight module for anchor styles
2022 'mediawiki.ui.anchor' => array(
2023 'position' => 'top',
2024 'skinStyles' => array(
2025 'default' => array(
2026 'resources/src/mediawiki.ui/components/anchors.less',
2029 'targets' => array( 'desktop', 'mobile' ),
2031 // Lightweight module for button styles
2032 'mediawiki.ui.button' => array(
2033 'position' => 'top',
2034 'skinStyles' => array(
2035 'default' => array(
2036 'resources/src/mediawiki.ui/components/buttons.less',
2039 'targets' => array( 'desktop', 'mobile' ),
2041 'mediawiki.ui.input' => array(
2042 'position' => 'top',
2043 'skinStyles' => array(
2044 'default' => array(
2045 'resources/src/mediawiki.ui/components/inputs.less',
2048 'targets' => array( 'desktop', 'mobile' ),
2050 'mediawiki.ui.icon' => array(
2051 'position' => 'top',
2052 'skinStyles' => array(
2053 'default' => array(
2054 'resources/src/mediawiki.ui/components/icons.less',
2057 'targets' => array( 'desktop', 'mobile' ),
2059 // Lightweight module for text styles
2060 'mediawiki.ui.text' => array(
2061 'position' => 'top',
2062 'skinStyles' => array(
2063 'default' => array(
2064 'resources/src/mediawiki.ui/components/text.less',
2067 'targets' => array( 'desktop', 'mobile' ),
2070 'mediawiki.widgets' => array(
2071 'scripts' => array(
2072 'resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js',
2073 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.js',
2074 'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js',
2075 'resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js',
2076 'resources/src/mediawiki.widgets/mw.widgets.TitleSearchWidget.js',
2077 'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js',
2078 'resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js',
2080 'skinStyles' => array(
2081 'default' => array(
2082 'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.less',
2085 'dependencies' => array(
2086 'oojs-ui',
2087 'mediawiki.widgets.styles',
2088 // TitleInputWidget
2089 'mediawiki.Title',
2090 'mediawiki.api',
2091 'jquery.byteLimit',
2092 // TitleOptionWidget
2093 'jquery.autoEllipsis',
2095 'messages' => array(
2096 // NamespaceInputWidget
2097 'blanknamespace',
2098 'namespacesall',
2099 // TitleInputWidget
2100 'mw-widgets-titleinput-description-new-page',
2101 'mw-widgets-titleinput-description-redirect',
2103 'targets' => array( 'desktop', 'mobile' ),
2105 'mediawiki.widgets.styles' => array(
2106 'skinStyles' => array(
2107 'default' => array(
2108 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.css',
2109 'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.base.css',
2112 'position' => 'top',
2113 'targets' => array( 'desktop', 'mobile' ),
2115 'mediawiki.widgets.DateInputWidget' => array(
2116 'scripts' => array(
2117 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js',
2118 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js',
2120 'skinStyles' => array(
2121 'default' => array(
2122 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less',
2123 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less',
2126 'messages' => array(
2127 'mw-widgets-dateinput-no-date',
2128 'mw-widgets-dateinput-placeholder-day',
2129 'mw-widgets-dateinput-placeholder-month',
2131 'dependencies' => array(
2132 'oojs-ui',
2133 'moment',
2135 'targets' => array( 'desktop', 'mobile' ),
2137 'mediawiki.widgets.datetime' => array(
2138 'scripts' => array(
2139 'resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.js',
2140 'resources/src/mediawiki.widgets.datetime/CalendarWidget.js',
2141 'resources/src/mediawiki.widgets.datetime/DateTimeFormatter.js',
2142 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js',
2143 'resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js',
2145 'skinStyles' => array(
2146 'default' => array(
2147 'resources/src/mediawiki.widgets.datetime/CalendarWidget.less',
2148 'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.less',
2151 'messages' => array(
2152 'timezone-utc',
2153 'timezone-local',
2154 'january',
2155 'february',
2156 'march',
2157 'april',
2158 'may_long',
2159 'june',
2160 'july',
2161 'august',
2162 'september',
2163 'october',
2164 'november',
2165 'december',
2166 'jan',
2167 'feb',
2168 'mar',
2169 'apr',
2170 'may',
2171 'jun',
2172 'jul',
2173 'aug',
2174 'sep',
2175 'oct',
2176 'nov',
2177 'dec',
2178 'sunday',
2179 'monday',
2180 'tuesday',
2181 'wednesday',
2182 'thursday',
2183 'friday',
2184 'saturday',
2185 'sun',
2186 'mon',
2187 'tue',
2188 'wed',
2189 'thu',
2190 'fri',
2191 'sat',
2192 'period-am',
2193 'period-pm',
2195 'dependencies' => array(
2196 'oojs-ui',
2198 'targets' => array( 'desktop', 'mobile' ),
2200 'mediawiki.widgets.CategorySelector' => array(
2201 'scripts' => array(
2202 'resources/src/mediawiki.widgets/mw.widgets.CategoryCapsuleItemWidget.js',
2203 'resources/src/mediawiki.widgets/mw.widgets.CategorySelector.js',
2205 'dependencies' => array(
2206 'oojs-ui',
2207 'mediawiki.api',
2208 'mediawiki.ForeignApi',
2209 'mediawiki.Title',
2211 'messages' => array(
2212 'red-link-title',
2214 'targets' => array( 'desktop', 'mobile' ),
2216 'mediawiki.widgets.UserInputWidget' => array(
2217 'scripts' => array(
2218 'resources/src/mediawiki.widgets/mw.widgets.UserInputWidget.js',
2220 'dependencies' => array(
2221 'oojs-ui',
2223 'targets' => array( 'desktop', 'mobile' ),
2226 /* es5-shim */
2227 'es5-shim' => array(
2228 'scripts' => array(
2229 'resources/lib/es5-shim/es5-shim.js',
2230 'resources/src/polyfill-object-create.js',
2232 'targets' => array( 'desktop', 'mobile' ),
2233 'skipFunction' => 'resources/src/es5-skip.js',
2236 /* dom-level2-shim */
2237 // IE 8
2238 'dom-level2-shim' => array(
2239 'scripts' => 'resources/src/polyfill-nodeTypes.js',
2240 'targets' => array( 'desktop', 'mobile' ),
2241 'skipFunction' => 'resources/src/dom-level2-skip.js',
2244 /* OOjs */
2245 'oojs' => array(
2246 'scripts' => array(
2247 'resources/lib/oojs/oojs.jquery.js',
2249 'targets' => array( 'desktop', 'mobile' ),
2250 'dependencies' => array(
2251 'es5-shim',
2252 'json',
2256 /* OOjs UI */
2257 // WARNING: OOjs-UI is NOT TESTED with older browsers and is likely to break
2258 // if loaded in browsers that don't support ES5
2259 // @see ResourcesOOUI.php