d40e845363f2c44ee50df76eb7d0be11d46975ae
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.
64 'skins.chick' => array(
65 'styles' => array( 'chick/main.css' => array( 'media' => 'screen, handheld' ) ),
66 'remoteBasePath' => $GLOBALS['wgStylePath'],
67 'localBasePath' => $GLOBALS['wgStyleDirectory'],
69 'skins.cologneblue' => array(
70 'styles' => array( 'cologneblue/screen.css' => array( 'media' => 'screen' ) ),
71 'remoteBasePath' => $GLOBALS['wgStylePath'],
72 'localBasePath' => $GLOBALS['wgStyleDirectory'],
74 'skins.modern' => array(
76 'modern/main.css' => array( 'media' => 'screen' ),
77 'modern/print.css' => array( 'media' => 'print' ),
79 'remoteBasePath' => $GLOBALS['wgStylePath'],
80 'localBasePath' => $GLOBALS['wgStyleDirectory'],
82 'skins.monobook' => array(
84 'common/commonElements.css' => array( 'media' => 'screen' ),
85 'common/commonContent.css' => array( 'media' => 'screen' ),
86 'common/commonInterface.css' => array( 'media' => 'screen' ),
87 'monobook/main.css' => array( 'media' => 'screen' ),
89 'remoteBasePath' => $GLOBALS['wgStylePath'],
90 'localBasePath' => $GLOBALS['wgStyleDirectory'],
92 'skins.nostalgia' => array(
93 'styles' => array( 'nostalgia/screen.css' => array( 'media' => 'screen' ) ),
94 'remoteBasePath' => $GLOBALS['wgStylePath'],
95 'localBasePath' => $GLOBALS['wgStyleDirectory'],
97 'skins.simple' => array(
98 'styles' => array( 'simple/main.css' => array( 'media' => 'screen' ) ),
99 'remoteBasePath' => $GLOBALS['wgStylePath'],
100 'localBasePath' => $GLOBALS['wgStyleDirectory'],
102 'skins.standard' => array(
103 'styles' => array( 'standard/main.css' => array( 'media' => 'screen' ) ),
104 'remoteBasePath' => $GLOBALS['wgStylePath'],
105 'localBasePath' => $GLOBALS['wgStyleDirectory'],
107 'skins.vector' => array(
108 // Keep in sync with WebInstallerOutput::getCSS()
110 'common/commonElements.css' => array( 'media' => 'screen' ),
111 'common/commonContent.css' => array( 'media' => 'screen' ),
112 'common/commonInterface.css' => array( 'media' => 'screen' ),
113 'vector/screen.css' => array( 'media' => 'screen' ),
114 'vector/screen-hd.css' => array( 'media' => 'screen and (min-width: 982px)' ),
116 'remoteBasePath' => $GLOBALS['wgStylePath'],
117 'localBasePath' => $GLOBALS['wgStyleDirectory'],
119 'skins.vector.js' => array(
120 'scripts' => 'vector/vector.js',
121 'remoteBasePath' => $GLOBALS['wgStylePath'],
122 'localBasePath' => $GLOBALS['wgStyleDirectory'],
128 'scripts' => 'resources/jquery/jquery.js',
130 'targets' => array( 'desktop', 'mobile' ),
135 'jquery.appear' => array(
136 'scripts' => 'resources/jquery/jquery.appear.js',
138 'jquery.arrowSteps' => array(
139 'scripts' => 'resources/jquery/jquery.arrowSteps.js',
140 'styles' => 'resources/jquery/jquery.arrowSteps.css',
142 'jquery.async' => array(
143 'scripts' => 'resources/jquery/jquery.async.js',
145 'jquery.autoEllipsis' => array(
146 'scripts' => 'resources/jquery/jquery.autoEllipsis.js',
147 'dependencies' => 'jquery.highlightText',
149 'jquery.badge' => array(
150 'scripts' => 'resources/jquery/jquery.badge.js',
151 'styles' => 'resources/jquery/jquery.badge.css',
153 'jquery.byteLength' => array(
154 'scripts' => 'resources/jquery/jquery.byteLength.js',
156 'jquery.byteLimit' => array(
157 'scripts' => 'resources/jquery/jquery.byteLimit.js',
158 'dependencies' => 'jquery.byteLength',
160 'jquery.checkboxShiftClick' => array(
161 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js',
163 'jquery.client' => array(
164 'scripts' => 'resources/jquery/jquery.client.js',
165 'targets' => array( 'desktop', 'mobile' ),
167 'jquery.color' => array(
168 'scripts' => 'resources/jquery/jquery.color.js',
169 'dependencies' => 'jquery.colorUtil',
171 'jquery.colorUtil' => array(
172 'scripts' => 'resources/jquery/jquery.colorUtil.js',
174 'jquery.cookie' => array(
175 'scripts' => 'resources/jquery/jquery.cookie.js',
176 'targets' => array( 'desktop', 'mobile' ),
178 'jquery.delayedBind' => array(
179 'scripts' => 'resources/jquery/jquery.delayedBind.js',
181 'jquery.expandableField' => array(
182 'scripts' => 'resources/jquery/jquery.expandableField.js',
183 'dependencies' => 'jquery.delayedBind',
185 'jquery.farbtastic' => array(
186 'scripts' => 'resources/jquery/jquery.farbtastic.js',
187 'styles' => 'resources/jquery/jquery.farbtastic.css',
188 'dependencies' => 'jquery.colorUtil',
190 'jquery.footHovzer' => array(
191 'scripts' => 'resources/jquery/jquery.footHovzer.js',
192 'styles' => 'resources/jquery/jquery.footHovzer.css',
194 'jquery.form' => array(
195 'scripts' => 'resources/jquery/jquery.form.js',
197 'jquery.getAttrs' => array(
198 'scripts' => 'resources/jquery/jquery.getAttrs.js',
200 'jquery.hidpi' => array(
201 'scripts' => 'resources/jquery/jquery.hidpi.js',
202 'targets' => array( 'desktop', 'mobile' ),
204 'jquery.highlightText' => array(
205 'scripts' => 'resources/jquery/jquery.highlightText.js',
206 'dependencies' => 'jquery.mwExtension',
208 'jquery.hoverIntent' => array(
209 'scripts' => 'resources/jquery/jquery.hoverIntent.js',
211 'jquery.json' => array(
212 'scripts' => 'resources/jquery/jquery.json.js',
213 'targets' => array( 'mobile', 'desktop' ),
215 'jquery.localize' => array(
216 'scripts' => 'resources/jquery/jquery.localize.js',
218 'jquery.makeCollapsible' => array(
219 'scripts' => 'resources/jquery/jquery.makeCollapsible.js',
220 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
221 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
223 'jquery.mockjax' => array(
224 'scripts' => 'resources/jquery/jquery.mockjax.js',
226 'jquery.mw-jump' => array(
227 'scripts' => 'resources/jquery/jquery.mw-jump.js',
229 'jquery.mwExtension' => array(
230 'scripts' => 'resources/jquery/jquery.mwExtension.js',
231 'targets' => array( 'desktop', 'mobile' ),
233 'jquery.placeholder' => array(
234 'scripts' => 'resources/jquery/jquery.placeholder.js',
236 'jquery.qunit' => array(
237 'scripts' => 'resources/jquery/jquery.qunit.js',
238 'styles' => 'resources/jquery/jquery.qunit.css',
241 'jquery.qunit.completenessTest' => array(
242 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
243 'dependencies' => 'jquery.qunit',
245 'jquery.spinner' => array(
246 'scripts' => 'resources/jquery/jquery.spinner.js',
247 'styles' => 'resources/jquery/jquery.spinner.css',
249 'jquery.jStorage' => array(
250 'scripts' => 'resources/jquery/jquery.jStorage.js',
251 'dependencies' => 'jquery.json',
253 'jquery.suggestions' => array(
254 'scripts' => 'resources/jquery/jquery.suggestions.js',
255 'styles' => 'resources/jquery/jquery.suggestions.css',
256 'dependencies' => 'jquery.autoEllipsis',
258 'jquery.tabIndex' => array(
259 'scripts' => 'resources/jquery/jquery.tabIndex.js',
261 'jquery.tablesorter' => array(
262 'scripts' => 'resources/jquery/jquery.tablesorter.js',
263 'styles' => 'resources/jquery/jquery.tablesorter.css',
264 'messages' => array( 'sort-descending', 'sort-ascending' ),
265 'dependencies' => 'jquery.mwExtension',
267 'jquery.textSelection' => array(
268 'scripts' => 'resources/jquery/jquery.textSelection.js',
269 'dependencies' => 'jquery.client',
271 'jquery.validate' => array(
272 'scripts' => 'resources/jquery/jquery.validate.js',
274 'jquery.xmldom' => array(
275 'scripts' => 'resources/jquery/jquery.xmldom.js',
280 'jquery.tipsy' => array(
281 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js',
282 'styles' => 'resources/jquery.tipsy/jquery.tipsy.css',
288 'jquery.ui.core' => array(
289 'scripts' => 'resources/jquery.ui/jquery.ui.core.js',
290 'skinStyles' => array(
292 'resources/jquery.ui/themes/default/jquery.ui.core.css',
293 'resources/jquery.ui/themes/default/jquery.ui.theme.css',
296 'resources/jquery.ui/themes/vector/jquery.ui.core.css',
297 'resources/jquery.ui/themes/vector/jquery.ui.theme.css',
300 'dependencies' => 'jquery',
301 'group' => 'jquery.ui',
303 'jquery.ui.widget' => array(
304 'scripts' => 'resources/jquery.ui/jquery.ui.widget.js',
305 'group' => 'jquery.ui',
307 'jquery.ui.mouse' => array(
308 'scripts' => 'resources/jquery.ui/jquery.ui.mouse.js',
309 'dependencies' => 'jquery.ui.widget',
310 'group' => 'jquery.ui',
312 'jquery.ui.position' => array(
313 'scripts' => 'resources/jquery.ui/jquery.ui.position.js',
314 'group' => 'jquery.ui',
317 'jquery.ui.draggable' => array(
318 'scripts' => 'resources/jquery.ui/jquery.ui.draggable.js',
319 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget' ),
320 'group' => 'jquery.ui',
322 'jquery.ui.droppable' => array(
323 'scripts' => 'resources/jquery.ui/jquery.ui.droppable.js',
324 'dependencies' => array(
325 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable',
327 'group' => 'jquery.ui',
329 'jquery.ui.resizable' => array(
330 'scripts' => 'resources/jquery.ui/jquery.ui.resizable.js',
331 'skinStyles' => array(
332 'default' => 'resources/jquery.ui/themes/default/jquery.ui.resizable.css',
333 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.resizable.css',
335 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
336 'group' => 'jquery.ui',
338 'jquery.ui.selectable' => array(
339 'scripts' => 'resources/jquery.ui/jquery.ui.selectable.js',
340 'skinStyles' => array(
341 'default' => 'resources/jquery.ui/themes/default/jquery.ui.selectable.css',
342 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.selectable.css',
344 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
345 'group' => 'jquery.ui',
347 'jquery.ui.sortable' => array(
348 'scripts' => 'resources/jquery.ui/jquery.ui.sortable.js',
349 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
350 'group' => 'jquery.ui',
353 'jquery.ui.accordion' => array(
354 'scripts' => 'resources/jquery.ui/jquery.ui.accordion.js',
355 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
356 'skinStyles' => array(
357 'default' => 'resources/jquery.ui/themes/default/jquery.ui.accordion.css',
358 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.accordion.css',
360 'group' => 'jquery.ui',
362 'jquery.ui.autocomplete' => array(
363 'scripts' => 'resources/jquery.ui/jquery.ui.autocomplete.js',
364 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ),
365 'skinStyles' => array(
366 'default' => 'resources/jquery.ui/themes/default/jquery.ui.autocomplete.css',
367 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.autocomplete.css',
369 'group' => 'jquery.ui',
371 'jquery.ui.button' => array(
372 'scripts' => 'resources/jquery.ui/jquery.ui.button.js',
373 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
374 'skinStyles' => array(
375 'default' => 'resources/jquery.ui/themes/default/jquery.ui.button.css',
376 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.button.css',
378 'group' => 'jquery.ui',
380 'jquery.ui.datepicker' => array(
381 'scripts' => 'resources/jquery.ui/jquery.ui.datepicker.js',
382 'dependencies' => 'jquery.ui.core',
383 'skinStyles' => array(
384 'default' => 'resources/jquery.ui/themes/default/jquery.ui.datepicker.css',
385 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.datepicker.css',
387 'languageScripts' => array(
388 'af' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-af.js',
389 'ar' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
390 'az' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-az.js',
391 'bg' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
392 'bs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
393 'ca' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
394 'cs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
395 'da' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-da.js',
396 'de' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-de.js',
397 'el' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-el.js',
398 'en-gb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
399 'eo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
400 'es' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-es.js',
401 'et' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-et.js',
402 'eu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
403 'fa' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
404 'fi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
405 'fo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
406 'fr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
407 'gl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
408 'he' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-he.js',
409 'hi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
410 'hr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
411 'hu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
412 'hy' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
413 'id' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-id.js',
414 'is' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-is.js',
415 'it' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-it.js',
416 'ja' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
417 'ka' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
418 'kk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
419 'km' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-km.js',
420 'ko' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
421 'lb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
422 'lt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
423 'lv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
424 'mk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
425 'ml' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
426 'ms' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
427 'nl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
428 'no' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-no.js',
429 'pl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
430 'pt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
431 'pt-br' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
432 'rm' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
433 'ro' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
434 'ru' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
435 'sk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
436 'sl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
437 'sq' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
438 'sr-sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
439 'sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
440 'sv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
441 'ta' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
442 'th' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-th.js',
443 'tr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
444 'uk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
445 'vi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
446 'zh-cn' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
447 'zh-hk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
448 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
450 'group' => 'jquery.ui',
452 'jquery.ui.dialog' => array(
453 'scripts' => 'resources/jquery.ui/jquery.ui.dialog.js',
454 'dependencies' => array(
458 'jquery.ui.draggable',
460 'jquery.ui.position',
461 'jquery.ui.resizable',
463 'skinStyles' => array(
464 'default' => 'resources/jquery.ui/themes/default/jquery.ui.dialog.css',
465 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.dialog.css',
467 'group' => 'jquery.ui',
469 'jquery.ui.progressbar' => array(
470 'scripts' => 'resources/jquery.ui/jquery.ui.progressbar.js',
471 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
472 'skinStyles' => array(
473 'default' => 'resources/jquery.ui/themes/default/jquery.ui.progressbar.css',
474 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.progressbar.css',
476 'group' => 'jquery.ui',
478 'jquery.ui.slider' => array(
479 'scripts' => 'resources/jquery.ui/jquery.ui.slider.js',
480 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
481 'skinStyles' => array(
482 'default' => 'resources/jquery.ui/themes/default/jquery.ui.slider.css',
483 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.slider.css',
485 'group' => 'jquery.ui',
487 'jquery.ui.tabs' => array(
488 'scripts' => 'resources/jquery.ui/jquery.ui.tabs.js',
489 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
490 'skinStyles' => array(
491 'default' => 'resources/jquery.ui/themes/default/jquery.ui.tabs.css',
492 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.tabs.css',
494 'group' => 'jquery.ui',
497 'jquery.effects.core' => array(
498 'scripts' => 'resources/jquery.effects/jquery.effects.core.js',
499 'dependencies' => 'jquery',
500 'group' => 'jquery.ui',
502 'jquery.effects.blind' => array(
503 'scripts' => 'resources/jquery.effects/jquery.effects.blind.js',
504 'dependencies' => 'jquery.effects.core',
505 'group' => 'jquery.ui',
507 'jquery.effects.bounce' => array(
508 'scripts' => 'resources/jquery.effects/jquery.effects.bounce.js',
509 'dependencies' => 'jquery.effects.core',
510 'group' => 'jquery.ui',
512 'jquery.effects.clip' => array(
513 'scripts' => 'resources/jquery.effects/jquery.effects.clip.js',
514 'dependencies' => 'jquery.effects.core',
515 'group' => 'jquery.ui',
517 'jquery.effects.drop' => array(
518 'scripts' => 'resources/jquery.effects/jquery.effects.drop.js',
519 'dependencies' => 'jquery.effects.core',
520 'group' => 'jquery.ui',
522 'jquery.effects.explode' => array(
523 'scripts' => 'resources/jquery.effects/jquery.effects.explode.js',
524 'dependencies' => 'jquery.effects.core',
525 'group' => 'jquery.ui',
527 'jquery.effects.fade' => array(
528 'scripts' => 'resources/jquery.effects/jquery.effects.fade.js',
529 'dependencies' => 'jquery.effects.core',
530 'group' => 'jquery.ui',
532 'jquery.effects.fold' => array(
533 'scripts' => 'resources/jquery.effects/jquery.effects.fold.js',
534 'dependencies' => 'jquery.effects.core',
535 'group' => 'jquery.ui',
537 'jquery.effects.highlight' => array(
538 'scripts' => 'resources/jquery.effects/jquery.effects.highlight.js',
539 'dependencies' => 'jquery.effects.core',
540 'group' => 'jquery.ui',
542 'jquery.effects.pulsate' => array(
543 'scripts' => 'resources/jquery.effects/jquery.effects.pulsate.js',
544 'dependencies' => 'jquery.effects.core',
545 'group' => 'jquery.ui',
547 'jquery.effects.scale' => array(
548 'scripts' => 'resources/jquery.effects/jquery.effects.scale.js',
549 'dependencies' => 'jquery.effects.core',
550 'group' => 'jquery.ui',
552 'jquery.effects.shake' => array(
553 'scripts' => 'resources/jquery.effects/jquery.effects.shake.js',
554 'dependencies' => 'jquery.effects.core',
555 'group' => 'jquery.ui',
557 'jquery.effects.slide' => array(
558 'scripts' => 'resources/jquery.effects/jquery.effects.slide.js',
559 'dependencies' => 'jquery.effects.core',
560 'group' => 'jquery.ui',
562 'jquery.effects.transfer' => array(
563 'scripts' => 'resources/jquery.effects/jquery.effects.transfer.js',
564 'dependencies' => 'jquery.effects.core',
565 'group' => 'jquery.ui',
570 'mediawiki' => array(
571 'scripts' => 'resources/mediawiki/mediawiki.js',
572 'debugScripts' => 'resources/mediawiki/mediawiki.log.js',
574 'targets' => array( 'desktop', 'mobile' ),
576 'mediawiki.api' => array(
577 'scripts' => 'resources/mediawiki.api/mediawiki.api.js',
578 'dependencies' => 'mediawiki.util',
580 'mediawiki.api.category' => array(
581 'scripts' => 'resources/mediawiki.api/mediawiki.api.category.js',
582 'dependencies' => array(
587 'mediawiki.api.edit' => array(
588 'scripts' => 'resources/mediawiki.api/mediawiki.api.edit.js',
589 'dependencies' => array(
594 'mediawiki.api.parse' => array(
595 'scripts' => 'resources/mediawiki.api/mediawiki.api.parse.js',
596 'dependencies' => 'mediawiki.api',
598 'mediawiki.api.titleblacklist' => array(
599 'scripts' => 'resources/mediawiki.api/mediawiki.api.titleblacklist.js',
600 'dependencies' => array(
605 'mediawiki.api.watch' => array(
606 'scripts' => 'resources/mediawiki.api/mediawiki.api.watch.js',
607 'dependencies' => array(
612 'mediawiki.debug' => array(
613 'scripts' => 'resources/mediawiki/mediawiki.debug.js',
614 'styles' => 'resources/mediawiki/mediawiki.debug.css',
615 'dependencies' => 'jquery.footHovzer',
616 'position' => 'bottom',
618 'mediawiki.debug.init' => array(
619 'scripts' => 'resources/mediawiki/mediawiki.debug.init.js',
620 'dependencies' => 'mediawiki.debug',
621 // Uses a custom mw.config variable that is set in debughtml,
622 // must be loaded on the bottom
623 'position' => 'bottom',
625 'mediawiki.feedback' => array(
626 'scripts' => 'resources/mediawiki/mediawiki.feedback.js',
627 'styles' => 'resources/mediawiki/mediawiki.feedback.css',
628 'dependencies' => array(
629 'mediawiki.api.edit',
631 'mediawiki.jqueryMsg',
635 'feedback-bugornote',
650 'mediawiki.hidpi' => array(
651 'scripts' => 'resources/mediawiki/mediawiki.hidpi.js',
652 'dependencies' => array(
655 'targets' => array( 'desktop', 'mobile' ),
657 'mediawiki.htmlform' => array(
658 'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
660 'mediawiki.notification' => array(
661 'styles' => 'resources/mediawiki/mediawiki.notification.css',
662 'scripts' => 'resources/mediawiki/mediawiki.notification.js',
663 'dependencies' => array(
664 'mediawiki.page.startup',
667 'mediawiki.notify' => array(
668 'scripts' => 'resources/mediawiki/mediawiki.notify.js',
669 'targets' => array( 'desktop', 'mobile' ),
671 'mediawiki.searchSuggest' => array(
672 'scripts' => 'resources/mediawiki/mediawiki.searchSuggest.js',
673 'styles' => 'resources/mediawiki/mediawiki.searchSuggest.css',
675 'searchsuggest-search',
676 'searchsuggest-containing',
678 'dependencies' => array(
679 'jquery.autoEllipsis',
681 'jquery.placeholder',
682 'jquery.suggestions',
685 'mediawiki.Title' => array(
686 'scripts' => 'resources/mediawiki/mediawiki.Title.js',
687 'dependencies' => 'mediawiki.util',
689 'mediawiki.Uri' => array(
690 'scripts' => 'resources/mediawiki/mediawiki.Uri.js',
692 'mediawiki.user' => array(
693 'scripts' => 'resources/mediawiki/mediawiki.user.js',
694 'dependencies' => array(
701 'mediawiki.util' => array(
702 'scripts' => 'resources/mediawiki/mediawiki.util.js',
703 'dependencies' => array(
706 'jquery.mwExtension',
709 'messages' => array( 'showtoc', 'hidetoc' ),
710 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
711 'targets' => array( 'desktop', 'mobile' ),
714 /* MediaWiki Action */
716 'mediawiki.action.edit' => array(
717 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
718 'dependencies' => array(
719 'jquery.textSelection',
724 'mediawiki.action.edit.preview' => array(
725 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.preview.js',
726 'dependencies' => array(
731 'mediawiki.action.history' => array(
732 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
733 'group' => 'mediawiki.action.history',
735 'mediawiki.action.history.diff' => array(
736 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
737 'group' => 'mediawiki.action.history',
739 'mediawiki.action.view.dblClickEdit' => array(
740 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
741 'dependencies' => array(
743 'mediawiki.page.startup',
746 'mediawiki.action.view.metadata' => array(
747 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js',
753 'mediawiki.action.view.postEdit' => array(
754 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.js',
755 'dependencies' => 'jquery.cookie'
757 'mediawiki.action.view.rightClickEdit' => array(
758 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
760 // Alias for backwards compatibility
761 'mediawiki.action.watch.ajax' => array(
762 'dependencies' => 'mediawiki.page.watch.ajax'
765 /* MediaWiki Language */
767 'mediawiki.language' => array(
769 'resources/mediawiki.language/mediawiki.language.js',
770 'resources/mediawiki.language/mediawiki.language.numbers.js'
772 'languageScripts' => array(
773 'bs' => 'resources/mediawiki.language/languages/bs.js',
774 'dsb' => 'resources/mediawiki.language/languages/dsb.js',
775 'fi' => 'resources/mediawiki.language/languages/fi.js',
776 'ga' => 'resources/mediawiki.language/languages/ga.js',
777 'he' => 'resources/mediawiki.language/languages/he.js',
778 'hsb' => 'resources/mediawiki.language/languages/hsb.js',
779 'hu' => 'resources/mediawiki.language/languages/hu.js',
780 'hy' => 'resources/mediawiki.language/languages/hy.js',
781 'la' => 'resources/mediawiki.language/languages/la.js',
782 'os' => 'resources/mediawiki.language/languages/os.js',
783 'ru' => 'resources/mediawiki.language/languages/ru.js',
784 'sl' => 'resources/mediawiki.language/languages/sl.js',
785 'uk' => 'resources/mediawiki.language/languages/uk.js',
787 'dependencies' => array(
788 'mediawiki.language.data',
791 'targets' => array( 'desktop', 'mobile' ),
794 'mediawiki.cldr' => array(
795 'scripts' => 'resources/mediawiki.language/mediawiki.cldr.js',
796 'dependencies' => array(
797 'mediawiki.libs.pluralruleparser',
799 'targets' => array( 'desktop', 'mobile' ),
802 'mediawiki.libs.pluralruleparser' => array(
803 'scripts' => 'resources/mediawiki.libs/CLDRPluralRuleParser.js',
804 'targets' => array( 'desktop', 'mobile' ),
807 'mediawiki.language.init' => array(
808 'scripts' => 'resources/mediawiki.language/mediawiki.language.init.js',
809 'targets' => array( 'desktop', 'mobile' ),
812 'mediawiki.jqueryMsg' => array(
813 'scripts' => 'resources/mediawiki/mediawiki.jqueryMsg.js',
814 'dependencies' => array(
816 'mediawiki.language',
818 'targets' => array( 'desktop', 'mobile' ),
823 'mediawiki.libs.jpegmeta' => array(
824 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
829 'mediawiki.page.ready' => array(
830 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
831 'dependencies' => array(
832 'jquery.checkboxShiftClick',
833 'jquery.makeCollapsible',
834 'jquery.placeholder',
839 'mediawiki.page.startup' => array(
840 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js',
841 'dependencies' => array(
847 'mediawiki.page.patrol.ajax' => array(
848 'scripts' => 'resources/mediawiki.page/mediawiki.page.patrol.ajax.js',
849 'dependencies' => array(
850 'mediawiki.page.startup',
859 'markedaspatrollednotify',
860 'markedaspatrollederrornotify',
861 'markedaspatrollederror-noautopatrol'
864 'mediawiki.page.watch.ajax' => array(
865 'scripts' => 'resources/mediawiki.page/mediawiki.page.watch.ajax.js',
866 'dependencies' => array(
867 'mediawiki.page.startup',
868 'mediawiki.api.watch',
871 'jquery.mwExtension',
879 'tooltip-ca-unwatch',
884 /* MediaWiki Special pages */
886 'mediawiki.special' => array(
887 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
888 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
890 'mediawiki.special.block' => array(
891 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
892 'dependencies' => array(
896 'mediawiki.special.changeemail' => array(
897 'scripts' => 'resources/mediawiki.special/mediawiki.special.changeemail.js',
898 'styles' => 'resources/mediawiki.special/mediawiki.special.changeemail.css',
899 'dependencies' => array(
903 'email-address-validity-valid',
904 'email-address-validity-invalid',
907 'mediawiki.special.changeslist' => array(
908 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
909 'dependencies' => array( 'jquery.makeCollapsible' ),
911 'mediawiki.special.movePage' => array(
912 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
913 'dependencies' => 'jquery.byteLimit',
915 'mediawiki.special.preferences' => array(
916 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
917 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
919 'mediawiki.special.recentchanges' => array(
920 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
921 'dependencies' => array( 'mediawiki.special' ),
924 'mediawiki.special.search' => array(
925 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
926 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
928 'powersearch-togglelabel',
929 'powersearch-toggleall',
930 'powersearch-togglenone',
933 'mediawiki.special.undelete' => array(
934 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
936 'mediawiki.special.upload' => array(
937 // @TODO: merge in remainder of mediawiki.legacy.upload
938 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',
947 'dependencies' => array( 'mediawiki.libs.jpegmeta', 'mediawiki.util' ),
949 'mediawiki.special.userlogin.signup' => array(
950 'scripts' => 'resources/mediawiki.special/mediawiki.special.userLogin.signup.js',
952 'mediawiki.special.javaScriptTest' => array(
953 'scripts' => 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js',
954 'messages' => array_merge( Skin
::getSkinNameMessages(), array(
956 'javascripttest-pagetext-skins',
958 'dependencies' => array( 'jquery.qunit' ),
962 /* MediaWiki Tests */
964 'mediawiki.tests.qunit.testrunner' => array(
965 'scripts' => 'tests/qunit/data/testrunner.js',
966 'dependencies' => array(
968 'jquery.qunit.completenessTest',
969 'mediawiki.page.startup',
970 'mediawiki.page.ready',
975 /* MediaWiki Legacy */
977 'mediawiki.legacy.ajax' => array(
978 'scripts' => 'common/ajax.js',
979 'remoteBasePath' => $GLOBALS['wgStylePath'],
980 'localBasePath' => $GLOBALS['wgStyleDirectory'],
981 'dependencies' => array(
983 'mediawiki.legacy.wikibits',
985 'position' => 'top', // Temporary hack for legacy support
987 'mediawiki.legacy.commonPrint' => array(
988 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
989 'remoteBasePath' => $GLOBALS['wgStylePath'],
990 'localBasePath' => $GLOBALS['wgStyleDirectory'],
992 'mediawiki.legacy.config' => array(
993 'scripts' => 'common/config.js',
994 'styles' => array( 'common/config.css', 'common/config-cc.css' ),
995 'remoteBasePath' => $GLOBALS['wgStylePath'],
996 'localBasePath' => $GLOBALS['wgStyleDirectory'],
997 'dependencies' => 'mediawiki.legacy.wikibits',
999 'mediawiki.legacy.IEFixes' => array(
1000 'scripts' => 'common/IEFixes.js',
1001 'remoteBasePath' => $GLOBALS['wgStylePath'],
1002 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1003 'dependencies' => 'mediawiki.legacy.wikibits',
1005 'mediawiki.legacy.protect' => array(
1006 'scripts' => 'common/protect.js',
1007 'remoteBasePath' => $GLOBALS['wgStylePath'],
1008 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1009 'dependencies' => array(
1010 'mediawiki.legacy.wikibits',
1013 'position' => 'top',
1015 'mediawiki.legacy.shared' => array(
1016 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
1017 'remoteBasePath' => $GLOBALS['wgStylePath'],
1018 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1020 'mediawiki.legacy.oldshared' => array(
1021 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
1022 'remoteBasePath' => $GLOBALS['wgStylePath'],
1023 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1025 'mediawiki.legacy.upload' => array(
1026 'scripts' => 'common/upload.js',
1027 'remoteBasePath' => $GLOBALS['wgStylePath'],
1028 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1029 'dependencies' => array(
1030 'mediawiki.legacy.wikibits',
1034 'mediawiki.legacy.wikibits' => array(
1035 'scripts' => 'common/wikibits.js',
1036 'remoteBasePath' => $GLOBALS['wgStylePath'],
1037 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1038 'dependencies' => array(
1041 'position' => 'top',
1043 'mediawiki.legacy.wikiprintable' => array(
1044 'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
1045 'remoteBasePath' => $GLOBALS['wgStylePath'],
1046 'localBasePath' => $GLOBALS['wgStyleDirectory'],