3 * Definition of core ResourceLoader modules.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
23 if ( !defined( 'MEDIAWIKI' ) ) {
24 die( 'Not an entry point.' );
30 * Special modules who have their own classes
33 // Scripts managed by the local wiki (stored in the MediaWiki namespace)
34 'site' => array( 'class' => 'ResourceLoaderSiteModule' ),
35 'noscript' => array( 'class' => 'ResourceLoaderNoscriptModule' ),
36 'startup' => array( 'class' => 'ResourceLoaderStartUpModule' ),
37 'filepage' => array( 'class' => 'ResourceLoaderFilePageModule' ),
38 'user.groups' => array( 'class' => 'ResourceLoaderUserGroupsModule' ),
40 // Scripts managed by the current user (stored in their user space)
41 'user' => array( 'class' => 'ResourceLoaderUserModule' ),
43 // Scripts generated based on the current user's preferences
44 'user.cssprefs' => array( 'class' => 'ResourceLoaderUserCSSPrefsModule' ),
46 // Populate mediawiki.user placeholders with information about the current user
47 'user.options' => array( 'class' => 'ResourceLoaderUserOptionsModule' ),
48 'user.tokens' => array( 'class' => 'ResourceLoaderUserTokensModule' ),
50 // Scripts for the dynamic language specific data, like grammar forms.
51 'mediawiki.language.data' => array( 'class' => 'ResourceLoaderLanguageDataModule' ),
55 * Be careful not to add 'scripts' to these modules,
56 * since they are loaded with OutputPage::addModuleStyles so that the skin styles
57 * apply without javascript.
58 * If a skin needs custom js in the interface, register a separate module
59 * and add it to the load queue with OutputPage::addModules.
61 * See Vector for an example.
63 'skins.cologneblue' => array(
65 'cologneblue/screen.css' => array( 'media' => 'screen' ),
66 'cologneblue/print.css' => array( 'media' => 'print' ),
68 'remoteBasePath' => $GLOBALS['wgStylePath'],
69 'localBasePath' => $GLOBALS['wgStyleDirectory'],
71 'skins.modern' => array(
73 'modern/main.css' => array( 'media' => 'screen' ),
74 'modern/print.css' => array( 'media' => 'print' ),
76 'remoteBasePath' => $GLOBALS['wgStylePath'],
77 'localBasePath' => $GLOBALS['wgStyleDirectory'],
79 'skins.monobook' => array(
81 'common/commonElements.css' => array( 'media' => 'screen' ),
82 'common/commonContent.css' => array( 'media' => 'screen' ),
83 'common/commonInterface.css' => array( 'media' => 'screen' ),
84 'monobook/main.css' => array( 'media' => 'screen' ),
86 'remoteBasePath' => $GLOBALS['wgStylePath'],
87 'localBasePath' => $GLOBALS['wgStyleDirectory'],
89 'skins.vector' => array(
90 // Keep in sync with WebInstallerOutput::getCSS()
92 'common/commonElements.css' => array( 'media' => 'screen' ),
93 'common/commonContent.css' => array( 'media' => 'screen' ),
94 'common/commonInterface.css' => array( 'media' => 'screen' ),
95 'vector/screen.css' => array( 'media' => 'screen' ),
96 'vector/screen-hd.css' => array( 'media' => 'screen and (min-width: 982px)' ),
98 'remoteBasePath' => $GLOBALS['wgStylePath'],
99 'localBasePath' => $GLOBALS['wgStyleDirectory'],
101 'skins.vector.js' => array(
102 'scripts' => 'vector/vector.js',
103 'remoteBasePath' => $GLOBALS['wgStylePath'],
104 'localBasePath' => $GLOBALS['wgStyleDirectory'],
110 'scripts' => 'resources/jquery/jquery.js',
112 'targets' => array( 'desktop', 'mobile' ),
117 'jquery.appear' => array(
118 'scripts' => 'resources/jquery/jquery.appear.js',
120 'jquery.arrowSteps' => array(
121 'scripts' => 'resources/jquery/jquery.arrowSteps.js',
122 'styles' => 'resources/jquery/jquery.arrowSteps.css',
124 'jquery.async' => array(
125 'scripts' => 'resources/jquery/jquery.async.js',
127 'jquery.autoEllipsis' => array(
128 'scripts' => 'resources/jquery/jquery.autoEllipsis.js',
129 'dependencies' => 'jquery.highlightText',
131 'jquery.badge' => array(
132 'scripts' => 'resources/jquery/jquery.badge.js',
133 'styles' => 'resources/jquery/jquery.badge.css',
134 'dependencies' => 'mediawiki.language',
136 'jquery.byteLength' => array(
137 'scripts' => 'resources/jquery/jquery.byteLength.js',
139 'jquery.byteLimit' => array(
140 'scripts' => 'resources/jquery/jquery.byteLimit.js',
141 'dependencies' => 'jquery.byteLength',
143 'jquery.checkboxShiftClick' => array(
144 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js',
145 'targets' => array( 'desktop', 'mobile' ),
147 'jquery.chosen' => array(
148 'scripts' => 'resources/jquery.chosen/chosen.jquery.js',
149 'styles' => 'resources/jquery.chosen/chosen.css',
151 'jquery.client' => array(
152 'scripts' => 'resources/jquery/jquery.client.js',
153 'targets' => array( 'desktop', 'mobile' ),
155 'jquery.color' => array(
156 'scripts' => 'resources/jquery/jquery.color.js',
157 'dependencies' => 'jquery.colorUtil',
159 'jquery.colorUtil' => array(
160 'scripts' => 'resources/jquery/jquery.colorUtil.js',
162 'jquery.cookie' => array(
163 'scripts' => 'resources/jquery/jquery.cookie.js',
164 'targets' => array( 'desktop', 'mobile' ),
166 'jquery.delayedBind' => array(
167 'scripts' => 'resources/jquery/jquery.delayedBind.js',
169 'jquery.expandableField' => array(
170 'scripts' => 'resources/jquery/jquery.expandableField.js',
171 'dependencies' => 'jquery.delayedBind',
173 'jquery.farbtastic' => array(
174 'scripts' => 'resources/jquery/jquery.farbtastic.js',
175 'styles' => 'resources/jquery/jquery.farbtastic.css',
176 'dependencies' => 'jquery.colorUtil',
178 'jquery.footHovzer' => array(
179 'scripts' => 'resources/jquery/jquery.footHovzer.js',
180 'styles' => 'resources/jquery/jquery.footHovzer.css',
182 'jquery.form' => array(
183 'scripts' => 'resources/jquery/jquery.form.js',
185 'jquery.getAttrs' => array(
186 'scripts' => 'resources/jquery/jquery.getAttrs.js',
187 'targets' => array( 'desktop', 'mobile' ),
189 'jquery.hidpi' => array(
190 'scripts' => 'resources/jquery/jquery.hidpi.js',
191 'targets' => array( 'desktop', 'mobile' ),
193 'jquery.highlightText' => array(
194 'scripts' => 'resources/jquery/jquery.highlightText.js',
195 'dependencies' => 'jquery.mwExtension',
197 'jquery.hoverIntent' => array(
198 'scripts' => 'resources/jquery/jquery.hoverIntent.js',
200 'jquery.json' => array(
201 'scripts' => 'resources/jquery/jquery.json.js',
202 'targets' => array( 'mobile', 'desktop' ),
204 'jquery.localize' => array(
205 'scripts' => 'resources/jquery/jquery.localize.js',
207 'jquery.makeCollapsible' => array(
208 'scripts' => 'resources/jquery/jquery.makeCollapsible.js',
209 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
210 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
211 'targets' => array( 'desktop', 'mobile' ),
213 'jquery.mockjax' => array(
214 'scripts' => 'resources/jquery/jquery.mockjax.js',
216 'jquery.mw-jump' => array(
217 'scripts' => 'resources/jquery/jquery.mw-jump.js',
218 'targets' => array( 'desktop', 'mobile' ),
220 'jquery.mwExtension' => array(
221 'scripts' => 'resources/jquery/jquery.mwExtension.js',
222 'targets' => array( 'desktop', 'mobile' ),
224 'jquery.placeholder' => array(
225 'scripts' => 'resources/jquery/jquery.placeholder.js',
226 'targets' => array( 'desktop', 'mobile' ),
228 'jquery.qunit' => array(
229 'scripts' => 'resources/jquery/jquery.qunit.js',
230 'styles' => 'resources/jquery/jquery.qunit.css',
232 'targets' => array( 'desktop', 'mobile' ),
234 'jquery.qunit.completenessTest' => array(
235 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
236 'dependencies' => 'jquery.qunit',
237 'targets' => array( 'desktop', 'mobile' ),
239 'jquery.spinner' => array(
240 'scripts' => 'resources/jquery/jquery.spinner.js',
241 'styles' => 'resources/jquery/jquery.spinner.css',
243 'jquery.jStorage' => array(
244 'scripts' => 'resources/jquery/jquery.jStorage.js',
245 'dependencies' => 'jquery.json',
247 'jquery.suggestions' => array(
248 'scripts' => 'resources/jquery/jquery.suggestions.js',
249 'styles' => 'resources/jquery/jquery.suggestions.css',
250 'dependencies' => 'jquery.autoEllipsis',
252 'jquery.tabIndex' => array(
253 'scripts' => 'resources/jquery/jquery.tabIndex.js',
255 'jquery.tablesorter' => array(
256 'scripts' => 'resources/jquery/jquery.tablesorter.js',
257 'styles' => 'resources/jquery/jquery.tablesorter.css',
258 'messages' => array( 'sort-descending', 'sort-ascending' ),
259 'dependencies' => 'jquery.mwExtension',
261 'jquery.textSelection' => array(
262 'scripts' => 'resources/jquery/jquery.textSelection.js',
263 'dependencies' => 'jquery.client',
265 'jquery.validate' => array(
266 'scripts' => 'resources/jquery/jquery.validate.js',
268 'jquery.xmldom' => array(
269 'scripts' => 'resources/jquery/jquery.xmldom.js',
274 'jquery.tipsy' => array(
275 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js',
276 'styles' => 'resources/jquery.tipsy/jquery.tipsy.css',
282 'jquery.ui.core' => array(
283 'scripts' => 'resources/jquery.ui/jquery.ui.core.js',
284 'skinStyles' => array(
286 'resources/jquery.ui/themes/default/jquery.ui.core.css',
287 'resources/jquery.ui/themes/default/jquery.ui.theme.css',
290 'resources/jquery.ui/themes/vector/jquery.ui.core.css',
291 'resources/jquery.ui/themes/vector/jquery.ui.theme.css',
294 'dependencies' => 'jquery',
295 'group' => 'jquery.ui',
297 'jquery.ui.widget' => array(
298 'scripts' => 'resources/jquery.ui/jquery.ui.widget.js',
299 'group' => 'jquery.ui',
301 'jquery.ui.mouse' => array(
302 'scripts' => 'resources/jquery.ui/jquery.ui.mouse.js',
303 'dependencies' => 'jquery.ui.widget',
304 'group' => 'jquery.ui',
306 'jquery.ui.position' => array(
307 'scripts' => 'resources/jquery.ui/jquery.ui.position.js',
308 'group' => 'jquery.ui',
311 'jquery.ui.draggable' => array(
312 'scripts' => 'resources/jquery.ui/jquery.ui.draggable.js',
313 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget' ),
314 'group' => 'jquery.ui',
316 'jquery.ui.droppable' => array(
317 'scripts' => 'resources/jquery.ui/jquery.ui.droppable.js',
318 'dependencies' => array(
319 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable',
321 'group' => 'jquery.ui',
323 'jquery.ui.resizable' => array(
324 'scripts' => 'resources/jquery.ui/jquery.ui.resizable.js',
325 'skinStyles' => array(
326 'default' => 'resources/jquery.ui/themes/default/jquery.ui.resizable.css',
327 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.resizable.css',
329 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
330 'group' => 'jquery.ui',
332 'jquery.ui.selectable' => array(
333 'scripts' => 'resources/jquery.ui/jquery.ui.selectable.js',
334 'skinStyles' => array(
335 'default' => 'resources/jquery.ui/themes/default/jquery.ui.selectable.css',
336 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.selectable.css',
338 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
339 'group' => 'jquery.ui',
341 'jquery.ui.sortable' => array(
342 'scripts' => 'resources/jquery.ui/jquery.ui.sortable.js',
343 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
344 'group' => 'jquery.ui',
347 'jquery.ui.accordion' => array(
348 'scripts' => 'resources/jquery.ui/jquery.ui.accordion.js',
349 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
350 'skinStyles' => array(
351 'default' => 'resources/jquery.ui/themes/default/jquery.ui.accordion.css',
352 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.accordion.css',
354 'group' => 'jquery.ui',
356 'jquery.ui.autocomplete' => array(
357 'scripts' => 'resources/jquery.ui/jquery.ui.autocomplete.js',
358 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ),
359 'skinStyles' => array(
360 'default' => 'resources/jquery.ui/themes/default/jquery.ui.autocomplete.css',
361 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.autocomplete.css',
363 'group' => 'jquery.ui',
365 'jquery.ui.button' => array(
366 'scripts' => 'resources/jquery.ui/jquery.ui.button.js',
367 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
368 'skinStyles' => array(
369 'default' => 'resources/jquery.ui/themes/default/jquery.ui.button.css',
370 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.button.css',
372 'group' => 'jquery.ui',
374 'jquery.ui.datepicker' => array(
375 'scripts' => 'resources/jquery.ui/jquery.ui.datepicker.js',
376 'dependencies' => 'jquery.ui.core',
377 'skinStyles' => array(
378 'default' => 'resources/jquery.ui/themes/default/jquery.ui.datepicker.css',
379 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.datepicker.css',
381 'languageScripts' => array(
382 'af' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-af.js',
383 'ar' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
384 'az' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-az.js',
385 'bg' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
386 'bs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
387 'ca' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
388 'cs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
389 'da' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-da.js',
390 'de' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-de.js',
391 'el' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-el.js',
392 'en-gb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
393 'eo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
394 'es' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-es.js',
395 'et' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-et.js',
396 'eu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
397 'fa' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
398 'fi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
399 'fo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
400 'fr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
401 'gl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
402 'he' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-he.js',
403 'hi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
404 'hr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
405 'hu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
406 'hy' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
407 'id' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-id.js',
408 'is' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-is.js',
409 'it' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-it.js',
410 'ja' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
411 'ka' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
412 'kk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
413 'km' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-km.js',
414 'ko' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
415 'lb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
416 'lt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
417 'lv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
418 'mk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
419 'ml' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
420 'ms' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
421 'nl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
422 'no' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-no.js',
423 'pl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
424 'pt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
425 'pt-br' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
426 'rm' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
427 'ro' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
428 'ru' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
429 'sk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
430 'sl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
431 'sq' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
432 'sr-sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
433 'sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
434 'sv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
435 'ta' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
436 'th' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-th.js',
437 'tr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
438 'uk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
439 'vi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
440 'zh-cn' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
441 'zh-hk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
442 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
444 'group' => 'jquery.ui',
446 'jquery.ui.dialog' => array(
447 'scripts' => 'resources/jquery.ui/jquery.ui.dialog.js',
448 'dependencies' => array(
452 'jquery.ui.draggable',
454 'jquery.ui.position',
455 'jquery.ui.resizable',
457 'skinStyles' => array(
458 'default' => 'resources/jquery.ui/themes/default/jquery.ui.dialog.css',
459 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.dialog.css',
461 'group' => 'jquery.ui',
463 'jquery.ui.progressbar' => array(
464 'scripts' => 'resources/jquery.ui/jquery.ui.progressbar.js',
465 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
466 'skinStyles' => array(
467 'default' => 'resources/jquery.ui/themes/default/jquery.ui.progressbar.css',
468 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.progressbar.css',
470 'group' => 'jquery.ui',
472 'jquery.ui.slider' => array(
473 'scripts' => 'resources/jquery.ui/jquery.ui.slider.js',
474 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
475 'skinStyles' => array(
476 'default' => 'resources/jquery.ui/themes/default/jquery.ui.slider.css',
477 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.slider.css',
479 'group' => 'jquery.ui',
481 'jquery.ui.tabs' => array(
482 'scripts' => 'resources/jquery.ui/jquery.ui.tabs.js',
483 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
484 'skinStyles' => array(
485 'default' => 'resources/jquery.ui/themes/default/jquery.ui.tabs.css',
486 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.tabs.css',
488 'group' => 'jquery.ui',
491 'jquery.effects.core' => array(
492 'scripts' => 'resources/jquery.effects/jquery.effects.core.js',
493 'dependencies' => 'jquery',
494 'group' => 'jquery.ui',
496 'jquery.effects.blind' => array(
497 'scripts' => 'resources/jquery.effects/jquery.effects.blind.js',
498 'dependencies' => 'jquery.effects.core',
499 'group' => 'jquery.ui',
501 'jquery.effects.bounce' => array(
502 'scripts' => 'resources/jquery.effects/jquery.effects.bounce.js',
503 'dependencies' => 'jquery.effects.core',
504 'group' => 'jquery.ui',
506 'jquery.effects.clip' => array(
507 'scripts' => 'resources/jquery.effects/jquery.effects.clip.js',
508 'dependencies' => 'jquery.effects.core',
509 'group' => 'jquery.ui',
511 'jquery.effects.drop' => array(
512 'scripts' => 'resources/jquery.effects/jquery.effects.drop.js',
513 'dependencies' => 'jquery.effects.core',
514 'group' => 'jquery.ui',
516 'jquery.effects.explode' => array(
517 'scripts' => 'resources/jquery.effects/jquery.effects.explode.js',
518 'dependencies' => 'jquery.effects.core',
519 'group' => 'jquery.ui',
521 'jquery.effects.fade' => array(
522 'scripts' => 'resources/jquery.effects/jquery.effects.fade.js',
523 'dependencies' => 'jquery.effects.core',
524 'group' => 'jquery.ui',
526 'jquery.effects.fold' => array(
527 'scripts' => 'resources/jquery.effects/jquery.effects.fold.js',
528 'dependencies' => 'jquery.effects.core',
529 'group' => 'jquery.ui',
531 'jquery.effects.highlight' => array(
532 'scripts' => 'resources/jquery.effects/jquery.effects.highlight.js',
533 'dependencies' => 'jquery.effects.core',
534 'group' => 'jquery.ui',
536 'jquery.effects.pulsate' => array(
537 'scripts' => 'resources/jquery.effects/jquery.effects.pulsate.js',
538 'dependencies' => 'jquery.effects.core',
539 'group' => 'jquery.ui',
541 'jquery.effects.scale' => array(
542 'scripts' => 'resources/jquery.effects/jquery.effects.scale.js',
543 'dependencies' => 'jquery.effects.core',
544 'group' => 'jquery.ui',
546 'jquery.effects.shake' => array(
547 'scripts' => 'resources/jquery.effects/jquery.effects.shake.js',
548 'dependencies' => 'jquery.effects.core',
549 'group' => 'jquery.ui',
551 'jquery.effects.slide' => array(
552 'scripts' => 'resources/jquery.effects/jquery.effects.slide.js',
553 'dependencies' => 'jquery.effects.core',
554 'group' => 'jquery.ui',
556 'jquery.effects.transfer' => array(
557 'scripts' => 'resources/jquery.effects/jquery.effects.transfer.js',
558 'dependencies' => 'jquery.effects.core',
559 'group' => 'jquery.ui',
564 'mediawiki' => array(
565 'scripts' => 'resources/mediawiki/mediawiki.js',
566 'debugScripts' => 'resources/mediawiki/mediawiki.log.js',
568 'targets' => array( 'desktop', 'mobile' ),
570 'mediawiki.api' => array(
571 'scripts' => 'resources/mediawiki.api/mediawiki.api.js',
572 'dependencies' => 'mediawiki.util',
574 'mediawiki.api.category' => array(
575 'scripts' => 'resources/mediawiki.api/mediawiki.api.category.js',
576 'dependencies' => array(
581 'mediawiki.api.edit' => array(
582 'scripts' => 'resources/mediawiki.api/mediawiki.api.edit.js',
583 'dependencies' => array(
588 'mediawiki.api.parse' => array(
589 'scripts' => 'resources/mediawiki.api/mediawiki.api.parse.js',
590 'dependencies' => 'mediawiki.api',
592 'mediawiki.api.watch' => array(
593 'scripts' => 'resources/mediawiki.api/mediawiki.api.watch.js',
594 'dependencies' => array(
599 'mediawiki.icon' => array(
600 'styles' => 'resources/mediawiki/mediawiki.icon.css',
602 'mediawiki.debug' => array(
603 'scripts' => 'resources/mediawiki/mediawiki.debug.js',
604 'styles' => 'resources/mediawiki/mediawiki.debug.css',
605 'dependencies' => 'jquery.footHovzer',
606 'position' => 'bottom',
608 'mediawiki.debug.init' => array(
609 'scripts' => 'resources/mediawiki/mediawiki.debug.init.js',
610 'dependencies' => 'mediawiki.debug',
611 // Uses a custom mw.config variable that is set in debughtml,
612 // must be loaded on the bottom
613 'position' => 'bottom',
615 'mediawiki.feedback' => array(
616 'scripts' => 'resources/mediawiki/mediawiki.feedback.js',
617 'styles' => 'resources/mediawiki/mediawiki.feedback.css',
618 'dependencies' => array(
619 'mediawiki.api.edit',
621 'mediawiki.jqueryMsg',
625 'feedback-bugornote',
640 'mediawiki.hidpi' => array(
641 'scripts' => 'resources/mediawiki/mediawiki.hidpi.js',
642 'dependencies' => array(
645 'targets' => array( 'desktop', 'mobile' ),
647 'mediawiki.htmlform' => array(
648 'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
649 'messages' => array( 'htmlform-chosen-placeholder' ),
651 'mediawiki.notification' => array(
652 'styles' => 'resources/mediawiki/mediawiki.notification.css',
653 'scripts' => 'resources/mediawiki/mediawiki.notification.js',
654 'dependencies' => array(
655 'mediawiki.page.startup',
658 'mediawiki.notify' => array(
659 'scripts' => 'resources/mediawiki/mediawiki.notify.js',
660 'targets' => array( 'desktop', 'mobile' ),
662 'mediawiki.searchSuggest' => array(
663 'scripts' => 'resources/mediawiki/mediawiki.searchSuggest.js',
664 'styles' => 'resources/mediawiki/mediawiki.searchSuggest.css',
666 'searchsuggest-search',
667 'searchsuggest-containing',
669 'dependencies' => array(
670 'jquery.autoEllipsis',
672 'jquery.placeholder',
673 'jquery.suggestions',
677 'mediawiki.Title' => array(
678 'scripts' => 'resources/mediawiki/mediawiki.Title.js',
679 'dependencies' => 'mediawiki.util',
681 'mediawiki.Uri' => array(
682 'scripts' => 'resources/mediawiki/mediawiki.Uri.js',
684 'mediawiki.user' => array(
685 'scripts' => 'resources/mediawiki/mediawiki.user.js',
686 'dependencies' => array(
693 'mediawiki.util' => array(
694 'scripts' => 'resources/mediawiki/mediawiki.util.js',
695 'dependencies' => array(
698 'jquery.mwExtension',
701 'messages' => array( 'showtoc', 'hidetoc' ),
702 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
703 'targets' => array( 'desktop', 'mobile' ),
706 /* MediaWiki Action */
708 'mediawiki.action.edit' => array(
709 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
710 'dependencies' => array(
711 'jquery.textSelection',
716 'mediawiki.action.edit.preview' => array(
717 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.preview.js',
718 'dependencies' => array(
723 'mediawiki.action.history' => array(
724 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
725 'group' => 'mediawiki.action.history',
727 'mediawiki.action.history.diff' => array(
728 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
729 'group' => 'mediawiki.action.history',
731 'mediawiki.action.view.dblClickEdit' => array(
732 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
733 'dependencies' => array(
735 'mediawiki.page.startup',
738 'mediawiki.action.view.metadata' => array(
739 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js',
745 'mediawiki.action.view.postEdit' => array(
746 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.js',
747 'styles' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.css',
748 'dependencies' => array(
750 'mediawiki.jqueryMsg'
753 'postedit-confirmation',
756 'mediawiki.action.view.rightClickEdit' => array(
757 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
759 'mediawiki.action.edit.editWarning' => array(
760 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.editWarning.js',
762 'editwarning-warning',
765 // Alias for backwards compatibility
766 'mediawiki.action.watch.ajax' => array(
767 'dependencies' => 'mediawiki.page.watch.ajax'
770 /* MediaWiki Language */
772 'mediawiki.language' => array(
774 'resources/mediawiki.language/mediawiki.language.js',
775 'resources/mediawiki.language/mediawiki.language.numbers.js'
777 'languageScripts' => array(
778 'bs' => 'resources/mediawiki.language/languages/bs.js',
779 'dsb' => 'resources/mediawiki.language/languages/dsb.js',
780 'fi' => 'resources/mediawiki.language/languages/fi.js',
781 'ga' => 'resources/mediawiki.language/languages/ga.js',
782 'he' => 'resources/mediawiki.language/languages/he.js',
783 'hsb' => 'resources/mediawiki.language/languages/hsb.js',
784 'hu' => 'resources/mediawiki.language/languages/hu.js',
785 'hy' => 'resources/mediawiki.language/languages/hy.js',
786 'la' => 'resources/mediawiki.language/languages/la.js',
787 'os' => 'resources/mediawiki.language/languages/os.js',
788 'ru' => 'resources/mediawiki.language/languages/ru.js',
789 'sl' => 'resources/mediawiki.language/languages/sl.js',
790 'uk' => 'resources/mediawiki.language/languages/uk.js',
792 'dependencies' => array(
793 'mediawiki.language.data',
796 'targets' => array( 'desktop', 'mobile' ),
799 'mediawiki.cldr' => array(
800 'scripts' => 'resources/mediawiki.language/mediawiki.cldr.js',
801 'dependencies' => array(
802 'mediawiki.libs.pluralruleparser',
804 'targets' => array( 'desktop', 'mobile' ),
807 'mediawiki.libs.pluralruleparser' => array(
808 'scripts' => 'resources/mediawiki.libs/CLDRPluralRuleParser.js',
809 'targets' => array( 'desktop', 'mobile' ),
812 'mediawiki.language.init' => array(
813 'scripts' => 'resources/mediawiki.language/mediawiki.language.init.js',
814 'targets' => array( 'desktop', 'mobile' ),
817 'mediawiki.jqueryMsg' => array(
818 'scripts' => 'resources/mediawiki/mediawiki.jqueryMsg.js',
819 'dependencies' => array(
821 'mediawiki.language',
823 'targets' => array( 'desktop', 'mobile' ),
828 'mediawiki.libs.jpegmeta' => array(
829 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
834 'mediawiki.page.ready' => array(
835 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
836 'dependencies' => array(
837 'jquery.checkboxShiftClick',
838 'jquery.makeCollapsible',
839 'jquery.placeholder',
843 'targets' => array( 'desktop', 'mobile' ),
845 'mediawiki.page.startup' => array(
846 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js',
847 'dependencies' => array(
852 'targets' => array( 'desktop', 'mobile' ),
854 'mediawiki.page.patrol.ajax' => array(
855 'scripts' => 'resources/mediawiki.page/mediawiki.page.patrol.ajax.js',
856 'dependencies' => array(
857 'mediawiki.page.startup',
866 'markedaspatrollednotify',
867 'markedaspatrollederrornotify',
868 'markedaspatrollederror-noautopatrol'
871 'mediawiki.page.watch.ajax' => array(
872 'scripts' => 'resources/mediawiki.page/mediawiki.page.watch.ajax.js',
873 'dependencies' => array(
874 'mediawiki.page.startup',
875 'mediawiki.api.watch',
878 'jquery.mwExtension',
886 'tooltip-ca-unwatch',
891 /* MediaWiki Special pages */
893 'mediawiki.special' => array(
894 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
895 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
897 'mediawiki.special.block' => array(
898 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
899 'dependencies' => array(
903 'mediawiki.special.changeemail' => array(
904 'scripts' => 'resources/mediawiki.special/mediawiki.special.changeemail.js',
905 'styles' => 'resources/mediawiki.special/mediawiki.special.changeemail.css',
906 'dependencies' => array(
910 'email-address-validity-valid',
911 'email-address-validity-invalid',
914 'mediawiki.special.changeslist' => array(
915 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
916 'dependencies' => array( 'jquery.makeCollapsible', 'mediawiki.icon' ),
918 'mediawiki.special.movePage' => array(
919 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
920 'dependencies' => 'jquery.byteLimit',
922 'mediawiki.special.preferences' => array(
923 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
924 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
927 'mediawiki.special.recentchanges' => array(
928 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
929 'dependencies' => array( 'mediawiki.special' ),
932 'mediawiki.special.search' => array(
933 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
934 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
936 'powersearch-togglelabel',
937 'powersearch-toggleall',
938 'powersearch-togglenone',
941 'mediawiki.special.undelete' => array(
942 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
944 'mediawiki.special.upload' => array(
945 // @todo merge in remainder of mediawiki.legacy.upload
946 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',
955 'dependencies' => array( 'mediawiki.libs.jpegmeta', 'mediawiki.util' ),
957 'mediawiki.special.userlogin.signup' => array(
958 'scripts' => 'resources/mediawiki.special/mediawiki.special.userLogin.signup.js',
960 'mediawiki.special.userlogin.vform' => array(
962 'resources/mediawiki.special/mediawiki.special.vforms.css',
963 'resources/mediawiki.special/mediawiki.special.userLogin.vform.css',
967 'mediawiki.special.createaccount.vform' => array(
969 'resources/mediawiki.special/mediawiki.special.vforms.css',
970 'resources/mediawiki.special/mediawiki.special.createAccount.vform.css',
974 'mediawiki.special.createaccount.vform.js' => array(
975 'scripts' => 'resources/mediawiki.special/mediawiki.special.createAccount.vform.js',
977 'createacct-captcha',
978 'createacct-imgcaptcha-ph'
980 'dependencies' => 'mediawiki.jqueryMsg',
983 'mediawiki.special.javaScriptTest' => array(
984 'scripts' => 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js',
985 'messages' => array_merge( Skin
::getSkinNameMessages(), array(
987 'javascripttest-pagetext-skins',
989 'dependencies' => array( 'jquery.qunit' ),
991 'targets' => array( 'desktop', 'mobile' ),
994 /* MediaWiki Tests */
996 'mediawiki.tests.qunit.testrunner' => array(
997 'scripts' => 'tests/qunit/data/testrunner.js',
998 'dependencies' => array(
1001 'jquery.qunit.completenessTest',
1002 'mediawiki.page.startup',
1003 'mediawiki.page.ready',
1005 'position' => 'top',
1006 'targets' => array( 'desktop', 'mobile' ),
1009 /* MediaWiki Legacy */
1011 'mediawiki.legacy.ajax' => array(
1012 'scripts' => 'common/ajax.js',
1013 'remoteBasePath' => $GLOBALS['wgStylePath'],
1014 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1015 'dependencies' => array(
1017 'mediawiki.legacy.wikibits',
1019 'position' => 'top', // Temporary hack for legacy support
1021 'mediawiki.legacy.commonPrint' => array(
1022 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
1023 'remoteBasePath' => $GLOBALS['wgStylePath'],
1024 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1026 'mediawiki.legacy.config' => array(
1027 'scripts' => 'common/config.js',
1028 'styles' => array( 'common/config.css', 'common/config-cc.css' ),
1029 'remoteBasePath' => $GLOBALS['wgStylePath'],
1030 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1031 'dependencies' => 'mediawiki.legacy.wikibits',
1033 'mediawiki.legacy.IEFixes' => array(
1034 'scripts' => 'common/IEFixes.js',
1035 'remoteBasePath' => $GLOBALS['wgStylePath'],
1036 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1037 'dependencies' => 'mediawiki.legacy.wikibits',
1039 'mediawiki.legacy.protect' => array(
1040 'scripts' => 'common/protect.js',
1041 'remoteBasePath' => $GLOBALS['wgStylePath'],
1042 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1043 'dependencies' => array(
1044 'mediawiki.legacy.wikibits',
1047 'position' => 'top',
1049 'mediawiki.legacy.shared' => array(
1050 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
1051 'remoteBasePath' => $GLOBALS['wgStylePath'],
1052 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1054 'mediawiki.legacy.oldshared' => array(
1055 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
1056 'remoteBasePath' => $GLOBALS['wgStylePath'],
1057 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1059 'mediawiki.legacy.upload' => array(
1060 'scripts' => 'common/upload.js',
1061 'remoteBasePath' => $GLOBALS['wgStylePath'],
1062 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1063 'dependencies' => array(
1064 'mediawiki.legacy.wikibits',
1068 'mediawiki.legacy.wikibits' => array(
1069 'scripts' => 'common/wikibits.js',
1070 'remoteBasePath' => $GLOBALS['wgStylePath'],
1071 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1072 'dependencies' => array(
1075 'position' => 'top',
1077 'mediawiki.legacy.wikiprintable' => array(
1078 'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
1079 'remoteBasePath' => $GLOBALS['wgStylePath'],
1080 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1082 'mediawiki.ui' => array(
1083 'skinStyles' => array(
1084 'default' => 'resources/mediawiki.ui/mediawiki.ui.default.css',
1085 'vector' => 'resources/mediawiki.ui/mediawiki.ui.vector.css',
1087 'position' => 'top',