Merge "Add ss_active_users in SiteStats::isSane"
[mediawiki.git] / resources / Resources.php
blobddcefda5c7ca60fcbf53d763eb007b924b811da4
1 <?php
2 /**
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
20 * @file
23 if ( !defined( 'MEDIAWIKI' ) ) {
24 die( 'Not an entry point.' );
27 return array(
29 /**
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' ),
53 /**
54 * Skins
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(
64 'styles' => 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(
72 'styles' => 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(
80 'styles' => array(
81 'common/commonElements.css' => array( 'media' => 'screen' ),
82 'common/commonContent.css' => array( 'media' => 'screen' ),
83 'common/commonInterface.css' => array( 'media' => 'screen' ),
84 'monobook/main.css' => array( 'media' => 'screen' ),
86 'remoteBasePath' => $GLOBALS['wgStylePath'],
87 'localBasePath' => $GLOBALS['wgStyleDirectory'],
89 'skins.vector' => array(
90 // Keep in sync with WebInstallerOutput::getCSS()
91 'styles' => array(
92 'common/commonElements.css' => array( 'media' => 'screen' ),
93 'common/commonContent.css' => array( 'media' => 'screen' ),
94 'common/commonInterface.css' => array( 'media' => 'screen' ),
95 'vector/screen.css' => array( 'media' => 'screen' ),
96 'vector/screen-hd.css' => array( 'media' => 'screen and (min-width: 982px)' ),
98 'remoteBasePath' => $GLOBALS['wgStylePath'],
99 'localBasePath' => $GLOBALS['wgStyleDirectory'],
101 'skins.vector.js' => array(
102 'scripts' => 'vector/vector.js',
103 'remoteBasePath' => $GLOBALS['wgStylePath'],
104 'localBasePath' => $GLOBALS['wgStyleDirectory'],
107 /* jQuery */
109 'jquery' => array(
110 'scripts' => 'resources/jquery/jquery.js',
111 'debugRaw' => false,
112 'targets' => array( 'desktop', 'mobile' ),
115 /* jQuery Plugins */
117 'jquery.appear' => array(
118 'scripts' => 'resources/jquery/jquery.appear.js',
120 'jquery.arrowSteps' => array(
121 'scripts' => 'resources/jquery/jquery.arrowSteps.js',
122 'styles' => 'resources/jquery/jquery.arrowSteps.css',
124 'jquery.async' => array(
125 'scripts' => 'resources/jquery/jquery.async.js',
127 'jquery.autoEllipsis' => array(
128 'scripts' => 'resources/jquery/jquery.autoEllipsis.js',
129 'dependencies' => 'jquery.highlightText',
131 'jquery.badge' => array(
132 'scripts' => 'resources/jquery/jquery.badge.js',
133 'styles' => 'resources/jquery/jquery.badge.css',
134 'dependencies' => 'mediawiki.language',
136 'jquery.byteLength' => array(
137 'scripts' => 'resources/jquery/jquery.byteLength.js',
139 'jquery.byteLimit' => array(
140 'scripts' => 'resources/jquery/jquery.byteLimit.js',
141 'dependencies' => 'jquery.byteLength',
143 'jquery.checkboxShiftClick' => array(
144 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js',
145 'targets' => array( 'desktop', 'mobile' ),
147 'jquery.chosen' => array(
148 'scripts' => 'resources/jquery.chosen/chosen.jquery.js',
149 'styles' => 'resources/jquery.chosen/chosen.css',
151 'jquery.client' => array(
152 'scripts' => 'resources/jquery/jquery.client.js',
153 'targets' => array( 'desktop', 'mobile' ),
155 'jquery.color' => array(
156 'scripts' => 'resources/jquery/jquery.color.js',
157 'dependencies' => 'jquery.colorUtil',
159 'jquery.colorUtil' => array(
160 'scripts' => 'resources/jquery/jquery.colorUtil.js',
162 'jquery.cookie' => array(
163 'scripts' => 'resources/jquery/jquery.cookie.js',
164 'targets' => array( 'desktop', 'mobile' ),
166 'jquery.delayedBind' => array(
167 'scripts' => 'resources/jquery/jquery.delayedBind.js',
169 'jquery.expandableField' => array(
170 'scripts' => 'resources/jquery/jquery.expandableField.js',
171 'dependencies' => 'jquery.delayedBind',
173 'jquery.farbtastic' => array(
174 'scripts' => 'resources/jquery/jquery.farbtastic.js',
175 'styles' => 'resources/jquery/jquery.farbtastic.css',
176 'dependencies' => 'jquery.colorUtil',
178 'jquery.footHovzer' => array(
179 'scripts' => 'resources/jquery/jquery.footHovzer.js',
180 'styles' => 'resources/jquery/jquery.footHovzer.css',
182 'jquery.form' => array(
183 'scripts' => 'resources/jquery/jquery.form.js',
185 'jquery.getAttrs' => array(
186 'scripts' => 'resources/jquery/jquery.getAttrs.js',
187 'targets' => array( 'desktop', 'mobile' ),
189 'jquery.hidpi' => array(
190 'scripts' => 'resources/jquery/jquery.hidpi.js',
191 'targets' => array( 'desktop', 'mobile' ),
193 'jquery.highlightText' => array(
194 'scripts' => 'resources/jquery/jquery.highlightText.js',
195 'dependencies' => 'jquery.mwExtension',
197 'jquery.hoverIntent' => array(
198 'scripts' => 'resources/jquery/jquery.hoverIntent.js',
200 'jquery.json' => array(
201 'scripts' => 'resources/jquery/jquery.json.js',
202 'targets' => array( 'mobile', 'desktop' ),
204 'jquery.localize' => array(
205 'scripts' => 'resources/jquery/jquery.localize.js',
207 'jquery.makeCollapsible' => array(
208 'scripts' => 'resources/jquery/jquery.makeCollapsible.js',
209 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
210 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
211 'targets' => array( 'desktop', 'mobile' ),
213 'jquery.mockjax' => array(
214 'scripts' => 'resources/jquery/jquery.mockjax.js',
216 'jquery.mw-jump' => array(
217 'scripts' => 'resources/jquery/jquery.mw-jump.js',
218 'targets' => array( 'desktop', 'mobile' ),
220 'jquery.mwExtension' => array(
221 'scripts' => 'resources/jquery/jquery.mwExtension.js',
222 'targets' => array( 'desktop', 'mobile' ),
224 'jquery.placeholder' => array(
225 'scripts' => 'resources/jquery/jquery.placeholder.js',
226 'targets' => array( 'desktop', 'mobile' ),
228 'jquery.qunit' => array(
229 'scripts' => 'resources/jquery/jquery.qunit.js',
230 'styles' => 'resources/jquery/jquery.qunit.css',
231 'position' => 'top',
232 'targets' => array( 'desktop', 'mobile' ),
234 'jquery.qunit.completenessTest' => array(
235 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
236 'dependencies' => 'jquery.qunit',
237 'targets' => array( 'desktop', 'mobile' ),
239 'jquery.spinner' => array(
240 'scripts' => 'resources/jquery/jquery.spinner.js',
241 'styles' => 'resources/jquery/jquery.spinner.css',
243 'jquery.jStorage' => array(
244 'scripts' => 'resources/jquery/jquery.jStorage.js',
245 'dependencies' => 'jquery.json',
247 'jquery.suggestions' => array(
248 'scripts' => 'resources/jquery/jquery.suggestions.js',
249 'styles' => 'resources/jquery/jquery.suggestions.css',
250 'dependencies' => 'jquery.autoEllipsis',
252 'jquery.tabIndex' => array(
253 'scripts' => 'resources/jquery/jquery.tabIndex.js',
255 'jquery.tablesorter' => array(
256 'scripts' => 'resources/jquery/jquery.tablesorter.js',
257 'styles' => 'resources/jquery/jquery.tablesorter.css',
258 'messages' => array( 'sort-descending', 'sort-ascending' ),
259 'dependencies' => 'jquery.mwExtension',
261 'jquery.textSelection' => array(
262 'scripts' => 'resources/jquery/jquery.textSelection.js',
263 'dependencies' => 'jquery.client',
265 'jquery.validate' => array(
266 'scripts' => 'resources/jquery/jquery.validate.js',
268 'jquery.xmldom' => array(
269 'scripts' => 'resources/jquery/jquery.xmldom.js',
272 /* jQuery Tipsy */
274 'jquery.tipsy' => array(
275 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js',
276 'styles' => 'resources/jquery.tipsy/jquery.tipsy.css',
279 /* jQuery UI */
281 // Core
282 'jquery.ui.core' => array(
283 'scripts' => 'resources/jquery.ui/jquery.ui.core.js',
284 'skinStyles' => array(
285 'default' => array(
286 'resources/jquery.ui/themes/default/jquery.ui.core.css',
287 'resources/jquery.ui/themes/default/jquery.ui.theme.css',
289 'vector' => array(
290 'resources/jquery.ui/themes/vector/jquery.ui.core.css',
291 'resources/jquery.ui/themes/vector/jquery.ui.theme.css',
294 'dependencies' => 'jquery',
295 'group' => 'jquery.ui',
297 'jquery.ui.widget' => array(
298 'scripts' => 'resources/jquery.ui/jquery.ui.widget.js',
299 'group' => 'jquery.ui',
301 'jquery.ui.mouse' => array(
302 'scripts' => 'resources/jquery.ui/jquery.ui.mouse.js',
303 'dependencies' => 'jquery.ui.widget',
304 'group' => 'jquery.ui',
306 'jquery.ui.position' => array(
307 'scripts' => 'resources/jquery.ui/jquery.ui.position.js',
308 'group' => 'jquery.ui',
310 // Interactions
311 'jquery.ui.draggable' => array(
312 'scripts' => 'resources/jquery.ui/jquery.ui.draggable.js',
313 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget' ),
314 'group' => 'jquery.ui',
316 'jquery.ui.droppable' => array(
317 'scripts' => 'resources/jquery.ui/jquery.ui.droppable.js',
318 'dependencies' => array(
319 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable',
321 'group' => 'jquery.ui',
323 'jquery.ui.resizable' => array(
324 'scripts' => 'resources/jquery.ui/jquery.ui.resizable.js',
325 'skinStyles' => array(
326 'default' => 'resources/jquery.ui/themes/default/jquery.ui.resizable.css',
327 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.resizable.css',
329 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
330 'group' => 'jquery.ui',
332 'jquery.ui.selectable' => array(
333 'scripts' => 'resources/jquery.ui/jquery.ui.selectable.js',
334 'skinStyles' => array(
335 'default' => 'resources/jquery.ui/themes/default/jquery.ui.selectable.css',
336 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.selectable.css',
338 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
339 'group' => 'jquery.ui',
341 'jquery.ui.sortable' => array(
342 'scripts' => 'resources/jquery.ui/jquery.ui.sortable.js',
343 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
344 'group' => 'jquery.ui',
346 // Widgets
347 'jquery.ui.accordion' => array(
348 'scripts' => 'resources/jquery.ui/jquery.ui.accordion.js',
349 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
350 'skinStyles' => array(
351 'default' => 'resources/jquery.ui/themes/default/jquery.ui.accordion.css',
352 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.accordion.css',
354 'group' => 'jquery.ui',
356 'jquery.ui.autocomplete' => array(
357 'scripts' => 'resources/jquery.ui/jquery.ui.autocomplete.js',
358 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ),
359 'skinStyles' => array(
360 'default' => 'resources/jquery.ui/themes/default/jquery.ui.autocomplete.css',
361 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.autocomplete.css',
363 'group' => 'jquery.ui',
365 'jquery.ui.button' => array(
366 'scripts' => 'resources/jquery.ui/jquery.ui.button.js',
367 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
368 'skinStyles' => array(
369 'default' => 'resources/jquery.ui/themes/default/jquery.ui.button.css',
370 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.button.css',
372 'group' => 'jquery.ui',
374 'jquery.ui.datepicker' => array(
375 'scripts' => 'resources/jquery.ui/jquery.ui.datepicker.js',
376 'dependencies' => 'jquery.ui.core',
377 'skinStyles' => array(
378 'default' => 'resources/jquery.ui/themes/default/jquery.ui.datepicker.css',
379 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.datepicker.css',
381 'languageScripts' => array(
382 'af' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-af.js',
383 'ar' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
384 'az' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-az.js',
385 'bg' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
386 'bs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
387 'ca' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
388 'cs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
389 'da' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-da.js',
390 'de' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-de.js',
391 'el' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-el.js',
392 'en-gb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
393 'eo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
394 'es' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-es.js',
395 'et' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-et.js',
396 'eu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
397 'fa' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
398 'fi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
399 'fo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
400 'fr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
401 'gl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
402 'he' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-he.js',
403 'hi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
404 'hr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
405 'hu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
406 'hy' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
407 'id' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-id.js',
408 'is' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-is.js',
409 'it' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-it.js',
410 'ja' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
411 'ka' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
412 'kk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
413 'km' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-km.js',
414 'ko' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
415 'lb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
416 'lt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
417 'lv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
418 'mk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
419 'ml' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
420 'ms' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
421 'nl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
422 'no' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-no.js',
423 'pl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
424 'pt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
425 'pt-br' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
426 'rm' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
427 'ro' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
428 'ru' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
429 'sk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
430 'sl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
431 'sq' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
432 'sr-sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
433 'sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
434 'sv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
435 'ta' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
436 'th' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-th.js',
437 'tr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
438 'uk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
439 'vi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
440 'zh-cn' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
441 'zh-hk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
442 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
444 'group' => 'jquery.ui',
446 'jquery.ui.dialog' => array(
447 'scripts' => 'resources/jquery.ui/jquery.ui.dialog.js',
448 'dependencies' => array(
449 'jquery.ui.core',
450 'jquery.ui.widget',
451 'jquery.ui.button',
452 'jquery.ui.draggable',
453 'jquery.ui.mouse',
454 'jquery.ui.position',
455 'jquery.ui.resizable',
457 'skinStyles' => array(
458 'default' => 'resources/jquery.ui/themes/default/jquery.ui.dialog.css',
459 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.dialog.css',
461 'group' => 'jquery.ui',
463 'jquery.ui.progressbar' => array(
464 'scripts' => 'resources/jquery.ui/jquery.ui.progressbar.js',
465 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
466 'skinStyles' => array(
467 'default' => 'resources/jquery.ui/themes/default/jquery.ui.progressbar.css',
468 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.progressbar.css',
470 'group' => 'jquery.ui',
472 'jquery.ui.slider' => array(
473 'scripts' => 'resources/jquery.ui/jquery.ui.slider.js',
474 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
475 'skinStyles' => array(
476 'default' => 'resources/jquery.ui/themes/default/jquery.ui.slider.css',
477 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.slider.css',
479 'group' => 'jquery.ui',
481 'jquery.ui.tabs' => array(
482 'scripts' => 'resources/jquery.ui/jquery.ui.tabs.js',
483 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
484 'skinStyles' => array(
485 'default' => 'resources/jquery.ui/themes/default/jquery.ui.tabs.css',
486 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.tabs.css',
488 'group' => 'jquery.ui',
490 // Effects
491 'jquery.effects.core' => array(
492 'scripts' => 'resources/jquery.effects/jquery.effects.core.js',
493 'dependencies' => 'jquery',
494 'group' => 'jquery.ui',
496 'jquery.effects.blind' => array(
497 'scripts' => 'resources/jquery.effects/jquery.effects.blind.js',
498 'dependencies' => 'jquery.effects.core',
499 'group' => 'jquery.ui',
501 'jquery.effects.bounce' => array(
502 'scripts' => 'resources/jquery.effects/jquery.effects.bounce.js',
503 'dependencies' => 'jquery.effects.core',
504 'group' => 'jquery.ui',
506 'jquery.effects.clip' => array(
507 'scripts' => 'resources/jquery.effects/jquery.effects.clip.js',
508 'dependencies' => 'jquery.effects.core',
509 'group' => 'jquery.ui',
511 'jquery.effects.drop' => array(
512 'scripts' => 'resources/jquery.effects/jquery.effects.drop.js',
513 'dependencies' => 'jquery.effects.core',
514 'group' => 'jquery.ui',
516 'jquery.effects.explode' => array(
517 'scripts' => 'resources/jquery.effects/jquery.effects.explode.js',
518 'dependencies' => 'jquery.effects.core',
519 'group' => 'jquery.ui',
521 'jquery.effects.fade' => array(
522 'scripts' => 'resources/jquery.effects/jquery.effects.fade.js',
523 'dependencies' => 'jquery.effects.core',
524 'group' => 'jquery.ui',
526 'jquery.effects.fold' => array(
527 'scripts' => 'resources/jquery.effects/jquery.effects.fold.js',
528 'dependencies' => 'jquery.effects.core',
529 'group' => 'jquery.ui',
531 'jquery.effects.highlight' => array(
532 'scripts' => 'resources/jquery.effects/jquery.effects.highlight.js',
533 'dependencies' => 'jquery.effects.core',
534 'group' => 'jquery.ui',
536 'jquery.effects.pulsate' => array(
537 'scripts' => 'resources/jquery.effects/jquery.effects.pulsate.js',
538 'dependencies' => 'jquery.effects.core',
539 'group' => 'jquery.ui',
541 'jquery.effects.scale' => array(
542 'scripts' => 'resources/jquery.effects/jquery.effects.scale.js',
543 'dependencies' => 'jquery.effects.core',
544 'group' => 'jquery.ui',
546 'jquery.effects.shake' => array(
547 'scripts' => 'resources/jquery.effects/jquery.effects.shake.js',
548 'dependencies' => 'jquery.effects.core',
549 'group' => 'jquery.ui',
551 'jquery.effects.slide' => array(
552 'scripts' => 'resources/jquery.effects/jquery.effects.slide.js',
553 'dependencies' => 'jquery.effects.core',
554 'group' => 'jquery.ui',
556 'jquery.effects.transfer' => array(
557 'scripts' => 'resources/jquery.effects/jquery.effects.transfer.js',
558 'dependencies' => 'jquery.effects.core',
559 'group' => 'jquery.ui',
562 /* MediaWiki */
564 'mediawiki' => array(
565 'scripts' => 'resources/mediawiki/mediawiki.js',
566 'debugScripts' => 'resources/mediawiki/mediawiki.log.js',
567 'debugRaw' => false,
568 'targets' => array( 'desktop', 'mobile' ),
570 'mediawiki.api' => array(
571 'scripts' => 'resources/mediawiki.api/mediawiki.api.js',
572 'dependencies' => 'mediawiki.util',
574 'mediawiki.api.category' => array(
575 'scripts' => 'resources/mediawiki.api/mediawiki.api.category.js',
576 'dependencies' => array(
577 'mediawiki.api',
578 'mediawiki.Title',
581 'mediawiki.api.edit' => array(
582 'scripts' => 'resources/mediawiki.api/mediawiki.api.edit.js',
583 'dependencies' => array(
584 'mediawiki.api',
585 'mediawiki.Title',
588 'mediawiki.api.parse' => array(
589 'scripts' => 'resources/mediawiki.api/mediawiki.api.parse.js',
590 'dependencies' => 'mediawiki.api',
592 'mediawiki.api.watch' => array(
593 'scripts' => 'resources/mediawiki.api/mediawiki.api.watch.js',
594 'dependencies' => array(
595 'mediawiki.api',
596 'user.tokens',
599 'mediawiki.debug' => array(
600 'scripts' => 'resources/mediawiki/mediawiki.debug.js',
601 'styles' => 'resources/mediawiki/mediawiki.debug.css',
602 'dependencies' => 'jquery.footHovzer',
603 'position' => 'bottom',
605 'mediawiki.debug.init' => array(
606 'scripts' => 'resources/mediawiki/mediawiki.debug.init.js',
607 'dependencies' => 'mediawiki.debug',
608 // Uses a custom mw.config variable that is set in debughtml,
609 // must be loaded on the bottom
610 'position' => 'bottom',
612 'mediawiki.feedback' => array(
613 'scripts' => 'resources/mediawiki/mediawiki.feedback.js',
614 'styles' => 'resources/mediawiki/mediawiki.feedback.css',
615 'dependencies' => array(
616 'mediawiki.api.edit',
617 'mediawiki.Title',
618 'mediawiki.jqueryMsg',
619 'jquery.ui.dialog',
621 'messages' => array(
622 'feedback-bugornote',
623 'feedback-subject',
624 'feedback-message',
625 'feedback-cancel',
626 'feedback-submit',
627 'feedback-adding',
628 'feedback-error1',
629 'feedback-error2',
630 'feedback-error3',
631 'feedback-thanks',
632 'feedback-close',
633 'feedback-bugcheck',
634 'feedback-bugnew',
637 'mediawiki.hidpi' => array(
638 'scripts' => 'resources/mediawiki/mediawiki.hidpi.js',
639 'dependencies' => array(
640 'jquery.hidpi',
642 'targets' => array( 'desktop', 'mobile' ),
644 'mediawiki.htmlform' => array(
645 'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
646 'messages' => array( 'htmlform-chosen-placeholder' ),
648 'mediawiki.notification' => array(
649 'styles' => 'resources/mediawiki/mediawiki.notification.css',
650 'scripts' => 'resources/mediawiki/mediawiki.notification.js',
651 'dependencies' => array(
652 'mediawiki.page.startup',
655 'mediawiki.notify' => array(
656 'scripts' => 'resources/mediawiki/mediawiki.notify.js',
657 'targets' => array( 'desktop', 'mobile' ),
659 'mediawiki.searchSuggest' => array(
660 'scripts' => 'resources/mediawiki/mediawiki.searchSuggest.js',
661 'styles' => 'resources/mediawiki/mediawiki.searchSuggest.css',
662 'messages' => array(
663 'searchsuggest-search',
664 'searchsuggest-containing',
666 'dependencies' => array(
667 'jquery.autoEllipsis',
668 'jquery.client',
669 'jquery.placeholder',
670 'jquery.suggestions',
673 'mediawiki.Title' => array(
674 'scripts' => 'resources/mediawiki/mediawiki.Title.js',
675 'dependencies' => 'mediawiki.util',
677 'mediawiki.Uri' => array(
678 'scripts' => 'resources/mediawiki/mediawiki.Uri.js',
680 'mediawiki.user' => array(
681 'scripts' => 'resources/mediawiki/mediawiki.user.js',
682 'dependencies' => array(
683 'jquery.cookie',
684 'mediawiki.api',
685 'user.options',
686 'user.tokens',
689 'mediawiki.util' => array(
690 'scripts' => 'resources/mediawiki/mediawiki.util.js',
691 'dependencies' => array(
692 'jquery.client',
693 'jquery.cookie',
694 'jquery.mwExtension',
695 'mediawiki.notify',
697 'messages' => array( 'showtoc', 'hidetoc' ),
698 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
699 'targets' => array( 'desktop', 'mobile' ),
702 /* MediaWiki Action */
704 'mediawiki.action.edit' => array(
705 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
706 'dependencies' => array(
707 'jquery.textSelection',
708 'jquery.byteLimit',
710 'position' => 'top',
712 'mediawiki.action.edit.preview' => array(
713 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.preview.js',
714 'dependencies' => array(
715 'jquery.form',
716 'jquery.spinner',
719 'mediawiki.action.history' => array(
720 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
721 'group' => 'mediawiki.action.history',
723 'mediawiki.action.history.diff' => array(
724 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
725 'group' => 'mediawiki.action.history',
727 'mediawiki.action.view.dblClickEdit' => array(
728 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
729 'dependencies' => array(
730 'mediawiki.util',
731 'mediawiki.page.startup',
734 'mediawiki.action.view.metadata' => array(
735 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js',
736 'messages' => array(
737 'metadata-expand',
738 'metadata-collapse',
741 'mediawiki.action.view.postEdit' => array(
742 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.js',
743 'dependencies' => 'jquery.cookie'
745 'mediawiki.action.view.rightClickEdit' => array(
746 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
748 'mediawiki.action.edit.editWarning' => array(
749 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.editWarning.js',
750 'messages' => array(
751 'editwarning-warning',
754 // Alias for backwards compatibility
755 'mediawiki.action.watch.ajax' => array(
756 'dependencies' => 'mediawiki.page.watch.ajax'
759 /* MediaWiki Language */
761 'mediawiki.language' => array(
762 'scripts' => array(
763 'resources/mediawiki.language/mediawiki.language.js',
764 'resources/mediawiki.language/mediawiki.language.numbers.js'
766 'languageScripts' => array(
767 'bs' => 'resources/mediawiki.language/languages/bs.js',
768 'dsb' => 'resources/mediawiki.language/languages/dsb.js',
769 'fi' => 'resources/mediawiki.language/languages/fi.js',
770 'ga' => 'resources/mediawiki.language/languages/ga.js',
771 'he' => 'resources/mediawiki.language/languages/he.js',
772 'hsb' => 'resources/mediawiki.language/languages/hsb.js',
773 'hu' => 'resources/mediawiki.language/languages/hu.js',
774 'hy' => 'resources/mediawiki.language/languages/hy.js',
775 'la' => 'resources/mediawiki.language/languages/la.js',
776 'os' => 'resources/mediawiki.language/languages/os.js',
777 'ru' => 'resources/mediawiki.language/languages/ru.js',
778 'sl' => 'resources/mediawiki.language/languages/sl.js',
779 'uk' => 'resources/mediawiki.language/languages/uk.js',
781 'dependencies' => array(
782 'mediawiki.language.data',
783 'mediawiki.cldr',
785 'targets' => array( 'desktop', 'mobile' ),
788 'mediawiki.cldr' => array(
789 'scripts' => 'resources/mediawiki.language/mediawiki.cldr.js',
790 'dependencies' => array(
791 'mediawiki.libs.pluralruleparser',
793 'targets' => array( 'desktop', 'mobile' ),
796 'mediawiki.libs.pluralruleparser' => array(
797 'scripts' => 'resources/mediawiki.libs/CLDRPluralRuleParser.js',
798 'targets' => array( 'desktop', 'mobile' ),
801 'mediawiki.language.init' => array(
802 'scripts' => 'resources/mediawiki.language/mediawiki.language.init.js',
803 'targets' => array( 'desktop', 'mobile' ),
806 'mediawiki.jqueryMsg' => array(
807 'scripts' => 'resources/mediawiki/mediawiki.jqueryMsg.js',
808 'dependencies' => array(
809 'mediawiki.util',
810 'mediawiki.language',
812 'targets' => array( 'desktop', 'mobile' ),
815 /* MediaWiki Libs */
817 'mediawiki.libs.jpegmeta' => array(
818 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
821 /* MediaWiki Page */
823 'mediawiki.page.ready' => array(
824 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
825 'dependencies' => array(
826 'jquery.checkboxShiftClick',
827 'jquery.makeCollapsible',
828 'jquery.placeholder',
829 'jquery.mw-jump',
830 'mediawiki.util',
832 'targets' => array( 'desktop', 'mobile' ),
834 'mediawiki.page.startup' => array(
835 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js',
836 'dependencies' => array(
837 'jquery.client',
838 'mediawiki.util',
840 'position' => 'top',
841 'targets' => array( 'desktop', 'mobile' ),
843 'mediawiki.page.patrol.ajax' => array(
844 'scripts' => 'resources/mediawiki.page/mediawiki.page.patrol.ajax.js',
845 'dependencies' => array(
846 'mediawiki.page.startup',
847 'mediawiki.api',
848 'mediawiki.util',
849 'mediawiki.Title',
850 'mediawiki.notify',
851 'jquery.spinner',
852 'user.tokens'
854 'messages' => array(
855 'markedaspatrollednotify',
856 'markedaspatrollederrornotify',
857 'markedaspatrollederror-noautopatrol'
860 'mediawiki.page.watch.ajax' => array(
861 'scripts' => 'resources/mediawiki.page/mediawiki.page.watch.ajax.js',
862 'dependencies' => array(
863 'mediawiki.page.startup',
864 'mediawiki.api.watch',
865 'mediawiki.util',
866 'mediawiki.notify',
867 'jquery.mwExtension',
869 'messages' => array(
870 'watch',
871 'unwatch',
872 'watching',
873 'unwatching',
874 'tooltip-ca-watch',
875 'tooltip-ca-unwatch',
876 'watcherrortext',
880 /* MediaWiki Special pages */
882 'mediawiki.special' => array(
883 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
884 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
886 'mediawiki.special.block' => array(
887 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
888 'dependencies' => array(
889 'mediawiki.util',
892 'mediawiki.special.changeemail' => array(
893 'scripts' => 'resources/mediawiki.special/mediawiki.special.changeemail.js',
894 'styles' => 'resources/mediawiki.special/mediawiki.special.changeemail.css',
895 'dependencies' => array(
896 'mediawiki.util',
898 'messages' => array(
899 'email-address-validity-valid',
900 'email-address-validity-invalid',
903 'mediawiki.special.changeslist' => array(
904 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
905 'dependencies' => array( 'jquery.makeCollapsible' ),
907 'mediawiki.special.movePage' => array(
908 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
909 'dependencies' => 'jquery.byteLimit',
911 'mediawiki.special.preferences' => array(
912 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
913 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
915 'mediawiki.special.recentchanges' => array(
916 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
917 'dependencies' => array( 'mediawiki.special' ),
918 'position' => 'top',
920 'mediawiki.special.search' => array(
921 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
922 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
923 'messages' => array(
924 'powersearch-togglelabel',
925 'powersearch-toggleall',
926 'powersearch-togglenone',
929 'mediawiki.special.undelete' => array(
930 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
932 'mediawiki.special.upload' => array(
933 // @todo merge in remainder of mediawiki.legacy.upload
934 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',
935 'messages' => array(
936 'widthheight',
937 'size-bytes',
938 'size-kilobytes',
939 'size-megabytes',
940 'size-gigabytes',
941 'largefileserver',
943 'dependencies' => array( 'mediawiki.libs.jpegmeta', 'mediawiki.util' ),
945 'mediawiki.special.userlogin.signup' => array(
946 'scripts' => 'resources/mediawiki.special/mediawiki.special.userLogin.signup.js',
948 'mediawiki.special.userlogin.vform' => array(
949 'styles' => array(
950 'resources/mediawiki.special/mediawiki.special.vforms.css',
951 'resources/mediawiki.special/mediawiki.special.userLogin.vform.css',
953 'position' => 'top',
955 'mediawiki.special.createaccount.vform' => array(
956 'styles' => array(
957 'resources/mediawiki.special/mediawiki.special.vforms.css',
958 'resources/mediawiki.special/mediawiki.special.createAccount.vform.css',
960 'position' => 'top',
962 'mediawiki.special.createaccount.vform.js' => array(
963 'scripts' => 'resources/mediawiki.special/mediawiki.special.createAccount.vform.js',
964 'messages' => array(
965 'createacct-captcha',
966 'createacct-imgcaptcha-ph'
968 'dependencies' => 'mediawiki.jqueryMsg',
969 'position' => 'top',
971 'mediawiki.special.javaScriptTest' => array(
972 'scripts' => 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js',
973 'messages' => array_merge( Skin::getSkinNameMessages(), array(
974 'colon-separator',
975 'javascripttest-pagetext-skins',
976 ) ),
977 'dependencies' => array( 'jquery.qunit' ),
978 'position' => 'top',
979 'targets' => array( 'desktop', 'mobile' ),
982 /* MediaWiki Tests */
984 'mediawiki.tests.qunit.testrunner' => array(
985 'scripts' => 'tests/qunit/data/testrunner.js',
986 'dependencies' => array(
987 'jquery.getAttrs',
988 'jquery.qunit',
989 'jquery.qunit.completenessTest',
990 'mediawiki.page.startup',
991 'mediawiki.page.ready',
993 'position' => 'top',
994 'targets' => array( 'desktop', 'mobile' ),
997 /* MediaWiki Legacy */
999 'mediawiki.legacy.ajax' => array(
1000 'scripts' => 'common/ajax.js',
1001 'remoteBasePath' => $GLOBALS['wgStylePath'],
1002 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1003 'dependencies' => array(
1004 'mediawiki.util',
1005 'mediawiki.legacy.wikibits',
1007 'position' => 'top', // Temporary hack for legacy support
1009 'mediawiki.legacy.commonPrint' => array(
1010 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
1011 'remoteBasePath' => $GLOBALS['wgStylePath'],
1012 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1014 'mediawiki.legacy.config' => array(
1015 'scripts' => 'common/config.js',
1016 'styles' => array( 'common/config.css', 'common/config-cc.css' ),
1017 'remoteBasePath' => $GLOBALS['wgStylePath'],
1018 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1019 'dependencies' => 'mediawiki.legacy.wikibits',
1021 'mediawiki.legacy.IEFixes' => array(
1022 'scripts' => 'common/IEFixes.js',
1023 'remoteBasePath' => $GLOBALS['wgStylePath'],
1024 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1025 'dependencies' => 'mediawiki.legacy.wikibits',
1027 'mediawiki.legacy.protect' => array(
1028 'scripts' => 'common/protect.js',
1029 'remoteBasePath' => $GLOBALS['wgStylePath'],
1030 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1031 'dependencies' => array(
1032 'mediawiki.legacy.wikibits',
1033 'jquery.byteLimit',
1035 'position' => 'top',
1037 'mediawiki.legacy.shared' => array(
1038 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
1039 'remoteBasePath' => $GLOBALS['wgStylePath'],
1040 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1042 'mediawiki.legacy.oldshared' => array(
1043 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
1044 'remoteBasePath' => $GLOBALS['wgStylePath'],
1045 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1047 'mediawiki.legacy.upload' => array(
1048 'scripts' => 'common/upload.js',
1049 'remoteBasePath' => $GLOBALS['wgStylePath'],
1050 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1051 'dependencies' => array(
1052 'mediawiki.legacy.wikibits',
1053 'mediawiki.util',
1056 'mediawiki.legacy.wikibits' => array(
1057 'scripts' => 'common/wikibits.js',
1058 'remoteBasePath' => $GLOBALS['wgStylePath'],
1059 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1060 'dependencies' => array(
1061 'mediawiki.util',
1063 'position' => 'top',
1065 'mediawiki.legacy.wikiprintable' => array(
1066 'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
1067 'remoteBasePath' => $GLOBALS['wgStylePath'],
1068 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1070 'mediawiki.ui' => array(
1071 'skinStyles' => array(
1072 'default' => 'resources/mediawiki.ui/mediawiki.ui.default.css',
1073 'vector' => 'resources/mediawiki.ui/mediawiki.ui.vector.css',
1075 'position' => 'top',