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.watch' => array(
599 'scripts' => 'resources/mediawiki.api/mediawiki.api.watch.js',
600 'dependencies' => array(
605 'mediawiki.debug' => array(
606 'scripts' => 'resources/mediawiki/mediawiki.debug.js',
607 'styles' => 'resources/mediawiki/mediawiki.debug.css',
608 'dependencies' => 'jquery.footHovzer',
609 'position' => 'bottom',
611 'mediawiki.debug.init' => array(
612 'scripts' => 'resources/mediawiki/mediawiki.debug.init.js',
613 'dependencies' => 'mediawiki.debug',
614 // Uses a custom mw.config variable that is set in debughtml,
615 // must be loaded on the bottom
616 'position' => 'bottom',
618 'mediawiki.feedback' => array(
619 'scripts' => 'resources/mediawiki/mediawiki.feedback.js',
620 'styles' => 'resources/mediawiki/mediawiki.feedback.css',
621 'dependencies' => array(
622 'mediawiki.api.edit',
624 'mediawiki.jqueryMsg',
628 'feedback-bugornote',
643 'mediawiki.hidpi' => array(
644 'scripts' => 'resources/mediawiki/mediawiki.hidpi.js',
645 'dependencies' => array(
648 'targets' => array( 'desktop', 'mobile' ),
650 'mediawiki.htmlform' => array(
651 'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
653 'mediawiki.notification' => array(
654 'styles' => 'resources/mediawiki/mediawiki.notification.css',
655 'scripts' => 'resources/mediawiki/mediawiki.notification.js',
656 'dependencies' => array(
657 'mediawiki.page.startup',
660 'mediawiki.notify' => array(
661 'scripts' => 'resources/mediawiki/mediawiki.notify.js',
662 'targets' => array( 'desktop', 'mobile' ),
664 'mediawiki.searchSuggest' => array(
665 'scripts' => 'resources/mediawiki/mediawiki.searchSuggest.js',
666 'styles' => 'resources/mediawiki/mediawiki.searchSuggest.css',
668 'searchsuggest-search',
669 'searchsuggest-containing',
671 'dependencies' => array(
672 'jquery.autoEllipsis',
674 'jquery.placeholder',
675 'jquery.suggestions',
678 'mediawiki.Title' => array(
679 'scripts' => 'resources/mediawiki/mediawiki.Title.js',
680 'dependencies' => 'mediawiki.util',
682 'mediawiki.Uri' => array(
683 'scripts' => 'resources/mediawiki/mediawiki.Uri.js',
685 'mediawiki.user' => array(
686 'scripts' => 'resources/mediawiki/mediawiki.user.js',
687 'dependencies' => array(
694 'mediawiki.util' => array(
695 'scripts' => 'resources/mediawiki/mediawiki.util.js',
696 'dependencies' => array(
699 'jquery.mwExtension',
702 'messages' => array( 'showtoc', 'hidetoc' ),
703 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
704 'targets' => array( 'desktop', 'mobile' ),
707 /* MediaWiki Action */
709 'mediawiki.action.edit' => array(
710 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
711 'dependencies' => array(
712 'jquery.textSelection',
717 'mediawiki.action.edit.preview' => array(
718 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.preview.js',
719 'dependencies' => array(
724 'mediawiki.action.history' => array(
725 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
726 'group' => 'mediawiki.action.history',
728 'mediawiki.action.history.diff' => array(
729 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
730 'group' => 'mediawiki.action.history',
732 'mediawiki.action.view.dblClickEdit' => array(
733 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
734 'dependencies' => array(
736 'mediawiki.page.startup',
739 'mediawiki.action.view.metadata' => array(
740 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js',
746 'mediawiki.action.view.postEdit' => array(
747 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.js',
748 'dependencies' => 'jquery.cookie'
750 'mediawiki.action.view.rightClickEdit' => array(
751 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
753 // Alias for backwards compatibility
754 'mediawiki.action.watch.ajax' => array(
755 'dependencies' => 'mediawiki.page.watch.ajax'
758 /* MediaWiki Language */
760 'mediawiki.language' => array(
762 'resources/mediawiki.language/mediawiki.language.js',
763 'resources/mediawiki.language/mediawiki.language.numbers.js'
765 'languageScripts' => array(
766 'bs' => 'resources/mediawiki.language/languages/bs.js',
767 'dsb' => 'resources/mediawiki.language/languages/dsb.js',
768 'fi' => 'resources/mediawiki.language/languages/fi.js',
769 'ga' => 'resources/mediawiki.language/languages/ga.js',
770 'he' => 'resources/mediawiki.language/languages/he.js',
771 'hsb' => 'resources/mediawiki.language/languages/hsb.js',
772 'hu' => 'resources/mediawiki.language/languages/hu.js',
773 'hy' => 'resources/mediawiki.language/languages/hy.js',
774 'la' => 'resources/mediawiki.language/languages/la.js',
775 'os' => 'resources/mediawiki.language/languages/os.js',
776 'ru' => 'resources/mediawiki.language/languages/ru.js',
777 'sl' => 'resources/mediawiki.language/languages/sl.js',
778 'uk' => 'resources/mediawiki.language/languages/uk.js',
780 'dependencies' => array(
781 'mediawiki.language.data',
784 'targets' => array( 'desktop', 'mobile' ),
787 'mediawiki.cldr' => array(
788 'scripts' => 'resources/mediawiki.language/mediawiki.cldr.js',
789 'dependencies' => array(
790 'mediawiki.libs.pluralruleparser',
792 'targets' => array( 'desktop', 'mobile' ),
795 'mediawiki.libs.pluralruleparser' => array(
796 'scripts' => 'resources/mediawiki.libs/CLDRPluralRuleParser.js',
797 'targets' => array( 'desktop', 'mobile' ),
800 'mediawiki.language.init' => array(
801 'scripts' => 'resources/mediawiki.language/mediawiki.language.init.js',
802 'targets' => array( 'desktop', 'mobile' ),
805 'mediawiki.jqueryMsg' => array(
806 'scripts' => 'resources/mediawiki/mediawiki.jqueryMsg.js',
807 'dependencies' => array(
809 'mediawiki.language',
811 'targets' => array( 'desktop', 'mobile' ),
816 'mediawiki.libs.jpegmeta' => array(
817 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
822 'mediawiki.page.ready' => array(
823 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
824 'dependencies' => array(
825 'jquery.checkboxShiftClick',
826 'jquery.makeCollapsible',
827 'jquery.placeholder',
832 'mediawiki.page.startup' => array(
833 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js',
834 'dependencies' => array(
840 'mediawiki.page.patrol.ajax' => array(
841 'scripts' => 'resources/mediawiki.page/mediawiki.page.patrol.ajax.js',
842 'dependencies' => array(
843 'mediawiki.page.startup',
852 'markedaspatrollednotify',
853 'markedaspatrollederrornotify',
854 'markedaspatrollederror-noautopatrol'
857 'mediawiki.page.watch.ajax' => array(
858 'scripts' => 'resources/mediawiki.page/mediawiki.page.watch.ajax.js',
859 'dependencies' => array(
860 'mediawiki.page.startup',
861 'mediawiki.api.watch',
864 'jquery.mwExtension',
872 'tooltip-ca-unwatch',
877 /* MediaWiki Special pages */
879 'mediawiki.special' => array(
880 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
881 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
883 'mediawiki.special.block' => array(
884 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
885 'dependencies' => array(
889 'mediawiki.special.changeemail' => array(
890 'scripts' => 'resources/mediawiki.special/mediawiki.special.changeemail.js',
891 'styles' => 'resources/mediawiki.special/mediawiki.special.changeemail.css',
892 'dependencies' => array(
896 'email-address-validity-valid',
897 'email-address-validity-invalid',
900 'mediawiki.special.changeslist' => array(
901 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
902 'dependencies' => array( 'jquery.makeCollapsible' ),
904 'mediawiki.special.movePage' => array(
905 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
906 'dependencies' => 'jquery.byteLimit',
908 'mediawiki.special.preferences' => array(
909 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
910 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
912 'mediawiki.special.recentchanges' => array(
913 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
914 'dependencies' => array( 'mediawiki.special' ),
917 'mediawiki.special.search' => array(
918 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
919 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
921 'powersearch-togglelabel',
922 'powersearch-toggleall',
923 'powersearch-togglenone',
926 'mediawiki.special.undelete' => array(
927 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
929 'mediawiki.special.upload' => array(
930 // @TODO: merge in remainder of mediawiki.legacy.upload
931 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',
940 'dependencies' => array( 'mediawiki.libs.jpegmeta', 'mediawiki.util' ),
942 'mediawiki.special.userlogin.signup' => array(
943 'scripts' => 'resources/mediawiki.special/mediawiki.special.userLogin.signup.js',
945 'mediawiki.special.javaScriptTest' => array(
946 'scripts' => 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js',
947 'messages' => array_merge( Skin
::getSkinNameMessages(), array(
949 'javascripttest-pagetext-skins',
951 'dependencies' => array( 'jquery.qunit' ),
955 /* MediaWiki Tests */
957 'mediawiki.tests.qunit.testrunner' => array(
958 'scripts' => 'tests/qunit/data/testrunner.js',
959 'dependencies' => array(
962 'jquery.qunit.completenessTest',
963 'mediawiki.page.startup',
964 'mediawiki.page.ready',
969 /* MediaWiki Legacy */
971 'mediawiki.legacy.ajax' => array(
972 'scripts' => 'common/ajax.js',
973 'remoteBasePath' => $GLOBALS['wgStylePath'],
974 'localBasePath' => $GLOBALS['wgStyleDirectory'],
975 'dependencies' => array(
977 'mediawiki.legacy.wikibits',
979 'position' => 'top', // Temporary hack for legacy support
981 'mediawiki.legacy.commonPrint' => array(
982 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
983 'remoteBasePath' => $GLOBALS['wgStylePath'],
984 'localBasePath' => $GLOBALS['wgStyleDirectory'],
986 'mediawiki.legacy.config' => array(
987 'scripts' => 'common/config.js',
988 'styles' => array( 'common/config.css', 'common/config-cc.css' ),
989 'remoteBasePath' => $GLOBALS['wgStylePath'],
990 'localBasePath' => $GLOBALS['wgStyleDirectory'],
991 'dependencies' => 'mediawiki.legacy.wikibits',
993 'mediawiki.legacy.IEFixes' => array(
994 'scripts' => 'common/IEFixes.js',
995 'remoteBasePath' => $GLOBALS['wgStylePath'],
996 'localBasePath' => $GLOBALS['wgStyleDirectory'],
997 'dependencies' => 'mediawiki.legacy.wikibits',
999 'mediawiki.legacy.protect' => array(
1000 'scripts' => 'common/protect.js',
1001 'remoteBasePath' => $GLOBALS['wgStylePath'],
1002 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1003 'dependencies' => array(
1004 'mediawiki.legacy.wikibits',
1007 'position' => 'top',
1009 'mediawiki.legacy.shared' => array(
1010 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
1011 'remoteBasePath' => $GLOBALS['wgStylePath'],
1012 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1014 'mediawiki.legacy.oldshared' => array(
1015 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
1016 'remoteBasePath' => $GLOBALS['wgStylePath'],
1017 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1019 'mediawiki.legacy.upload' => array(
1020 'scripts' => 'common/upload.js',
1021 'remoteBasePath' => $GLOBALS['wgStylePath'],
1022 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1023 'dependencies' => array(
1024 'mediawiki.legacy.wikibits',
1028 'mediawiki.legacy.wikibits' => array(
1029 'scripts' => 'common/wikibits.js',
1030 'remoteBasePath' => $GLOBALS['wgStylePath'],
1031 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1032 'dependencies' => array(
1035 'position' => 'top',
1037 'mediawiki.legacy.wikiprintable' => array(
1038 'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
1039 'remoteBasePath' => $GLOBALS['wgStylePath'],
1040 'localBasePath' => $GLOBALS['wgStyleDirectory'],