Whitelist the <wbr> element.
[mediawiki.git] / resources / Resources.php
blob6352843fd802fe13f8562e47193d39ddb41b1467
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' => array(
103 'vector/collapsibleTabs.js',
104 'vector/vector.js',
106 'position' => 'top',
107 'dependencies' => 'jquery.delayedBind',
108 'remoteBasePath' => $GLOBALS['wgStylePath'],
109 'localBasePath' => $GLOBALS['wgStyleDirectory'],
112 /* jQuery */
114 'jquery' => array(
115 'scripts' => 'resources/jquery/jquery.js',
116 'debugRaw' => false,
117 'targets' => array( 'desktop', 'mobile' ),
120 /* jQuery Plugins */
122 'jquery.appear' => array(
123 'scripts' => 'resources/jquery/jquery.appear.js',
125 'jquery.arrowSteps' => array(
126 'scripts' => 'resources/jquery/jquery.arrowSteps.js',
127 'styles' => 'resources/jquery/jquery.arrowSteps.css',
129 'jquery.async' => array(
130 'scripts' => 'resources/jquery/jquery.async.js',
132 'jquery.autoEllipsis' => array(
133 'scripts' => 'resources/jquery/jquery.autoEllipsis.js',
134 'dependencies' => 'jquery.highlightText',
136 'jquery.badge' => array(
137 'scripts' => 'resources/jquery/jquery.badge.js',
138 'styles' => 'resources/jquery/jquery.badge.css',
139 'dependencies' => 'mediawiki.language',
141 'jquery.byteLength' => array(
142 'scripts' => 'resources/jquery/jquery.byteLength.js',
144 'jquery.byteLimit' => array(
145 'scripts' => 'resources/jquery/jquery.byteLimit.js',
146 'dependencies' => 'jquery.byteLength',
148 'jquery.checkboxShiftClick' => array(
149 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js',
150 'targets' => array( 'desktop', 'mobile' ),
152 'jquery.chosen' => array(
153 'scripts' => 'resources/jquery.chosen/chosen.jquery.js',
154 'styles' => 'resources/jquery.chosen/chosen.css',
156 'jquery.client' => array(
157 'scripts' => 'resources/jquery/jquery.client.js',
158 'targets' => array( 'desktop', 'mobile' ),
160 'jquery.color' => array(
161 'scripts' => 'resources/jquery/jquery.color.js',
162 'dependencies' => 'jquery.colorUtil',
164 'jquery.colorUtil' => array(
165 'scripts' => 'resources/jquery/jquery.colorUtil.js',
167 'jquery.cookie' => array(
168 'scripts' => 'resources/jquery/jquery.cookie.js',
169 'targets' => array( 'desktop', 'mobile' ),
171 'jquery.delayedBind' => array(
172 'scripts' => 'resources/jquery/jquery.delayedBind.js',
174 'jquery.expandableField' => array(
175 'scripts' => 'resources/jquery/jquery.expandableField.js',
176 'dependencies' => 'jquery.delayedBind',
178 'jquery.farbtastic' => array(
179 'scripts' => 'resources/jquery/jquery.farbtastic.js',
180 'styles' => 'resources/jquery/jquery.farbtastic.css',
181 'dependencies' => 'jquery.colorUtil',
183 'jquery.footHovzer' => array(
184 'scripts' => 'resources/jquery/jquery.footHovzer.js',
185 'styles' => 'resources/jquery/jquery.footHovzer.css',
187 'jquery.form' => array(
188 'scripts' => 'resources/jquery/jquery.form.js',
190 'jquery.getAttrs' => array(
191 'scripts' => 'resources/jquery/jquery.getAttrs.js',
192 'targets' => array( 'desktop', 'mobile' ),
194 'jquery.hidpi' => array(
195 'scripts' => 'resources/jquery/jquery.hidpi.js',
196 'targets' => array( 'desktop', 'mobile' ),
198 'jquery.highlightText' => array(
199 'scripts' => 'resources/jquery/jquery.highlightText.js',
200 'dependencies' => 'jquery.mwExtension',
202 'jquery.hoverIntent' => array(
203 'scripts' => 'resources/jquery/jquery.hoverIntent.js',
205 'jquery.json' => array(
206 'scripts' => 'resources/jquery/jquery.json.js',
207 'targets' => array( 'mobile', 'desktop' ),
209 'jquery.localize' => array(
210 'scripts' => 'resources/jquery/jquery.localize.js',
212 'jquery.makeCollapsible' => array(
213 'scripts' => 'resources/jquery/jquery.makeCollapsible.js',
214 'styles' => 'resources/jquery/jquery.makeCollapsible.css',
215 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
216 'targets' => array( 'desktop', 'mobile' ),
218 'jquery.mockjax' => array(
219 'scripts' => 'resources/jquery/jquery.mockjax.js',
221 'jquery.mw-jump' => array(
222 'scripts' => 'resources/jquery/jquery.mw-jump.js',
223 'targets' => array( 'desktop', 'mobile' ),
225 'jquery.mwExtension' => array(
226 'scripts' => 'resources/jquery/jquery.mwExtension.js',
227 'targets' => array( 'desktop', 'mobile' ),
229 'jquery.placeholder' => array(
230 'scripts' => 'resources/jquery/jquery.placeholder.js',
231 'targets' => array( 'desktop', 'mobile' ),
233 'jquery.qunit' => array(
234 'scripts' => 'resources/jquery/jquery.qunit.js',
235 'styles' => 'resources/jquery/jquery.qunit.css',
236 'position' => 'top',
237 'targets' => array( 'desktop', 'mobile' ),
239 'jquery.qunit.completenessTest' => array(
240 'scripts' => 'resources/jquery/jquery.qunit.completenessTest.js',
241 'dependencies' => 'jquery.qunit',
242 'targets' => array( 'desktop', 'mobile' ),
244 'jquery.spinner' => array(
245 'scripts' => 'resources/jquery/jquery.spinner.js',
246 'styles' => 'resources/jquery/jquery.spinner.css',
248 'jquery.jStorage' => array(
249 'scripts' => 'resources/jquery/jquery.jStorage.js',
250 'dependencies' => 'jquery.json',
252 'jquery.suggestions' => array(
253 'scripts' => 'resources/jquery/jquery.suggestions.js',
254 'styles' => 'resources/jquery/jquery.suggestions.css',
255 'dependencies' => 'jquery.autoEllipsis',
257 'jquery.tabIndex' => array(
258 'scripts' => 'resources/jquery/jquery.tabIndex.js',
260 'jquery.tablesorter' => array(
261 'scripts' => 'resources/jquery/jquery.tablesorter.js',
262 'styles' => 'resources/jquery/jquery.tablesorter.css',
263 'messages' => array( 'sort-descending', 'sort-ascending' ),
264 'dependencies' => 'jquery.mwExtension',
266 'jquery.textSelection' => array(
267 'scripts' => 'resources/jquery/jquery.textSelection.js',
268 'dependencies' => 'jquery.client',
270 'jquery.validate' => array(
271 'scripts' => 'resources/jquery/jquery.validate.js',
273 'jquery.xmldom' => array(
274 'scripts' => 'resources/jquery/jquery.xmldom.js',
277 /* jQuery Tipsy */
279 'jquery.tipsy' => array(
280 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js',
281 'styles' => 'resources/jquery.tipsy/jquery.tipsy.css',
284 /* jQuery UI */
286 // Core
287 'jquery.ui.core' => array(
288 'scripts' => 'resources/jquery.ui/jquery.ui.core.js',
289 'skinStyles' => array(
290 'default' => array(
291 'resources/jquery.ui/themes/default/jquery.ui.core.css',
292 'resources/jquery.ui/themes/default/jquery.ui.theme.css',
294 'vector' => array(
295 'resources/jquery.ui/themes/vector/jquery.ui.core.css',
296 'resources/jquery.ui/themes/vector/jquery.ui.theme.css',
299 'dependencies' => 'jquery',
300 'group' => 'jquery.ui',
302 'jquery.ui.widget' => array(
303 'scripts' => 'resources/jquery.ui/jquery.ui.widget.js',
304 'group' => 'jquery.ui',
306 'jquery.ui.mouse' => array(
307 'scripts' => 'resources/jquery.ui/jquery.ui.mouse.js',
308 'dependencies' => 'jquery.ui.widget',
309 'group' => 'jquery.ui',
311 'jquery.ui.position' => array(
312 'scripts' => 'resources/jquery.ui/jquery.ui.position.js',
313 'group' => 'jquery.ui',
315 // Interactions
316 'jquery.ui.draggable' => array(
317 'scripts' => 'resources/jquery.ui/jquery.ui.draggable.js',
318 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget' ),
319 'group' => 'jquery.ui',
321 'jquery.ui.droppable' => array(
322 'scripts' => 'resources/jquery.ui/jquery.ui.droppable.js',
323 'dependencies' => array(
324 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable',
326 'group' => 'jquery.ui',
328 'jquery.ui.resizable' => array(
329 'scripts' => 'resources/jquery.ui/jquery.ui.resizable.js',
330 'skinStyles' => array(
331 'default' => 'resources/jquery.ui/themes/default/jquery.ui.resizable.css',
332 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.resizable.css',
334 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
335 'group' => 'jquery.ui',
337 'jquery.ui.selectable' => array(
338 'scripts' => 'resources/jquery.ui/jquery.ui.selectable.js',
339 'skinStyles' => array(
340 'default' => 'resources/jquery.ui/themes/default/jquery.ui.selectable.css',
341 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.selectable.css',
343 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
344 'group' => 'jquery.ui',
346 'jquery.ui.sortable' => array(
347 'scripts' => 'resources/jquery.ui/jquery.ui.sortable.js',
348 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
349 'group' => 'jquery.ui',
351 // Widgets
352 'jquery.ui.accordion' => array(
353 'scripts' => 'resources/jquery.ui/jquery.ui.accordion.js',
354 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
355 'skinStyles' => array(
356 'default' => 'resources/jquery.ui/themes/default/jquery.ui.accordion.css',
357 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.accordion.css',
359 'group' => 'jquery.ui',
361 'jquery.ui.autocomplete' => array(
362 'scripts' => 'resources/jquery.ui/jquery.ui.autocomplete.js',
363 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ),
364 'skinStyles' => array(
365 'default' => 'resources/jquery.ui/themes/default/jquery.ui.autocomplete.css',
366 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.autocomplete.css',
368 'group' => 'jquery.ui',
370 'jquery.ui.button' => array(
371 'scripts' => 'resources/jquery.ui/jquery.ui.button.js',
372 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
373 'skinStyles' => array(
374 'default' => 'resources/jquery.ui/themes/default/jquery.ui.button.css',
375 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.button.css',
377 'group' => 'jquery.ui',
379 'jquery.ui.datepicker' => array(
380 'scripts' => 'resources/jquery.ui/jquery.ui.datepicker.js',
381 'dependencies' => 'jquery.ui.core',
382 'skinStyles' => array(
383 'default' => 'resources/jquery.ui/themes/default/jquery.ui.datepicker.css',
384 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.datepicker.css',
386 'languageScripts' => array(
387 'af' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-af.js',
388 'ar' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
389 'az' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-az.js',
390 'bg' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
391 'bs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
392 'ca' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
393 'cs' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
394 'da' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-da.js',
395 'de' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-de.js',
396 'el' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-el.js',
397 'en-gb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
398 'eo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
399 'es' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-es.js',
400 'et' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-et.js',
401 'eu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
402 'fa' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
403 'fi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
404 'fo' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
405 'fr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
406 'gl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
407 'he' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-he.js',
408 'hi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
409 'hr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
410 'hu' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
411 'hy' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
412 'id' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-id.js',
413 'is' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-is.js',
414 'it' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-it.js',
415 'ja' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
416 'ka' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
417 'kk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
418 'km' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-km.js',
419 'ko' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
420 'lb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
421 'lt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
422 'lv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
423 'mk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
424 'ml' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
425 'ms' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
426 'nl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
427 'no' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-no.js',
428 'pl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
429 'pt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
430 'pt-br' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
431 'rm' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
432 'ro' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
433 'ru' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
434 'sk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
435 'sl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
436 'sq' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
437 'sr-sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
438 'sr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
439 'sv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
440 'ta' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
441 'th' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-th.js',
442 'tr' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
443 'uk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
444 'vi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
445 'zh-cn' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
446 'zh-hk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
447 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
449 'group' => 'jquery.ui',
451 'jquery.ui.dialog' => array(
452 'scripts' => 'resources/jquery.ui/jquery.ui.dialog.js',
453 'dependencies' => array(
454 'jquery.ui.core',
455 'jquery.ui.widget',
456 'jquery.ui.button',
457 'jquery.ui.draggable',
458 'jquery.ui.mouse',
459 'jquery.ui.position',
460 'jquery.ui.resizable',
462 'skinStyles' => array(
463 'default' => 'resources/jquery.ui/themes/default/jquery.ui.dialog.css',
464 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.dialog.css',
466 'group' => 'jquery.ui',
468 'jquery.ui.progressbar' => array(
469 'scripts' => 'resources/jquery.ui/jquery.ui.progressbar.js',
470 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
471 'skinStyles' => array(
472 'default' => 'resources/jquery.ui/themes/default/jquery.ui.progressbar.css',
473 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.progressbar.css',
475 'group' => 'jquery.ui',
477 'jquery.ui.slider' => array(
478 'scripts' => 'resources/jquery.ui/jquery.ui.slider.js',
479 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ),
480 'skinStyles' => array(
481 'default' => 'resources/jquery.ui/themes/default/jquery.ui.slider.css',
482 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.slider.css',
484 'group' => 'jquery.ui',
486 'jquery.ui.tabs' => array(
487 'scripts' => 'resources/jquery.ui/jquery.ui.tabs.js',
488 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ),
489 'skinStyles' => array(
490 'default' => 'resources/jquery.ui/themes/default/jquery.ui.tabs.css',
491 'vector' => 'resources/jquery.ui/themes/vector/jquery.ui.tabs.css',
493 'group' => 'jquery.ui',
495 // Effects
496 'jquery.effects.core' => array(
497 'scripts' => 'resources/jquery.effects/jquery.effects.core.js',
498 'dependencies' => 'jquery',
499 'group' => 'jquery.ui',
501 'jquery.effects.blind' => array(
502 'scripts' => 'resources/jquery.effects/jquery.effects.blind.js',
503 'dependencies' => 'jquery.effects.core',
504 'group' => 'jquery.ui',
506 'jquery.effects.bounce' => array(
507 'scripts' => 'resources/jquery.effects/jquery.effects.bounce.js',
508 'dependencies' => 'jquery.effects.core',
509 'group' => 'jquery.ui',
511 'jquery.effects.clip' => array(
512 'scripts' => 'resources/jquery.effects/jquery.effects.clip.js',
513 'dependencies' => 'jquery.effects.core',
514 'group' => 'jquery.ui',
516 'jquery.effects.drop' => array(
517 'scripts' => 'resources/jquery.effects/jquery.effects.drop.js',
518 'dependencies' => 'jquery.effects.core',
519 'group' => 'jquery.ui',
521 'jquery.effects.explode' => array(
522 'scripts' => 'resources/jquery.effects/jquery.effects.explode.js',
523 'dependencies' => 'jquery.effects.core',
524 'group' => 'jquery.ui',
526 'jquery.effects.fade' => array(
527 'scripts' => 'resources/jquery.effects/jquery.effects.fade.js',
528 'dependencies' => 'jquery.effects.core',
529 'group' => 'jquery.ui',
531 'jquery.effects.fold' => array(
532 'scripts' => 'resources/jquery.effects/jquery.effects.fold.js',
533 'dependencies' => 'jquery.effects.core',
534 'group' => 'jquery.ui',
536 'jquery.effects.highlight' => array(
537 'scripts' => 'resources/jquery.effects/jquery.effects.highlight.js',
538 'dependencies' => 'jquery.effects.core',
539 'group' => 'jquery.ui',
541 'jquery.effects.pulsate' => array(
542 'scripts' => 'resources/jquery.effects/jquery.effects.pulsate.js',
543 'dependencies' => 'jquery.effects.core',
544 'group' => 'jquery.ui',
546 'jquery.effects.scale' => array(
547 'scripts' => 'resources/jquery.effects/jquery.effects.scale.js',
548 'dependencies' => 'jquery.effects.core',
549 'group' => 'jquery.ui',
551 'jquery.effects.shake' => array(
552 'scripts' => 'resources/jquery.effects/jquery.effects.shake.js',
553 'dependencies' => 'jquery.effects.core',
554 'group' => 'jquery.ui',
556 'jquery.effects.slide' => array(
557 'scripts' => 'resources/jquery.effects/jquery.effects.slide.js',
558 'dependencies' => 'jquery.effects.core',
559 'group' => 'jquery.ui',
561 'jquery.effects.transfer' => array(
562 'scripts' => 'resources/jquery.effects/jquery.effects.transfer.js',
563 'dependencies' => 'jquery.effects.core',
564 'group' => 'jquery.ui',
567 /* MediaWiki */
569 'mediawiki' => array(
570 'scripts' => 'resources/mediawiki/mediawiki.js',
571 'debugScripts' => 'resources/mediawiki/mediawiki.log.js',
572 'debugRaw' => false,
573 'targets' => array( 'desktop', 'mobile' ),
575 'mediawiki.api' => array(
576 'scripts' => 'resources/mediawiki.api/mediawiki.api.js',
577 'dependencies' => 'mediawiki.util',
579 'mediawiki.api.category' => array(
580 'scripts' => 'resources/mediawiki.api/mediawiki.api.category.js',
581 'dependencies' => array(
582 'mediawiki.api',
583 'mediawiki.Title',
586 'mediawiki.api.edit' => array(
587 'scripts' => 'resources/mediawiki.api/mediawiki.api.edit.js',
588 'dependencies' => array(
589 'mediawiki.api',
590 'mediawiki.Title',
593 'mediawiki.api.login' => array(
594 'scripts' => 'resources/mediawiki.api/mediawiki.api.login.js',
595 'dependencies' => array(
596 'mediawiki.api',
599 'mediawiki.api.parse' => array(
600 'scripts' => 'resources/mediawiki.api/mediawiki.api.parse.js',
601 'dependencies' => 'mediawiki.api',
603 'mediawiki.api.watch' => array(
604 'scripts' => 'resources/mediawiki.api/mediawiki.api.watch.js',
605 'dependencies' => array(
606 'mediawiki.api',
607 'user.tokens',
610 'mediawiki.icon' => array(
611 'styles' => 'resources/mediawiki/mediawiki.icon.css',
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',
631 'mediawiki.Title',
632 'mediawiki.jqueryMsg',
633 'jquery.ui.dialog',
635 'messages' => array(
636 'feedback-bugornote',
637 'feedback-subject',
638 'feedback-message',
639 'feedback-cancel',
640 'feedback-submit',
641 'feedback-adding',
642 'feedback-error1',
643 'feedback-error2',
644 'feedback-error3',
645 'feedback-thanks',
646 'feedback-close',
647 'feedback-bugcheck',
648 'feedback-bugnew',
651 'mediawiki.hidpi' => array(
652 'scripts' => 'resources/mediawiki/mediawiki.hidpi.js',
653 'dependencies' => array(
654 'jquery.hidpi',
656 'targets' => array( 'desktop', 'mobile' ),
658 'mediawiki.htmlform' => array(
659 'scripts' => 'resources/mediawiki/mediawiki.htmlform.js',
660 'messages' => array( 'htmlform-chosen-placeholder' ),
662 'mediawiki.notification' => array(
663 'styles' => 'resources/mediawiki/mediawiki.notification.css',
664 'scripts' => 'resources/mediawiki/mediawiki.notification.js',
665 'dependencies' => array(
666 'mediawiki.page.startup',
669 'mediawiki.notify' => array(
670 'scripts' => 'resources/mediawiki/mediawiki.notify.js',
671 'targets' => array( 'desktop', 'mobile' ),
673 'mediawiki.searchSuggest' => array(
674 'scripts' => 'resources/mediawiki/mediawiki.searchSuggest.js',
675 'styles' => 'resources/mediawiki/mediawiki.searchSuggest.css',
676 'messages' => array(
677 'searchsuggest-search',
678 'searchsuggest-containing',
680 'dependencies' => array(
681 'jquery.autoEllipsis',
682 'jquery.client',
683 'jquery.placeholder',
684 'jquery.suggestions',
685 'mediawiki.api',
688 'mediawiki.Title' => array(
689 'scripts' => 'resources/mediawiki/mediawiki.Title.js',
690 'dependencies' => 'mediawiki.util',
692 'mediawiki.Uri' => array(
693 'scripts' => 'resources/mediawiki/mediawiki.Uri.js',
695 'mediawiki.user' => array(
696 'scripts' => 'resources/mediawiki/mediawiki.user.js',
697 'dependencies' => array(
698 'jquery.cookie',
699 'mediawiki.api',
700 'user.options',
701 'user.tokens',
704 'mediawiki.util' => array(
705 'scripts' => 'resources/mediawiki/mediawiki.util.js',
706 'dependencies' => array(
707 'jquery.client',
708 'jquery.cookie',
709 'jquery.mwExtension',
710 'mediawiki.notify',
712 'messages' => array( 'showtoc', 'hidetoc' ),
713 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
714 'targets' => array( 'desktop', 'mobile' ),
717 /* MediaWiki Action */
719 'mediawiki.action.edit' => array(
720 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
721 'dependencies' => array(
722 'mediawiki.legacy.wikibits',
723 'jquery.textSelection',
724 'jquery.byteLimit',
726 'position' => 'top',
728 'mediawiki.action.edit.collapsibleFooter' => array(
729 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
730 'styles' => 'resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
731 'dependencies' => array(
732 'jquery.makeCollapsible',
733 'mediawiki.icon',
736 'mediawiki.action.edit.preview' => array(
737 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.preview.js',
738 'dependencies' => array(
739 'jquery.form',
740 'jquery.spinner',
743 'mediawiki.action.history' => array(
744 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
745 'group' => 'mediawiki.action.history',
747 'mediawiki.action.history.diff' => array(
748 'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
749 'group' => 'mediawiki.action.history',
751 'mediawiki.action.view.dblClickEdit' => array(
752 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
753 'dependencies' => array(
754 'mediawiki.util',
755 'mediawiki.page.startup',
758 'mediawiki.action.view.metadata' => array(
759 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.metadata.js',
760 'messages' => array(
761 'metadata-expand',
762 'metadata-collapse',
765 'mediawiki.action.view.postEdit' => array(
766 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.js',
767 'styles' => 'resources/mediawiki.action/mediawiki.action.view.postEdit.css',
768 'dependencies' => array(
769 'jquery.cookie',
770 'mediawiki.jqueryMsg'
772 'messages' => array(
773 'postedit-confirmation',
776 'mediawiki.action.view.rightClickEdit' => array(
777 'scripts' => 'resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
779 'mediawiki.action.edit.editWarning' => array(
780 'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.editWarning.js',
781 'messages' => array(
782 'editwarning-warning',
785 // Alias for backwards compatibility
786 'mediawiki.action.watch.ajax' => array(
787 'dependencies' => 'mediawiki.page.watch.ajax'
790 /* MediaWiki Language */
792 'mediawiki.language' => array(
793 'scripts' => array(
794 'resources/mediawiki.language/mediawiki.language.js',
795 'resources/mediawiki.language/mediawiki.language.numbers.js'
797 'languageScripts' => array(
798 'bs' => 'resources/mediawiki.language/languages/bs.js',
799 'dsb' => 'resources/mediawiki.language/languages/dsb.js',
800 'fi' => 'resources/mediawiki.language/languages/fi.js',
801 'ga' => 'resources/mediawiki.language/languages/ga.js',
802 'he' => 'resources/mediawiki.language/languages/he.js',
803 'hsb' => 'resources/mediawiki.language/languages/hsb.js',
804 'hu' => 'resources/mediawiki.language/languages/hu.js',
805 'hy' => 'resources/mediawiki.language/languages/hy.js',
806 'la' => 'resources/mediawiki.language/languages/la.js',
807 'os' => 'resources/mediawiki.language/languages/os.js',
808 'ru' => 'resources/mediawiki.language/languages/ru.js',
809 'sl' => 'resources/mediawiki.language/languages/sl.js',
810 'uk' => 'resources/mediawiki.language/languages/uk.js',
812 'dependencies' => array(
813 'mediawiki.language.data',
814 'mediawiki.cldr',
816 'targets' => array( 'desktop', 'mobile' ),
819 'mediawiki.cldr' => array(
820 'scripts' => 'resources/mediawiki.language/mediawiki.cldr.js',
821 'dependencies' => array(
822 'mediawiki.libs.pluralruleparser',
824 'targets' => array( 'desktop', 'mobile' ),
827 'mediawiki.libs.pluralruleparser' => array(
828 'scripts' => 'resources/mediawiki.libs/CLDRPluralRuleParser.js',
829 'targets' => array( 'desktop', 'mobile' ),
832 'mediawiki.language.init' => array(
833 'scripts' => 'resources/mediawiki.language/mediawiki.language.init.js',
834 'targets' => array( 'desktop', 'mobile' ),
837 'mediawiki.jqueryMsg' => array(
838 'scripts' => 'resources/mediawiki/mediawiki.jqueryMsg.js',
839 'dependencies' => array(
840 'mediawiki.util',
841 'mediawiki.language',
843 'targets' => array( 'desktop', 'mobile' ),
846 /* MediaWiki Libs */
848 'mediawiki.libs.jpegmeta' => array(
849 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
852 /* MediaWiki Page */
854 'mediawiki.page.ready' => array(
855 'scripts' => 'resources/mediawiki.page/mediawiki.page.ready.js',
856 'dependencies' => array(
857 'jquery.checkboxShiftClick',
858 'jquery.makeCollapsible',
859 'jquery.placeholder',
860 'jquery.mw-jump',
861 'mediawiki.util',
863 'targets' => array( 'desktop', 'mobile' ),
865 'mediawiki.page.startup' => array(
866 'scripts' => 'resources/mediawiki.page/mediawiki.page.startup.js',
867 'dependencies' => array(
868 'jquery.client',
869 'mediawiki.util',
871 'position' => 'top',
872 'targets' => array( 'desktop', 'mobile' ),
874 'mediawiki.page.patrol.ajax' => array(
875 'scripts' => 'resources/mediawiki.page/mediawiki.page.patrol.ajax.js',
876 'dependencies' => array(
877 'mediawiki.page.startup',
878 'mediawiki.api',
879 'mediawiki.util',
880 'mediawiki.Title',
881 'mediawiki.notify',
882 'jquery.spinner',
883 'user.tokens'
885 'messages' => array(
886 'markedaspatrollednotify',
887 'markedaspatrollederrornotify',
888 'markedaspatrollederror-noautopatrol'
891 'mediawiki.page.watch.ajax' => array(
892 'scripts' => 'resources/mediawiki.page/mediawiki.page.watch.ajax.js',
893 'dependencies' => array(
894 'mediawiki.page.startup',
895 'mediawiki.api.watch',
896 'mediawiki.util',
897 'mediawiki.notify',
898 'jquery.mwExtension',
900 'messages' => array(
901 'watch',
902 'unwatch',
903 'watching',
904 'unwatching',
905 'tooltip-ca-watch',
906 'tooltip-ca-unwatch',
907 'watcherrortext',
911 /* MediaWiki Special pages */
913 'mediawiki.special' => array(
914 'scripts' => 'resources/mediawiki.special/mediawiki.special.js',
915 'styles' => 'resources/mediawiki.special/mediawiki.special.css',
917 'mediawiki.special.block' => array(
918 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
919 'dependencies' => array(
920 'mediawiki.util',
923 'mediawiki.special.changeemail' => array(
924 'scripts' => 'resources/mediawiki.special/mediawiki.special.changeemail.js',
925 'styles' => 'resources/mediawiki.special/mediawiki.special.changeemail.css',
926 'dependencies' => array(
927 'mediawiki.util',
929 'messages' => array(
930 'email-address-validity-valid',
931 'email-address-validity-invalid',
934 'mediawiki.special.changeslist' => array(
935 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.css',
937 'mediawiki.special.changeslist.enhanced' => array(
938 'styles' => 'resources/mediawiki.special/mediawiki.special.changeslist.enhanced.css',
940 'mediawiki.special.movePage' => array(
941 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js',
942 'dependencies' => 'jquery.byteLimit',
944 'mediawiki.special.preferences' => array(
945 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
946 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css',
947 'position' => 'top',
949 'mediawiki.special.recentchanges' => array(
950 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js',
951 'dependencies' => array( 'mediawiki.special' ),
952 'position' => 'top',
954 'mediawiki.special.search' => array(
955 'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
956 'styles' => 'resources/mediawiki.special/mediawiki.special.search.css',
957 'messages' => array(
958 'powersearch-togglelabel',
959 'powersearch-toggleall',
960 'powersearch-togglenone',
963 'mediawiki.special.undelete' => array(
964 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js',
966 'mediawiki.special.upload' => array(
967 // @todo merge in remainder of mediawiki.legacy.upload
968 'scripts' => 'resources/mediawiki.special/mediawiki.special.upload.js',
969 'messages' => array(
970 'widthheight',
971 'size-bytes',
972 'size-kilobytes',
973 'size-megabytes',
974 'size-gigabytes',
975 'largefileserver',
977 'dependencies' => array( 'mediawiki.libs.jpegmeta', 'mediawiki.util' ),
979 'mediawiki.special.userlogin' => array(
980 'styles' => array(
981 'resources/mediawiki.special/mediawiki.special.vforms.css',
982 'resources/mediawiki.special/mediawiki.special.userLogin.css',
984 'position' => 'top',
986 'mediawiki.special.createaccount' => array(
987 'styles' => array(
988 'resources/mediawiki.special/mediawiki.special.vforms.css',
989 'resources/mediawiki.special/mediawiki.special.createAccount.css',
992 'mediawiki.special.createaccount.js' => array(
993 'scripts' => 'resources/mediawiki.special/mediawiki.special.createAccount.js',
994 'messages' => array(
995 'createacct-captcha',
996 'createacct-emailrequired',
997 'createacct-imgcaptcha-ph'
999 'dependencies' => 'mediawiki.jqueryMsg',
1000 'position' => 'top',
1002 'mediawiki.special.javaScriptTest' => array(
1003 'scripts' => 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js',
1004 'messages' => array_merge( Skin::getSkinNameMessages(), array(
1005 'colon-separator',
1006 'javascripttest-pagetext-skins',
1007 ) ),
1008 'dependencies' => array( 'jquery.qunit' ),
1009 'position' => 'top',
1010 'targets' => array( 'desktop', 'mobile' ),
1013 /* MediaWiki Tests */
1015 'mediawiki.tests.qunit.testrunner' => array(
1016 'scripts' => 'tests/qunit/data/testrunner.js',
1017 'dependencies' => array(
1018 'jquery.getAttrs',
1019 'jquery.qunit',
1020 'jquery.qunit.completenessTest',
1021 'mediawiki.page.startup',
1022 'mediawiki.page.ready',
1024 'position' => 'top',
1025 'targets' => array( 'desktop', 'mobile' ),
1028 /* MediaWiki Legacy */
1030 'mediawiki.legacy.ajax' => array(
1031 'scripts' => 'common/ajax.js',
1032 'remoteBasePath' => $GLOBALS['wgStylePath'],
1033 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1034 'dependencies' => array(
1035 'mediawiki.util',
1036 'mediawiki.legacy.wikibits',
1038 'position' => 'top', // Temporary hack for legacy support
1040 'mediawiki.legacy.commonPrint' => array(
1041 'styles' => array( 'common/commonPrint.css' => array( 'media' => 'print' ) ),
1042 'remoteBasePath' => $GLOBALS['wgStylePath'],
1043 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1045 'mediawiki.legacy.config' => array(
1046 'scripts' => 'common/config.js',
1047 'styles' => array( 'common/config.css', 'common/config-cc.css' ),
1048 'remoteBasePath' => $GLOBALS['wgStylePath'],
1049 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1050 'dependencies' => 'mediawiki.legacy.wikibits',
1052 'mediawiki.legacy.IEFixes' => array(
1053 'scripts' => 'common/IEFixes.js',
1054 'remoteBasePath' => $GLOBALS['wgStylePath'],
1055 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1056 'dependencies' => 'mediawiki.legacy.wikibits',
1058 'mediawiki.legacy.protect' => array(
1059 'scripts' => 'common/protect.js',
1060 'remoteBasePath' => $GLOBALS['wgStylePath'],
1061 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1062 'dependencies' => array(
1063 'mediawiki.legacy.wikibits',
1064 'jquery.byteLimit',
1066 'position' => 'top',
1068 'mediawiki.legacy.shared' => array(
1069 'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
1070 'remoteBasePath' => $GLOBALS['wgStylePath'],
1071 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1073 'mediawiki.legacy.oldshared' => array(
1074 'styles' => array( 'common/oldshared.css' => array( 'media' => 'screen' ) ),
1075 'remoteBasePath' => $GLOBALS['wgStylePath'],
1076 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1078 'mediawiki.legacy.upload' => array(
1079 'scripts' => 'common/upload.js',
1080 'remoteBasePath' => $GLOBALS['wgStylePath'],
1081 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1082 'dependencies' => array(
1083 'mediawiki.legacy.wikibits',
1084 'mediawiki.util',
1087 'mediawiki.legacy.wikibits' => array(
1088 'scripts' => 'common/wikibits.js',
1089 'remoteBasePath' => $GLOBALS['wgStylePath'],
1090 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1091 'dependencies' => array(
1092 'mediawiki.util',
1094 'position' => 'top',
1096 'mediawiki.legacy.wikiprintable' => array(
1097 'styles' => array( 'common/wikiprintable.css' => array( 'media' => 'print' ) ),
1098 'remoteBasePath' => $GLOBALS['wgStylePath'],
1099 'localBasePath' => $GLOBALS['wgStyleDirectory'],
1101 'mediawiki.ui' => array(
1102 'skinStyles' => array(
1103 'default' => 'resources/mediawiki.ui/mediawiki.ui.default.css',
1104 'vector' => 'resources/mediawiki.ui/mediawiki.ui.vector.css',
1106 'position' => 'top',