4374b09c07e67749970f6fcb63ab7537a3a84079
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',
152 'dependencies' => 'mediawiki.language',
154 'jquery.byteLength' => array(
155 'scripts' => 'resources/jquery/jquery.byteLength.js',
157 'jquery.byteLimit' => array(
158 'scripts' => 'resources/jquery/jquery.byteLimit.js',
159 'dependencies' => 'jquery.byteLength',
161 'jquery.checkboxShiftClick' => array(
162 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js',
163 'targets' => array( 'desktop', 'mobile' ),
165 'jquery.client' => array(
166 'scripts' => 'resources/jquery/jquery.client.js',
167 'targets' => array( 'desktop', 'mobile' ),
169 'jquery.color' => array(
170 'scripts' => 'resources/jquery/jquery.color.js',
171 'dependencies' => 'jquery.colorUtil',
173 'jquery.colorUtil' => array(
174 'scripts' => 'resources/jquery/jquery.colorUtil.js',
176 'jquery.cookie' => array(
177 'scripts' => 'resources/jquery/jquery.cookie.js',
178 'targets' => array( 'desktop', 'mobile' ),
180 'jquery.delayedBind' => array(
181 'scripts' => 'resources/jquery/jquery.delayedBind.js',
183 'jquery.expandableField' => array(
184 'scripts' => 'resources/jquery/jquery.expandableField.js',
185 'dependencies' => 'jquery.delayedBind',
187 'jquery.farbtastic' => array(
188 'scripts' => 'resources/jquery/jquery.farbtastic.js',
189 'styles' => 'resources/jquery/jquery.farbtastic.css',
190 'dependencies' => 'jquery.colorUtil',
192 'jquery.footHovzer' => array(
193 'scripts' => 'resources/jquery/jquery.footHovzer.js',
194 'styles' => 'resources/jquery/jquery.footHovzer.css',
196 'jquery.form' => array(
197 'scripts' => 'resources/jquery/jquery.form.js',
199 'jquery.getAttrs' => array(
200 'scripts' => 'resources/jquery/jquery.getAttrs.js',
201 'targets' => array( 'desktop', 'mobile' ),
203 'jquery.hidpi' => array(
204 'scripts' => 'resources/jquery/jquery.hidpi.js',
205 'targets' => array( 'desktop', 'mobile' ),
207 'jquery.highlightText' => array(
208 'scripts' => 'resources/jquery/jquery.highlightText.js',
209 'dependencies' => 'jquery.mwExtension',
211 'jquery.hoverIntent' => array(
212 'scripts' => 'resources/jquery/jquery.hoverIntent.js',
214 'jquery.json' => array(
215 'scripts' => 'resources/jquery/jquery.json.js',
216 'targets' => array( 'mobile', 'desktop' ),
218 'jquery.localize' => array(
219 'scripts' => 'resources/jquery/jquery.localize.js',
221 'jquery.makeCollapsible' => array(
222 'scripts' => 'resources/jquery/jquery.makeCollapsible.js',
223 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
224 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
225 'targets' => array( 'desktop', 'mobile' ),
227 'jquery.mockjax' => array(
228 'scripts' => 'resources/jquery/jquery.mockjax.js',
230 'jquery.mw-jump' => array(
231 'scripts' => 'resources/jquery/jquery.mw-jump.js',
232 'targets' => array( 'desktop', 'mobile' ),
234 'jquery.mwExtension' => array(
235 'scripts' => 'resources/jquery/jquery.mwExtension.js',
236 'targets' => array( 'desktop', 'mobile' ),
238 'jquery.placeholder' => array(
239 'scripts' => 'resources/jquery/jquery.placeholder.js',
240 'targets' => array( 'desktop', 'mobile' ),
242 'jquery.qunit' => array(
243 'scripts' => 'resources/jquery/jquery.qunit.js',
244 'styles' => 'resources/jquery/jquery.qunit.css',
246 'targets' => array( 'desktop', 'mobile' ),
248 'jquery.qunit.completenessTest' => array(
249 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
250 'dependencies' => 'jquery.qunit',
251 'targets' => array( 'desktop', 'mobile' ),
253 'jquery.spinner' => array(
254 'scripts' => 'resources/jquery/jquery.spinner.js',
255 'styles' => 'resources/jquery/jquery.spinner.css',
257 'jquery.jStorage' => array(
258 'scripts' => 'resources/jquery/jquery.jStorage.js',
259 'dependencies' => 'jquery.json',
261 'jquery.suggestions' => array(
262 'scripts' => 'resources/jquery/jquery.suggestions.js',
263 'styles' => 'resources/jquery/jquery.suggestions.css',
264 'dependencies' => 'jquery.autoEllipsis',
266 'jquery.tabIndex' => array(
267 'scripts' => 'resources/jquery/jquery.tabIndex.js',
269 'jquery.tablesorter' => array(
270 'scripts' => 'resources/jquery/jquery.tablesorter.js',
271 'styles' => 'resources/jquery/jquery.tablesorter.css',
272 'messages' => array( 'sort-descending', 'sort-ascending' ),
273 'dependencies' => 'jquery.mwExtension',
275 'jquery.textSelection' => array(
276 'scripts' => 'resources/jquery/jquery.textSelection.js',
277 'dependencies' => 'jquery.client',
279 'jquery.validate' => array(
280 'scripts' => 'resources/jquery/jquery.validate.js',
282 'jquery.xmldom' => array(
283 'scripts' => 'resources/jquery/jquery.xmldom.js',
288 'jquery.tipsy' => array(
289 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js',
290 'styles' => 'resources/jquery.tipsy/jquery.tipsy.css',
296 'jquery.ui.core' => array(
297 'scripts' => 'resources/jquery.ui/jquery.ui.core.js',
298 'skinStyles' => array(
300 'resources/jquery.ui/themes/default/jquery.ui.core.css',
301 'resources/jquery.ui/themes/default/jquery.ui.theme.css',
304 'resources/jquery.ui/themes/vector/jquery.ui.core.css',
305 'resources/jquery.ui/themes/vector/jquery.ui.theme.css',
308 'dependencies' => 'jquery',
309 'group' => 'jquery.ui',
311 'jquery.ui.widget' => array(
312 'scripts' => 'resources/jquery.ui/jquery.ui.widget.js',
313 'group' => 'jquery.ui',
315 'jquery.ui.mouse' => array(
316 'scripts' => 'resources/jquery.ui/jquery.ui.mouse.js',
317 'dependencies' => 'jquery.ui.widget',
318 'group' => 'jquery.ui',
320 'jquery.ui.position' => array(
321 'scripts' => 'resources/jquery.ui/jquery.ui.position.js',
322 'group' => 'jquery.ui',
325 'jquery.ui.draggable' => array(
326 'scripts' => 'resources/jquery.ui/jquery.ui.draggable.js',
327 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget' ),
328 'group' => 'jquery.ui',
330 'jquery.ui.droppable' => array(
331 'scripts' => 'resources/jquery.ui/jquery.ui.droppable.js',
332 'dependencies' => array(
333 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable',
335 'group' => 'jquery.ui',
337 'jquery.ui.resizable' => array(
338 'scripts' => 'resources/jquery.ui/jquery.ui.resizable.js',
339 'skinStyles' => array(
340 'default' => 'resources/jquery.ui/themes/default/jquery.ui.resizable.css',
341 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.resizable.css',
343 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
344 'group' => 'jquery.ui',
346 'jquery.ui.selectable' => array(
347 'scripts' => 'resources/jquery.ui/jquery.ui.selectable.js',
348 'skinStyles' => array(
349 'default' => 'resources/jquery.ui/themes/default/jquery.ui.selectable.css',
350 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.selectable.css',
352 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
353 'group' => 'jquery.ui',
355 'jquery.ui.sortable' => array(
356 'scripts' => 'resources/jquery.ui/jquery.ui.sortable.js',
357 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
358 'group' => 'jquery.ui',
361 'jquery.ui.accordion' => array(
362 'scripts' => 'resources/jquery.ui/jquery.ui.accordion.js',
363 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
364 'skinStyles' => array(
365 'default' => 'resources/jquery.ui/themes/default/jquery.ui.accordion.css',
366 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.accordion.css',
368 'group' => 'jquery.ui',
370 'jquery.ui.autocomplete' => array(
371 'scripts' => 'resources/jquery.ui/jquery.ui.autocomplete.js',
372 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ),
373 'skinStyles' => array(
374 'default' => 'resources/jquery.ui/themes/default/jquery.ui.autocomplete.css',
375 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.autocomplete.css',
377 'group' => 'jquery.ui',
379 'jquery.ui.button' => array(
380 'scripts' => 'resources/jquery.ui/jquery.ui.button.js',
381 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
382 'skinStyles' => array(
383 'default' => 'resources/jquery.ui/themes/default/jquery.ui.button.css',
384 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.button.css',
386 'group' => 'jquery.ui',
388 'jquery.ui.datepicker' => array(
389 'scripts' => 'resources/jquery.ui/jquery.ui.datepicker.js',
390 'dependencies' => 'jquery.ui.core',
391 'skinStyles' => array(
392 'default' => 'resources/jquery.ui/themes/default/jquery.ui.datepicker.css',
393 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.datepicker.css',
395 'languageScripts' => array(
396 'af' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-af.js',
397 'ar' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
398 'az' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-az.js',
399 'bg' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
400 'bs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
401 'ca' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
402 'cs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
403 'da' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-da.js',
404 'de' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-de.js',
405 'el' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-el.js',
406 'en-gb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
407 'eo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
408 'es' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-es.js',
409 'et' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-et.js',
410 'eu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
411 'fa' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
412 'fi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
413 'fo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
414 'fr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
415 'gl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
416 'he' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-he.js',
417 'hi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
418 'hr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
419 'hu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
420 'hy' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
421 'id' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-id.js',
422 'is' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-is.js',
423 'it' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-it.js',
424 'ja' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
425 'ka' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
426 'kk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
427 'km' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-km.js',
428 'ko' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
429 'lb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
430 'lt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
431 'lv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
432 'mk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
433 'ml' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
434 'ms' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
435 'nl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
436 'no' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-no.js',
437 'pl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
438 'pt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
439 'pt-br' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
440 'rm' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
441 'ro' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
442 'ru' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
443 'sk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
444 'sl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
445 'sq' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
446 'sr-sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
447 'sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
448 'sv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
449 'ta' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
450 'th' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-th.js',
451 'tr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
452 'uk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
453 'vi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
454 'zh-cn' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
455 'zh-hk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
456 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
458 'group' => 'jquery.ui',
460 'jquery.ui.dialog' => array(
461 'scripts' => 'resources/jquery.ui/jquery.ui.dialog.js',
462 'dependencies' => array(
466 'jquery.ui.draggable',
468 'jquery.ui.position',
469 'jquery.ui.resizable',
471 'skinStyles' => array(
472 'default' => 'resources/jquery.ui/themes/default/jquery.ui.dialog.css',
473 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.dialog.css',
475 'group' => 'jquery.ui',
477 'jquery.ui.progressbar' => array(
478 'scripts' => 'resources/jquery.ui/jquery.ui.progressbar.js',
479 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
480 'skinStyles' => array(
481 'default' => 'resources/jquery.ui/themes/default/jquery.ui.progressbar.css',
482 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.progressbar.css',
484 'group' => 'jquery.ui',
486 'jquery.ui.slider' => array(
487 'scripts' => 'resources/jquery.ui/jquery.ui.slider.js',
488 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
489 'skinStyles' => array(
490 'default' => 'resources/jquery.ui/themes/default/jquery.ui.slider.css',
491 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.slider.css',
493 'group' => 'jquery.ui',
495 'jquery.ui.tabs' => array(
496 'scripts' => 'resources/jquery.ui/jquery.ui.tabs.js',
497 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
498 'skinStyles' => array(
499 'default' => 'resources/jquery.ui/themes/default/jquery.ui.tabs.css',
500 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.tabs.css',
502 'group' => 'jquery.ui',
505 'jquery.effects.core' => array(
506 'scripts' => 'resources/jquery.effects/jquery.effects.core.js',
507 'dependencies' => 'jquery',
508 'group' => 'jquery.ui',
510 'jquery.effects.blind' => array(
511 'scripts' => 'resources/jquery.effects/jquery.effects.blind.js',
512 'dependencies' => 'jquery.effects.core',
513 'group' => 'jquery.ui',
515 'jquery.effects.bounce' => array(
516 'scripts' => 'resources/jquery.effects/jquery.effects.bounce.js',
517 'dependencies' => 'jquery.effects.core',
518 'group' => 'jquery.ui',
520 'jquery.effects.clip' => array(
521 'scripts' => 'resources/jquery.effects/jquery.effects.clip.js',
522 'dependencies' => 'jquery.effects.core',
523 'group' => 'jquery.ui',
525 'jquery.effects.drop' => array(
526 'scripts' => 'resources/jquery.effects/jquery.effects.drop.js',
527 'dependencies' => 'jquery.effects.core',
528 'group' => 'jquery.ui',
530 'jquery.effects.explode' => array(
531 'scripts' => 'resources/jquery.effects/jquery.effects.explode.js',
532 'dependencies' => 'jquery.effects.core',
533 'group' => 'jquery.ui',
535 'jquery.effects.fade' => array(
536 'scripts' => 'resources/jquery.effects/jquery.effects.fade.js',
537 'dependencies' => 'jquery.effects.core',
538 'group' => 'jquery.ui',
540 'jquery.effects.fold' => array(
541 'scripts' => 'resources/jquery.effects/jquery.effects.fold.js',
542 'dependencies' => 'jquery.effects.core',
543 'group' => 'jquery.ui',
545 'jquery.effects.highlight' => array(
546 'scripts' => 'resources/jquery.effects/jquery.effects.highlight.js',
547 'dependencies' => 'jquery.effects.core',
548 'group' => 'jquery.ui',
550 'jquery.effects.pulsate' => array(
551 'scripts' => 'resources/jquery.effects/jquery.effects.pulsate.js',
552 'dependencies' => 'jquery.effects.core',
553 'group' => 'jquery.ui',
555 'jquery.effects.scale' => array(
556 'scripts' => 'resources/jquery.effects/jquery.effects.scale.js',
557 'dependencies' => 'jquery.effects.core',
558 'group' => 'jquery.ui',
560 'jquery.effects.shake' => array(
561 'scripts' => 'resources/jquery.effects/jquery.effects.shake.js',
562 'dependencies' => 'jquery.effects.core',
563 'group' => 'jquery.ui',
565 'jquery.effects.slide' => array(
566 'scripts' => 'resources/jquery.effects/jquery.effects.slide.js',
567 'dependencies' => 'jquery.effects.core',
568 'group' => 'jquery.ui',
570 'jquery.effects.transfer' => array(
571 'scripts' => 'resources/jquery.effects/jquery.effects.transfer.js',
572 'dependencies' => 'jquery.effects.core',
573 'group' => 'jquery.ui',
578 'mediawiki' => array(
579 'scripts' => 'resources/mediawiki/mediawiki.js',
580 'debugScripts' => 'resources/mediawiki/mediawiki.log.js',
582 'targets' => array( 'desktop', 'mobile' ),
584 'mediawiki.api' => array(
585 'scripts' => 'resources/mediawiki.api/mediawiki.api.js',
586 'dependencies' => 'mediawiki.util',
588 'mediawiki.api.category' => array(
589 'scripts' => 'resources/mediawiki.api/mediawiki.api.category.js',
590 'dependencies' => array(
595 'mediawiki.api.edit' => array(
596 'scripts' => 'resources/mediawiki.api/mediawiki.api.edit.js',
597 'dependencies' => array(
602 'mediawiki.api.parse' => array(
603 'scripts' => 'resources/mediawiki.api/mediawiki.api.parse.js',
604 'dependencies' => 'mediawiki.api',
606 'mediawiki.api.watch' => array(
607 'scripts' => 'resources/mediawiki.api/mediawiki.api.watch.js',
608 'dependencies' => array(
613 'mediawiki.debug' => array(
614 'scripts' => 'resources/mediawiki/mediawiki.debug.js',
615 'styles' => 'resources/mediawiki/mediawiki.debug.css',
616 'dependencies' => 'jquery.footHovzer',
617 'position' => 'bottom',
619 'mediawiki.debug.init' => array(
620 'scripts' => 'resources/mediawiki/mediawiki.debug.init.js',
621 'dependencies' => 'mediawiki.debug',
622 // Uses a custom mw.config variable that is set in debughtml,
623 // must be loaded on the bottom
624 'position' => 'bottom',
626 'mediawiki.feedback' => array(
627 'scripts' => 'resources/mediawiki/mediawiki.feedback.js',
628 'styles' => 'resources/mediawiki/mediawiki.feedback.css',
629 'dependencies' => array(
630 'mediawiki.api.edit',
632 'mediawiki.jqueryMsg',
636 'feedback-bugornote',
651 'mediawiki.hidpi' => array(
652 'scripts' => 'resources/mediawiki/mediawiki.hidpi.js',
653 'dependencies' => array(
656 'targets' => array( 'desktop', 'mobile' ),
658 'mediawiki.htmlform' => array(
659 'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
661 'mediawiki.notification' => array(
662 'styles' => 'resources/mediawiki/mediawiki.notification.css',
663 'scripts' => 'resources/mediawiki/mediawiki.notification.js',
664 'dependencies' => array(
665 'mediawiki.page.startup',
668 'mediawiki.notify' => array(
669 'scripts' => 'resources/mediawiki/mediawiki.notify.js',
670 'targets' => array( 'desktop', 'mobile' ),
672 'mediawiki.searchSuggest' => array(
673 'scripts' => 'resources/mediawiki/mediawiki.searchSuggest.js',
674 'styles' => 'resources/mediawiki/mediawiki.searchSuggest.css',
676 'searchsuggest-search',
677 'searchsuggest-containing',
679 'dependencies' => array(
680 'jquery.autoEllipsis',
682 'jquery.placeholder',
683 'jquery.suggestions',
686 'mediawiki.Title' => array(
687 'scripts' => 'resources/mediawiki/mediawiki.Title.js',
688 'dependencies' => 'mediawiki.util',
690 'mediawiki.Uri' => array(
691 'scripts' => 'resources/mediawiki/mediawiki.Uri.js',
693 'mediawiki.user' => array(
694 'scripts' => 'resources/mediawiki/mediawiki.user.js',
695 'dependencies' => array(
702 'mediawiki.util' => array(
703 'scripts' => 'resources/mediawiki/mediawiki.util.js',
704 'dependencies' => array(
707 'jquery.mwExtension',
710 'messages' => array( 'showtoc', 'hidetoc' ),
711 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
712 'targets' => array( 'desktop', 'mobile' ),
715 /* MediaWiki Action */
717 'mediawiki.action.edit' => array(
718 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
719 'dependencies' => array(
720 'jquery.textSelection',
725 'mediawiki.action.edit.preview' => array(
726 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.preview.js',
727 'dependencies' => array(
732 'mediawiki.action.history' => array(
733 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
734 'group' => 'mediawiki.action.history',
736 'mediawiki.action.history.diff' => array(
737 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
738 'group' => 'mediawiki.action.history',
740 'mediawiki.action.view.dblClickEdit' => array(
741 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
742 'dependencies' => array(
744 'mediawiki.page.startup',
747 'mediawiki.action.view.metadata' => array(
748 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js',
754 'mediawiki.action.view.postEdit' => array(
755 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.js',
756 'dependencies' => 'jquery.cookie'
758 'mediawiki.action.view.rightClickEdit' => array(
759 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
761 // Alias for backwards compatibility
762 'mediawiki.action.watch.ajax' => array(
763 'dependencies' => 'mediawiki.page.watch.ajax'
766 /* MediaWiki Language */
768 'mediawiki.language' => array(
770 'resources/mediawiki.language/mediawiki.language.js',
771 'resources/mediawiki.language/mediawiki.language.numbers.js'
773 'languageScripts' => array(
774 'bs' => 'resources/mediawiki.language/languages/bs.js',
775 'dsb' => 'resources/mediawiki.language/languages/dsb.js',
776 'fi' => 'resources/mediawiki.language/languages/fi.js',
777 'ga' => 'resources/mediawiki.language/languages/ga.js',
778 'he' => 'resources/mediawiki.language/languages/he.js',
779 'hsb' => 'resources/mediawiki.language/languages/hsb.js',
780 'hu' => 'resources/mediawiki.language/languages/hu.js',
781 'hy' => 'resources/mediawiki.language/languages/hy.js',
782 'la' => 'resources/mediawiki.language/languages/la.js',
783 'os' => 'resources/mediawiki.language/languages/os.js',
784 'ru' => 'resources/mediawiki.language/languages/ru.js',
785 'sl' => 'resources/mediawiki.language/languages/sl.js',
786 'uk' => 'resources/mediawiki.language/languages/uk.js',
788 'dependencies' => array(
789 'mediawiki.language.data',
792 'targets' => array( 'desktop', 'mobile' ),
795 'mediawiki.cldr' => array(
796 'scripts' => 'resources/mediawiki.language/mediawiki.cldr.js',
797 'dependencies' => array(
798 'mediawiki.libs.pluralruleparser',
800 'targets' => array( 'desktop', 'mobile' ),
803 'mediawiki.libs.pluralruleparser' => array(
804 'scripts' => 'resources/mediawiki.libs/CLDRPluralRuleParser.js',
805 'targets' => array( 'desktop', 'mobile' ),
808 'mediawiki.language.init' => array(
809 'scripts' => 'resources/mediawiki.language/mediawiki.language.init.js',
810 'targets' => array( 'desktop', 'mobile' ),
813 'mediawiki.jqueryMsg' => array(
814 'scripts' => 'resources/mediawiki/mediawiki.jqueryMsg.js',
815 'dependencies' => array(
817 'mediawiki.language',
819 'targets' => array( 'desktop', 'mobile' ),
824 'mediawiki.libs.jpegmeta' => array(
825 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
830 'mediawiki.page.ready' => array(
831 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
832 'dependencies' => array(
833 'jquery.checkboxShiftClick',
834 'jquery.makeCollapsible',
835 'jquery.placeholder',
839 'targets' => array( 'desktop', 'mobile' ),
841 'mediawiki.page.startup' => array(
842 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js',
843 'dependencies' => array(
848 'targets' => array( 'desktop', 'mobile' ),
850 'mediawiki.page.patrol.ajax' => array(
851 'scripts' => 'resources/mediawiki.page/mediawiki.page.patrol.ajax.js',
852 'dependencies' => array(
853 'mediawiki.page.startup',
862 'markedaspatrollednotify',
863 'markedaspatrollederrornotify',
864 'markedaspatrollederror-noautopatrol'
867 'mediawiki.page.watch.ajax' => array(
868 'scripts' => 'resources/mediawiki.page/mediawiki.page.watch.ajax.js',
869 'dependencies' => array(
870 'mediawiki.page.startup',
871 'mediawiki.api.watch',
874 'jquery.mwExtension',
882 'tooltip-ca-unwatch',
887 /* MediaWiki Special pages */
889 'mediawiki.special' => array(
890 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
891 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
893 'mediawiki.special.block' => array(
894 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
895 'dependencies' => array(
899 'mediawiki.special.changeemail' => array(
900 'scripts' => 'resources/mediawiki.special/mediawiki.special.changeemail.js',
901 'styles' => 'resources/mediawiki.special/mediawiki.special.changeemail.css',
902 'dependencies' => array(
906 'email-address-validity-valid',
907 'email-address-validity-invalid',
910 'mediawiki.special.changeslist' => array(
911 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
912 'dependencies' => array( 'jquery.makeCollapsible' ),
914 'mediawiki.special.movePage' => array(
915 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
916 'dependencies' => 'jquery.byteLimit',
918 'mediawiki.special.preferences' => array(
919 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
920 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
922 'mediawiki.special.recentchanges' => array(
923 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
924 'dependencies' => array( 'mediawiki.special' ),
927 'mediawiki.special.search' => array(
928 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
929 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
931 'powersearch-togglelabel',
932 'powersearch-toggleall',
933 'powersearch-togglenone',
936 'mediawiki.special.undelete' => array(
937 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
939 'mediawiki.special.upload' => array(
940 // @TODO: merge in remainder of mediawiki.legacy.upload
941 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',
950 'dependencies' => array( 'mediawiki.libs.jpegmeta', 'mediawiki.util' ),
952 'mediawiki.special.userlogin.signup' => array(
953 'scripts' => 'resources/mediawiki.special/mediawiki.special.userLogin.signup.js',
955 'mediawiki.special.javaScriptTest' => array(
956 'scripts' => 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js',
957 'messages' => array_merge( Skin
::getSkinNameMessages(), array(
959 'javascripttest-pagetext-skins',
961 'dependencies' => array( 'jquery.qunit' ),
963 'targets' => array( 'desktop', 'mobile' ),
966 /* MediaWiki Tests */
968 'mediawiki.tests.qunit.testrunner' => array(
969 'scripts' => 'tests/qunit/data/testrunner.js',
970 'dependencies' => array(
973 'jquery.qunit.completenessTest',
974 'mediawiki.page.startup',
975 'mediawiki.page.ready',
978 'targets' => array( 'desktop', 'mobile' ),
981 /* MediaWiki Legacy */
983 'mediawiki.legacy.ajax' => array(
984 'scripts' => 'common/ajax.js',
985 'remoteBasePath' => $GLOBALS['wgStylePath'],
986 'localBasePath' => $GLOBALS['wgStyleDirectory'],
987 'dependencies' => array(
989 'mediawiki.legacy.wikibits',
991 'position' => 'top', // Temporary hack for legacy support
993 'mediawiki.legacy.commonPrint' => array(
994 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
995 'remoteBasePath' => $GLOBALS['wgStylePath'],
996 'localBasePath' => $GLOBALS['wgStyleDirectory'],
998 'mediawiki.legacy.config' => array(
999 'scripts' => 'common/config.js',
1000 'styles' => array( 'common/config.css', 'common/config-cc.css' ),
1001 'remoteBasePath' => $GLOBALS['wgStylePath'],
1002 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1003 'dependencies' => 'mediawiki.legacy.wikibits',
1005 'mediawiki.legacy.IEFixes' => array(
1006 'scripts' => 'common/IEFixes.js',
1007 'remoteBasePath' => $GLOBALS['wgStylePath'],
1008 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1009 'dependencies' => 'mediawiki.legacy.wikibits',
1011 'mediawiki.legacy.protect' => array(
1012 'scripts' => 'common/protect.js',
1013 'remoteBasePath' => $GLOBALS['wgStylePath'],
1014 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1015 'dependencies' => array(
1016 'mediawiki.legacy.wikibits',
1019 'position' => 'top',
1021 'mediawiki.legacy.shared' => array(
1022 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
1023 'remoteBasePath' => $GLOBALS['wgStylePath'],
1024 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1026 'mediawiki.legacy.oldshared' => array(
1027 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
1028 'remoteBasePath' => $GLOBALS['wgStylePath'],
1029 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1031 'mediawiki.legacy.upload' => array(
1032 'scripts' => 'common/upload.js',
1033 'remoteBasePath' => $GLOBALS['wgStylePath'],
1034 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1035 'dependencies' => array(
1036 'mediawiki.legacy.wikibits',
1040 'mediawiki.legacy.wikibits' => array(
1041 'scripts' => 'common/wikibits.js',
1042 'remoteBasePath' => $GLOBALS['wgStylePath'],
1043 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1044 'dependencies' => array(
1047 'position' => 'top',
1049 'mediawiki.legacy.wikiprintable' => array(
1050 'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
1051 'remoteBasePath' => $GLOBALS['wgStylePath'],
1052 'localBasePath' => $GLOBALS['wgStyleDirectory'],