d2a06b782e01f817cc12b012c80c4a08fc5d0754
3 * Definition of core ResourceLoader modules.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
23 if ( !defined( 'MEDIAWIKI' ) ) {
24 die( 'Not an entry point.' );
30 * Special modules who have their own classes
33 // Scripts managed by the local wiki (stored in the MediaWiki namespace)
34 'site' => array( 'class' => 'ResourceLoaderSiteModule' ),
35 'noscript' => array( 'class' => 'ResourceLoaderNoscriptModule' ),
36 'startup' => array( 'class' => 'ResourceLoaderStartUpModule' ),
37 'filepage' => array( 'class' => 'ResourceLoaderFilePageModule' ),
38 'user.groups' => array( 'class' => 'ResourceLoaderUserGroupsModule' ),
40 // Scripts managed by the current user (stored in their user space)
41 'user' => array( 'class' => 'ResourceLoaderUserModule' ),
43 // Scripts generated based on the current user's preferences
44 'user.cssprefs' => array( 'class' => 'ResourceLoaderUserCSSPrefsModule' ),
46 // Populate mediawiki.user placeholders with information about the current user
47 'user.options' => array( 'class' => 'ResourceLoaderUserOptionsModule' ),
48 'user.tokens' => array( 'class' => 'ResourceLoaderUserTokensModule' ),
50 // Scripts for the dynamic language specific data, like grammar forms.
51 'mediawiki.language.data' => array( 'class' => 'ResourceLoaderLanguageDataModule' ),
55 * Be careful not to add 'scripts' to these modules,
56 * since they are loaded with OutputPage::addModuleStyles so that the skin styles
57 * apply without javascript.
58 * If a skin needs custom js in the interface, register a separate module
59 * and add it to the load queue with OutputPage::addModules.
61 * See Vector for an example.
63 'skins.cologneblue' => array(
65 'cologneblue/screen.css' => array( 'media' => 'screen' ),
66 'cologneblue/print.css' => array( 'media' => 'print' ),
68 'remoteBasePath' => $GLOBALS['wgStylePath'],
69 'localBasePath' => $GLOBALS['wgStyleDirectory'],
71 'skins.modern' => array(
73 'modern/main.css' => array( 'media' => 'screen' ),
74 'modern/print.css' => array( 'media' => 'print' ),
76 'remoteBasePath' => $GLOBALS['wgStylePath'],
77 'localBasePath' => $GLOBALS['wgStyleDirectory'],
79 'skins.monobook' => array(
81 'common/commonElements.css' => array( 'media' => 'screen' ),
82 'common/commonContent.css' => array( 'media' => 'screen' ),
83 'common/commonInterface.css' => array( 'media' => 'screen' ),
84 'monobook/main.css' => array( 'media' => 'screen' ),
86 'remoteBasePath' => $GLOBALS['wgStylePath'],
87 'localBasePath' => $GLOBALS['wgStyleDirectory'],
89 'skins.vector' => array(
90 // Used in the web installer. Test it after modifying this definition!
92 'common/commonElements.css' => array( 'media' => 'screen' ),
93 'common/commonContent.css' => array( 'media' => 'screen' ),
94 'common/commonInterface.css' => array( 'media' => 'screen' ),
97 'remoteBasePath' => $GLOBALS['wgStylePath'],
98 'localBasePath' => $GLOBALS['wgStyleDirectory'],
100 'skins.vector.beta' => array(
101 // Keep in sync with skins.vector
103 'common/commonElements.css' => array( 'media' => 'screen' ),
104 'common/commonContent.css' => array( 'media' => 'screen' ),
105 'common/commonInterface.css' => array( 'media' => 'screen' ),
106 'vector/styles-beta.less',
108 'remoteBasePath' => $GLOBALS['wgStylePath'],
109 'localBasePath' => $GLOBALS['wgStyleDirectory'],
111 'skins.vector.js' => array(
113 'vector/collapsibleTabs.js',
117 'dependencies' => 'jquery.delayedBind',
118 'remoteBasePath' => $GLOBALS['wgStylePath'],
119 'localBasePath' => $GLOBALS['wgStyleDirectory'],
121 'skins.vector.collapsibleNav' => array(
123 'vector/collapsibleNav.js',
126 'vector-collapsiblenav-more',
128 'dependencies' => array(
133 'remoteBasePath' => $GLOBALS['wgStylePath'],
134 'localBasePath' => $GLOBALS['wgStyleDirectory'],
135 'position' => 'bottom',
141 'scripts' => 'resources/jquery/jquery.js',
143 'targets' => array( 'desktop', 'mobile' ),
148 'jquery.appear' => array(
149 'scripts' => 'resources/jquery/jquery.appear.js',
151 'jquery.arrowSteps' => array(
152 'scripts' => 'resources/jquery/jquery.arrowSteps.js',
153 'styles' => 'resources/jquery/jquery.arrowSteps.css',
155 'jquery.async' => array(
156 'scripts' => 'resources/jquery/jquery.async.js',
158 'jquery.autoEllipsis' => array(
159 'scripts' => 'resources/jquery/jquery.autoEllipsis.js',
160 'dependencies' => 'jquery.highlightText',
161 'targets' => array( 'desktop', 'mobile' ),
163 'jquery.badge' => array(
164 'scripts' => 'resources/jquery/jquery.badge.js',
165 'styles' => 'resources/jquery/jquery.badge.css',
166 'dependencies' => 'mediawiki.language',
168 'jquery.byteLength' => array(
169 'scripts' => 'resources/jquery/jquery.byteLength.js',
170 'targets' => array( 'desktop', 'mobile' ),
172 'jquery.byteLimit' => array(
173 'scripts' => 'resources/jquery/jquery.byteLimit.js',
174 'dependencies' => 'jquery.byteLength',
175 'targets' => array( 'desktop', 'mobile' ),
177 'jquery.checkboxShiftClick' => array(
178 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js',
179 'targets' => array( 'desktop', 'mobile' ),
181 'jquery.chosen' => array(
182 'scripts' => 'resources/jquery.chosen/chosen.jquery.js',
183 'styles' => 'resources/jquery.chosen/chosen.css',
185 'jquery.client' => array(
186 'scripts' => 'resources/jquery/jquery.client.js',
187 'targets' => array( 'desktop', 'mobile' ),
189 'jquery.color' => array(
190 'scripts' => 'resources/jquery/jquery.color.js',
191 'dependencies' => 'jquery.colorUtil',
193 'jquery.colorUtil' => array(
194 'scripts' => 'resources/jquery/jquery.colorUtil.js',
196 'jquery.cookie' => array(
197 'scripts' => 'resources/jquery/jquery.cookie.js',
198 'targets' => array( 'desktop', 'mobile' ),
200 'jquery.delayedBind' => array(
201 'scripts' => 'resources/jquery/jquery.delayedBind.js',
203 'jquery.expandableField' => array(
204 'scripts' => 'resources/jquery/jquery.expandableField.js',
205 'dependencies' => 'jquery.delayedBind',
207 'jquery.farbtastic' => array(
208 'scripts' => 'resources/jquery/jquery.farbtastic.js',
209 'styles' => 'resources/jquery/jquery.farbtastic.css',
210 'dependencies' => 'jquery.colorUtil',
212 'jquery.footHovzer' => array(
213 'scripts' => 'resources/jquery/jquery.footHovzer.js',
214 'styles' => 'resources/jquery/jquery.footHovzer.css',
216 'jquery.form' => array(
217 'scripts' => 'resources/jquery/jquery.form.js',
219 'jquery.getAttrs' => array(
220 'scripts' => 'resources/jquery/jquery.getAttrs.js',
221 'targets' => array( 'desktop', 'mobile' ),
223 'jquery.hidpi' => array(
224 'scripts' => 'resources/jquery/jquery.hidpi.js',
225 'targets' => array( 'desktop', 'mobile' ),
227 'jquery.highlightText' => array(
228 'scripts' => 'resources/jquery/jquery.highlightText.js',
229 'dependencies' => 'jquery.mwExtension',
230 'targets' => array( 'desktop', 'mobile' ),
232 'jquery.hoverIntent' => array(
233 'scripts' => 'resources/jquery/jquery.hoverIntent.js',
235 'jquery.json' => array(
236 'scripts' => 'resources/jquery/jquery.json.js',
237 'targets' => array( 'mobile', 'desktop' ),
239 'jquery.localize' => array(
240 'scripts' => 'resources/jquery/jquery.localize.js',
242 'jquery.makeCollapsible' => array(
243 'scripts' => 'resources/jquery/jquery.makeCollapsible.js',
244 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
245 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
246 'targets' => array( 'desktop', 'mobile' ),
248 'jquery.mockjax' => array(
249 'scripts' => 'resources/jquery/jquery.mockjax.js',
251 'jquery.mw-jump' => array(
252 'scripts' => 'resources/jquery/jquery.mw-jump.js',
253 'targets' => array( 'desktop', 'mobile' ),
255 'jquery.mwExtension' => array(
256 'scripts' => 'resources/jquery/jquery.mwExtension.js',
257 'targets' => array( 'desktop', 'mobile' ),
259 'jquery.placeholder' => array(
260 'scripts' => 'resources/jquery/jquery.placeholder.js',
261 'targets' => array( 'desktop', 'mobile' ),
263 'jquery.qunit' => array(
264 'scripts' => 'resources/jquery/jquery.qunit.js',
265 'styles' => 'resources/jquery/jquery.qunit.css',
267 'targets' => array( 'desktop', 'mobile' ),
269 'jquery.qunit.completenessTest' => array(
270 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
271 'dependencies' => 'jquery.qunit',
272 'targets' => array( 'desktop', 'mobile' ),
274 'jquery.spinner' => array(
275 'scripts' => 'resources/jquery/jquery.spinner.js',
276 'styles' => 'resources/jquery/jquery.spinner.css',
278 'jquery.jStorage' => array(
279 'scripts' => 'resources/jquery/jquery.jStorage.js',
280 'dependencies' => 'jquery.json',
282 'jquery.suggestions' => array(
283 'scripts' => 'resources/jquery/jquery.suggestions.js',
284 'styles' => 'resources/jquery/jquery.suggestions.css',
285 'dependencies' => 'jquery.autoEllipsis',
287 'jquery.tabIndex' => array(
288 'scripts' => 'resources/jquery/jquery.tabIndex.js',
290 'jquery.tablesorter' => array(
291 'scripts' => 'resources/jquery/jquery.tablesorter.js',
292 'styles' => 'resources/jquery/jquery.tablesorter.css',
293 'messages' => array( 'sort-descending', 'sort-ascending' ),
294 'dependencies' => array(
295 'jquery.mwExtension',
296 'mediawiki.language.months',
299 'jquery.textSelection' => array(
300 'scripts' => 'resources/jquery/jquery.textSelection.js',
301 'dependencies' => 'jquery.client',
303 'jquery.validate' => array(
304 'scripts' => 'resources/jquery/jquery.validate.js',
306 'jquery.xmldom' => array(
307 'scripts' => 'resources/jquery/jquery.xmldom.js',
312 'jquery.tipsy' => array(
313 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js',
314 'styles' => 'resources/jquery.tipsy/jquery.tipsy.css',
320 'jquery.ui.core' => array(
321 'scripts' => 'resources/jquery.ui/jquery.ui.core.js',
322 'skinStyles' => array(
324 'resources/jquery.ui/themes/default/jquery.ui.core.css',
325 'resources/jquery.ui/themes/default/jquery.ui.theme.css',
328 'resources/jquery.ui/themes/vector/jquery.ui.core.css',
329 'resources/jquery.ui/themes/vector/jquery.ui.theme.css',
332 'dependencies' => 'jquery',
333 'group' => 'jquery.ui',
335 'jquery.ui.widget' => array(
336 'scripts' => 'resources/jquery.ui/jquery.ui.widget.js',
337 'group' => 'jquery.ui',
339 'jquery.ui.mouse' => array(
340 'scripts' => 'resources/jquery.ui/jquery.ui.mouse.js',
341 'dependencies' => 'jquery.ui.widget',
342 'group' => 'jquery.ui',
344 'jquery.ui.position' => array(
345 'scripts' => 'resources/jquery.ui/jquery.ui.position.js',
346 'group' => 'jquery.ui',
349 'jquery.ui.draggable' => array(
350 'scripts' => 'resources/jquery.ui/jquery.ui.draggable.js',
351 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget' ),
352 'group' => 'jquery.ui',
354 'jquery.ui.droppable' => array(
355 'scripts' => 'resources/jquery.ui/jquery.ui.droppable.js',
356 'dependencies' => array(
357 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable',
359 'group' => 'jquery.ui',
361 'jquery.ui.resizable' => array(
362 'scripts' => 'resources/jquery.ui/jquery.ui.resizable.js',
363 'skinStyles' => array(
364 'default' => 'resources/jquery.ui/themes/default/jquery.ui.resizable.css',
365 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.resizable.css',
367 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
368 'group' => 'jquery.ui',
370 'jquery.ui.selectable' => array(
371 'scripts' => 'resources/jquery.ui/jquery.ui.selectable.js',
372 'skinStyles' => array(
373 'default' => 'resources/jquery.ui/themes/default/jquery.ui.selectable.css',
374 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.selectable.css',
376 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
377 'group' => 'jquery.ui',
379 'jquery.ui.sortable' => array(
380 'scripts' => 'resources/jquery.ui/jquery.ui.sortable.js',
381 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
382 'group' => 'jquery.ui',
385 'jquery.ui.accordion' => array(
386 'scripts' => 'resources/jquery.ui/jquery.ui.accordion.js',
387 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
388 'skinStyles' => array(
389 'default' => 'resources/jquery.ui/themes/default/jquery.ui.accordion.css',
390 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.accordion.css',
392 'group' => 'jquery.ui',
394 'jquery.ui.autocomplete' => array(
395 'scripts' => 'resources/jquery.ui/jquery.ui.autocomplete.js',
396 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ),
397 'skinStyles' => array(
398 'default' => 'resources/jquery.ui/themes/default/jquery.ui.autocomplete.css',
399 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.autocomplete.css',
401 'group' => 'jquery.ui',
403 'jquery.ui.button' => array(
404 'scripts' => 'resources/jquery.ui/jquery.ui.button.js',
405 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
406 'skinStyles' => array(
407 'default' => 'resources/jquery.ui/themes/default/jquery.ui.button.css',
408 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.button.css',
410 'group' => 'jquery.ui',
412 'jquery.ui.datepicker' => array(
413 'scripts' => 'resources/jquery.ui/jquery.ui.datepicker.js',
414 'dependencies' => 'jquery.ui.core',
415 'skinStyles' => array(
416 'default' => 'resources/jquery.ui/themes/default/jquery.ui.datepicker.css',
417 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.datepicker.css',
419 'languageScripts' => array(
420 'af' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-af.js',
421 'ar' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
422 'az' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-az.js',
423 'bg' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
424 'bs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
425 'ca' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
426 'cs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
427 'da' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-da.js',
428 'de' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-de.js',
429 'el' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-el.js',
430 'en-gb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
431 'eo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
432 'es' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-es.js',
433 'et' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-et.js',
434 'eu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
435 'fa' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
436 'fi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
437 'fo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
438 'fr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
439 'gl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
440 'he' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-he.js',
441 'hi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
442 'hr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
443 'hu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
444 'hy' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
445 'id' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-id.js',
446 'is' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-is.js',
447 'it' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-it.js',
448 'ja' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
449 'ka' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
450 'kk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
451 'km' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-km.js',
452 'ko' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
453 'lb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
454 'lt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
455 'lv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
456 'mk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
457 'ml' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
458 'ms' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
459 'nl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
460 'no' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-no.js',
461 'pl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
462 'pt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
463 'pt-br' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
464 'rm' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
465 'ro' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
466 'ru' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
467 'sk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
468 'sl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
469 'sq' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
470 'sr-sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
471 'sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
472 'sv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
473 'ta' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
474 'th' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-th.js',
475 'tr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
476 'uk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
477 'vi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
478 'zh-cn' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
479 'zh-hk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
480 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
482 'group' => 'jquery.ui',
484 'jquery.ui.dialog' => array(
485 'scripts' => 'resources/jquery.ui/jquery.ui.dialog.js',
486 'dependencies' => array(
490 'jquery.ui.draggable',
492 'jquery.ui.position',
493 'jquery.ui.resizable',
495 'skinStyles' => array(
496 'default' => 'resources/jquery.ui/themes/default/jquery.ui.dialog.css',
497 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.dialog.css',
499 'group' => 'jquery.ui',
501 'jquery.ui.progressbar' => array(
502 'scripts' => 'resources/jquery.ui/jquery.ui.progressbar.js',
503 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
504 'skinStyles' => array(
505 'default' => 'resources/jquery.ui/themes/default/jquery.ui.progressbar.css',
506 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.progressbar.css',
508 'group' => 'jquery.ui',
510 'jquery.ui.slider' => array(
511 'scripts' => 'resources/jquery.ui/jquery.ui.slider.js',
512 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
513 'skinStyles' => array(
514 'default' => 'resources/jquery.ui/themes/default/jquery.ui.slider.css',
515 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.slider.css',
517 'group' => 'jquery.ui',
519 'jquery.ui.tabs' => array(
520 'scripts' => 'resources/jquery.ui/jquery.ui.tabs.js',
521 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
522 'skinStyles' => array(
523 'default' => 'resources/jquery.ui/themes/default/jquery.ui.tabs.css',
524 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.tabs.css',
526 'group' => 'jquery.ui',
529 'jquery.effects.core' => array(
530 'scripts' => 'resources/jquery.effects/jquery.effects.core.js',
531 'dependencies' => 'jquery',
532 'group' => 'jquery.ui',
534 'jquery.effects.blind' => array(
535 'scripts' => 'resources/jquery.effects/jquery.effects.blind.js',
536 'dependencies' => 'jquery.effects.core',
537 'group' => 'jquery.ui',
539 'jquery.effects.bounce' => array(
540 'scripts' => 'resources/jquery.effects/jquery.effects.bounce.js',
541 'dependencies' => 'jquery.effects.core',
542 'group' => 'jquery.ui',
544 'jquery.effects.clip' => array(
545 'scripts' => 'resources/jquery.effects/jquery.effects.clip.js',
546 'dependencies' => 'jquery.effects.core',
547 'group' => 'jquery.ui',
549 'jquery.effects.drop' => array(
550 'scripts' => 'resources/jquery.effects/jquery.effects.drop.js',
551 'dependencies' => 'jquery.effects.core',
552 'group' => 'jquery.ui',
554 'jquery.effects.explode' => array(
555 'scripts' => 'resources/jquery.effects/jquery.effects.explode.js',
556 'dependencies' => 'jquery.effects.core',
557 'group' => 'jquery.ui',
559 'jquery.effects.fade' => array(
560 'scripts' => 'resources/jquery.effects/jquery.effects.fade.js',
561 'dependencies' => 'jquery.effects.core',
562 'group' => 'jquery.ui',
564 'jquery.effects.fold' => array(
565 'scripts' => 'resources/jquery.effects/jquery.effects.fold.js',
566 'dependencies' => 'jquery.effects.core',
567 'group' => 'jquery.ui',
569 'jquery.effects.highlight' => array(
570 'scripts' => 'resources/jquery.effects/jquery.effects.highlight.js',
571 'dependencies' => 'jquery.effects.core',
572 'group' => 'jquery.ui',
574 'jquery.effects.pulsate' => array(
575 'scripts' => 'resources/jquery.effects/jquery.effects.pulsate.js',
576 'dependencies' => 'jquery.effects.core',
577 'group' => 'jquery.ui',
579 'jquery.effects.scale' => array(
580 'scripts' => 'resources/jquery.effects/jquery.effects.scale.js',
581 'dependencies' => 'jquery.effects.core',
582 'group' => 'jquery.ui',
584 'jquery.effects.shake' => array(
585 'scripts' => 'resources/jquery.effects/jquery.effects.shake.js',
586 'dependencies' => 'jquery.effects.core',
587 'group' => 'jquery.ui',
589 'jquery.effects.slide' => array(
590 'scripts' => 'resources/jquery.effects/jquery.effects.slide.js',
591 'dependencies' => 'jquery.effects.core',
592 'group' => 'jquery.ui',
594 'jquery.effects.transfer' => array(
595 'scripts' => 'resources/jquery.effects/jquery.effects.transfer.js',
596 'dependencies' => 'jquery.effects.core',
597 'group' => 'jquery.ui',
602 'mediawiki' => array(
603 'scripts' => 'resources/mediawiki/mediawiki.js',
604 'debugScripts' => 'resources/mediawiki/mediawiki.log.js',
606 'targets' => array( 'desktop', 'mobile' ),
608 'mediawiki.api' => array(
609 'scripts' => 'resources/mediawiki.api/mediawiki.api.js',
610 'dependencies' => 'mediawiki.util',
611 'targets' => array( 'desktop', 'mobile' ),
613 'mediawiki.api.category' => array(
614 'scripts' => 'resources/mediawiki.api/mediawiki.api.category.js',
615 'dependencies' => array(
620 'mediawiki.api.edit' => array(
621 'scripts' => 'resources/mediawiki.api/mediawiki.api.edit.js',
622 'dependencies' => array(
627 'mediawiki.api.login' => array(
628 'scripts' => 'resources/mediawiki.api/mediawiki.api.login.js',
629 'dependencies' => array(
633 'mediawiki.api.parse' => array(
634 'scripts' => 'resources/mediawiki.api/mediawiki.api.parse.js',
635 'dependencies' => 'mediawiki.api',
637 'mediawiki.api.watch' => array(
638 'scripts' => 'resources/mediawiki.api/mediawiki.api.watch.js',
639 'dependencies' => array(
644 'mediawiki.debug' => array(
645 'scripts' => 'resources/mediawiki/mediawiki.debug.js',
646 'styles' => 'resources/mediawiki/mediawiki.debug.css',
647 'dependencies' => 'jquery.footHovzer',
648 'position' => 'bottom',
650 'mediawiki.debug.init' => array(
651 'scripts' => 'resources/mediawiki/mediawiki.debug.init.js',
652 'dependencies' => 'mediawiki.debug',
653 // Uses a custom mw.config variable that is set in debughtml,
654 // must be loaded on the bottom
655 'position' => 'bottom',
657 'mediawiki.feedback' => array(
658 'scripts' => 'resources/mediawiki/mediawiki.feedback.js',
659 'styles' => 'resources/mediawiki/mediawiki.feedback.css',
660 'dependencies' => array(
661 'mediawiki.api.edit',
663 'mediawiki.jqueryMsg',
667 'feedback-bugornote',
682 'mediawiki.hidpi' => array(
683 'scripts' => 'resources/mediawiki/mediawiki.hidpi.js',
684 'dependencies' => array(
687 'targets' => array( 'desktop', 'mobile' ),
689 'mediawiki.hlist' => array(
690 'styles' => 'resources/mediawiki/mediawiki.hlist.css',
691 'scripts' => 'resources/mediawiki/mediawiki.hlist.js',
692 'dependencies' => array(
696 'mediawiki.htmlform' => array(
697 'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
698 'messages' => array( 'htmlform-chosen-placeholder' ),
700 'mediawiki.icon' => array(
701 'styles' => 'resources/mediawiki/mediawiki.icon.css',
703 'mediawiki.inspect' => array(
704 'scripts' => 'resources/mediawiki/mediawiki.inspect.js',
705 'dependencies' => array(
709 'targets' => array( 'desktop', 'mobile' ),
711 'mediawiki.notification' => array(
712 'styles' => 'resources/mediawiki/mediawiki.notification.css',
713 'scripts' => 'resources/mediawiki/mediawiki.notification.js',
714 'dependencies' => array(
715 'mediawiki.page.startup',
717 'targets' => array( 'desktop', 'mobile' ),
719 'mediawiki.notify' => array(
720 'scripts' => 'resources/mediawiki/mediawiki.notify.js',
721 'targets' => array( 'desktop', 'mobile' ),
723 'mediawiki.searchSuggest' => array(
724 'scripts' => 'resources/mediawiki/mediawiki.searchSuggest.js',
725 'styles' => 'resources/mediawiki/mediawiki.searchSuggest.css',
727 'searchsuggest-search',
728 'searchsuggest-containing',
730 'dependencies' => array(
731 'jquery.autoEllipsis',
733 'jquery.placeholder',
734 'jquery.suggestions',
738 'mediawiki.Title' => array(
739 'scripts' => 'resources/mediawiki/mediawiki.Title.js',
740 'dependencies' => array(
744 'targets' => array( 'desktop', 'mobile' ),
746 'mediawiki.Uri' => array(
747 'scripts' => 'resources/mediawiki/mediawiki.Uri.js',
748 'targets' => array( 'desktop', 'mobile' ),
750 'mediawiki.user' => array(
751 'scripts' => 'resources/mediawiki/mediawiki.user.js',
752 'dependencies' => array(
758 'targets' => array( 'desktop', 'mobile' ),
760 'mediawiki.util' => array(
761 'scripts' => 'resources/mediawiki/mediawiki.util.js',
762 'dependencies' => array(
765 'jquery.mwExtension',
768 'messages' => array( 'showtoc', 'hidetoc' ),
769 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
770 'targets' => array( 'desktop', 'mobile' ),
773 /* MediaWiki Action */
775 'mediawiki.action.edit' => array(
776 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
777 'dependencies' => array(
778 'mediawiki.action.edit.styles',
779 'jquery.textSelection',
784 'mediawiki.action.edit.styles' => array(
785 'styles' => 'resources/mediawiki.action/mediawiki.action.edit.styles.css',
788 'mediawiki.action.edit.collapsibleFooter' => array(
789 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
790 'styles' => 'resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
791 'dependencies' => array(
792 'jquery.makeCollapsible',
796 'mediawiki.action.edit.preview' => array(
797 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.preview.js',
798 'dependencies' => array(
801 'mediawiki.action.history.diff',
804 'mediawiki.action.history' => array(
805 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
806 'group' => 'mediawiki.action.history',
808 'mediawiki.action.history.diff' => array(
809 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
810 'group' => 'mediawiki.action.history',
811 'targets' => array( 'desktop', 'mobile' ),
813 'mediawiki.action.view.dblClickEdit' => array(
814 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
815 'dependencies' => array(
817 'mediawiki.page.startup',
820 'mediawiki.action.view.metadata' => array(
821 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js',
827 'mediawiki.action.view.postEdit' => array(
828 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.js',
829 'styles' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.css',
830 'dependencies' => array(
832 'mediawiki.jqueryMsg'
835 'postedit-confirmation',
838 'mediawiki.action.view.rightClickEdit' => array(
839 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
841 'mediawiki.action.edit.editWarning' => array(
842 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.editWarning.js',
844 'editwarning-warning',
847 // Alias for backwards compatibility
848 'mediawiki.action.watch.ajax' => array(
849 'dependencies' => 'mediawiki.page.watch.ajax'
852 /* MediaWiki Language */
854 'mediawiki.language' => array(
856 'resources/mediawiki.language/mediawiki.language.js',
857 'resources/mediawiki.language/mediawiki.language.numbers.js'
859 'languageScripts' => array(
860 'bs' => 'resources/mediawiki.language/languages/bs.js',
861 'dsb' => 'resources/mediawiki.language/languages/dsb.js',
862 'fi' => 'resources/mediawiki.language/languages/fi.js',
863 'ga' => 'resources/mediawiki.language/languages/ga.js',
864 'he' => 'resources/mediawiki.language/languages/he.js',
865 'hsb' => 'resources/mediawiki.language/languages/hsb.js',
866 'hu' => 'resources/mediawiki.language/languages/hu.js',
867 'hy' => 'resources/mediawiki.language/languages/hy.js',
868 'la' => 'resources/mediawiki.language/languages/la.js',
869 'os' => 'resources/mediawiki.language/languages/os.js',
870 'ru' => 'resources/mediawiki.language/languages/ru.js',
871 'sl' => 'resources/mediawiki.language/languages/sl.js',
872 'uk' => 'resources/mediawiki.language/languages/uk.js',
874 'dependencies' => array(
875 'mediawiki.language.data',
878 'targets' => array( 'desktop', 'mobile' ),
881 'mediawiki.cldr' => array(
882 'scripts' => 'resources/mediawiki.language/mediawiki.cldr.js',
883 'dependencies' => array(
884 'mediawiki.libs.pluralruleparser',
886 'targets' => array( 'desktop', 'mobile' ),
889 'mediawiki.libs.pluralruleparser' => array(
890 'scripts' => 'resources/mediawiki.libs/CLDRPluralRuleParser.js',
891 'targets' => array( 'desktop', 'mobile' ),
894 'mediawiki.language.init' => array(
895 'scripts' => 'resources/mediawiki.language/mediawiki.language.init.js',
896 'targets' => array( 'desktop', 'mobile' ),
899 'mediawiki.jqueryMsg' => array(
900 'scripts' => 'resources/mediawiki/mediawiki.jqueryMsg.js',
901 'dependencies' => array(
903 'mediawiki.language',
905 'targets' => array( 'desktop', 'mobile' ),
908 'mediawiki.language.months' => array(
909 'scripts' => 'resources/mediawiki.language/mediawiki.language.months.js',
910 'dependencies' => 'mediawiki.language',
911 'messages' => array_merge(
912 Language
::$mMonthMsgs,
913 Language
::$mMonthGenMsgs,
914 Language
::$mMonthAbbrevMsgs
920 'mediawiki.libs.jpegmeta' => array(
921 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
926 'mediawiki.page.gallery' => array(
927 'scripts' => 'resources/mediawiki.page/mediawiki.page.gallery.js',
929 'mediawiki.page.ready' => array(
930 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
931 'dependencies' => array(
932 'jquery.checkboxShiftClick',
933 'jquery.makeCollapsible',
934 'jquery.placeholder',
938 'targets' => array( 'desktop', 'mobile' ),
940 'mediawiki.page.startup' => array(
941 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js',
942 'dependencies' => array(
947 'targets' => array( 'desktop', 'mobile' ),
949 'mediawiki.page.patrol.ajax' => array(
950 'scripts' => 'resources/mediawiki.page/mediawiki.page.patrol.ajax.js',
951 'dependencies' => array(
952 'mediawiki.page.startup',
961 'markedaspatrollednotify',
962 'markedaspatrollederrornotify',
963 'markedaspatrollederror-noautopatrol'
966 'mediawiki.page.watch.ajax' => array(
967 'scripts' => 'resources/mediawiki.page/mediawiki.page.watch.ajax.js',
968 'dependencies' => array(
969 'mediawiki.page.startup',
970 'mediawiki.api.watch',
973 'jquery.mwExtension',
981 'tooltip-ca-unwatch',
985 'mediawiki.page.image.pagination' => array(
986 'scripts' => 'resources/mediawiki.page/mediawiki.page.image.pagination.js',
987 'dependencies' => array( 'jquery.spinner' )
990 /* MediaWiki Special pages */
992 'mediawiki.special' => array(
993 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
994 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
996 'mediawiki.special.block' => array(
997 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
998 'dependencies' => array(
1002 'mediawiki.special.changeemail' => array(
1003 'scripts' => 'resources/mediawiki.special/mediawiki.special.changeemail.js',
1004 'styles' => 'resources/mediawiki.special/mediawiki.special.changeemail.css',
1005 'dependencies' => array(
1008 'messages' => array(
1009 'email-address-validity-valid',
1010 'email-address-validity-invalid',
1013 'mediawiki.special.changeslist' => array(
1014 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
1016 'mediawiki.special.changeslist.enhanced' => array(
1017 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.enhanced.css',
1019 'mediawiki.special.movePage' => array(
1020 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
1021 'dependencies' => 'jquery.byteLimit',
1023 'mediawiki.special.pagesWithProp' => array(
1024 'styles' => 'resources/mediawiki.special/mediawiki.special.pagesWithProp.css',
1026 'mediawiki.special.preferences' => array(
1027 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
1028 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
1029 'position' => 'top',
1030 'skinStyles' => array(
1031 'vector' => 'skins/vector/special.preferences.less',
1033 'messages' => array(
1034 'prefs-tabs-navigation-hint',
1037 'mediawiki.special.recentchanges' => array(
1038 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
1039 'dependencies' => array( 'mediawiki.special' ),
1040 'position' => 'top',
1042 'mediawiki.special.search' => array(
1043 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
1044 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
1045 'messages' => array(
1046 'powersearch-togglelabel',
1047 'powersearch-toggleall',
1048 'powersearch-togglenone',
1051 'mediawiki.special.undelete' => array(
1052 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
1054 'mediawiki.special.upload' => array(
1055 // @todo merge in remainder of mediawiki.legacy.upload
1056 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',
1057 'messages' => array(
1065 'dependencies' => array(
1066 'mediawiki.libs.jpegmeta',
1070 'mediawiki.special.userlogin' => array(
1072 'resources/mediawiki.special/mediawiki.special.vforms.css',
1073 'resources/mediawiki.special/mediawiki.special.userLogin.css',
1075 'position' => 'top',
1077 'mediawiki.special.createaccount' => array(
1079 'resources/mediawiki.special/mediawiki.special.vforms.css',
1080 'resources/mediawiki.special/mediawiki.special.createAccount.css',
1083 'mediawiki.special.createaccount.js' => array(
1084 'scripts' => 'resources/mediawiki.special/mediawiki.special.createAccount.js',
1085 'messages' => array(
1086 'createacct-captcha',
1087 'createacct-emailrequired',
1088 'createacct-imgcaptcha-ph'
1090 'dependencies' => 'mediawiki.jqueryMsg',
1091 'position' => 'top',
1093 'mediawiki.special.javaScriptTest' => array(
1094 'scripts' => 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js',
1095 'messages' => array_merge( Skin
::getSkinNameMessages(), array(
1097 'javascripttest-pagetext-skins',
1099 'dependencies' => array( 'jquery.qunit' ),
1100 'position' => 'top',
1101 'targets' => array( 'desktop', 'mobile' ),
1104 /* MediaWiki Tests */
1106 'mediawiki.tests.qunit.testrunner' => array(
1107 'scripts' => 'tests/qunit/data/testrunner.js',
1108 'dependencies' => array(
1111 'jquery.qunit.completenessTest',
1112 'mediawiki.page.startup',
1113 'mediawiki.page.ready',
1115 'position' => 'top',
1116 'targets' => array( 'desktop', 'mobile' ),
1119 /* MediaWiki Legacy */
1121 'mediawiki.legacy.ajax' => array(
1122 'scripts' => 'common/ajax.js',
1123 'remoteBasePath' => $GLOBALS['wgStylePath'],
1124 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1125 'dependencies' => array(
1127 'mediawiki.legacy.wikibits',
1129 'position' => 'top', // Temporary hack for legacy support
1131 'mediawiki.legacy.commonPrint' => array(
1132 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
1133 'remoteBasePath' => $GLOBALS['wgStylePath'],
1134 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1136 'mediawiki.legacy.config' => array(
1137 // Used in the web installer. Test it after modifying this definition!
1138 'scripts' => 'common/config.js',
1139 'styles' => array( 'common/config.css' ),
1140 'remoteBasePath' => $GLOBALS['wgStylePath'],
1141 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1142 'dependencies' => 'mediawiki.legacy.wikibits',
1144 'mediawiki.legacy.protect' => array(
1145 'scripts' => 'common/protect.js',
1146 'remoteBasePath' => $GLOBALS['wgStylePath'],
1147 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1148 'dependencies' => array(
1151 'position' => 'top',
1153 'mediawiki.legacy.shared' => array(
1154 // Used in the web installer. Test it after modifying this definition!
1155 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
1156 'remoteBasePath' => $GLOBALS['wgStylePath'],
1157 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1159 'mediawiki.legacy.oldshared' => array(
1160 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
1161 'remoteBasePath' => $GLOBALS['wgStylePath'],
1162 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1164 'mediawiki.legacy.upload' => array(
1165 'scripts' => 'common/upload.js',
1166 'remoteBasePath' => $GLOBALS['wgStylePath'],
1167 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1168 'dependencies' => array(
1175 'mediawiki.legacy.wikibits' => array(
1176 'scripts' => 'common/wikibits.js',
1177 'remoteBasePath' => $GLOBALS['wgStylePath'],
1178 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1179 'dependencies' => array(
1182 'position' => 'top',
1184 'mediawiki.ui' => array(
1185 'skinStyles' => array(
1186 'default' => 'resources/mediawiki.ui/default.less',
1187 'vector' => 'resources/mediawiki.ui/vector.less',
1189 'position' => 'top',
1193 // WARNING: oojs is NOT COMPATIBLE with older browsers and
1194 // WILL BREAK if loaded in browsers that don't support ES5
1197 'resources/oojs/oojs.js',
1199 'targets' => array( 'desktop', 'mobile' ),