Merge "Use wgResourceBasePath instead of wgScriptPath for wgStylePath etc."
[lhc/web/wiklou.git] / resources / Resources.php
1 <?php
2 /**
3 * Definition of core ResourceLoader modules.
4 *
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.
9 *
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.
14 *
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
19 *
20 * @file
21 */
22
23 if ( !defined( 'MEDIAWIKI' ) ) {
24 die( 'Not an entry point.' );
25 }
26
27 return array(
28
29 /**
30 * Special modules who have their own classes
31 */
32 'startup' => array( 'class' => 'ResourceLoaderStartUpModule' ),
33
34 // Scripts managed by the local wiki (stored in the MediaWiki namespace)
35 'site' => array( 'class' => 'ResourceLoaderSiteModule' ),
36 'noscript' => array(
37 'class' => 'ResourceLoaderWikiModule',
38 'styles' => array( 'MediaWiki:Noscript.css' ),
39 'group' => 'noscript',
40 ),
41 'filepage' => array(
42 'position' => 'top',
43 'class' => 'ResourceLoaderWikiModule',
44 'styles' => array( 'MediaWiki:Filepage.css' ),
45 ),
46 'user.groups' => array( 'class' => 'ResourceLoaderUserGroupsModule' ),
47
48 // Scripts managed by the current user (stored in their user space)
49 'user' => array( 'class' => 'ResourceLoaderUserModule' ),
50
51 // Scripts generated based on the current user's preferences
52 'user.cssprefs' => array( 'class' => 'ResourceLoaderUserCSSPrefsModule' ),
53
54 // Populate mediawiki.user placeholders with information about the current user
55 'user.defaults' => array( 'class' => 'ResourceLoaderUserDefaultsModule' ),
56 'user.options' => array( 'class' => 'ResourceLoaderUserOptionsModule' ),
57 'user.tokens' => array( 'class' => 'ResourceLoaderUserTokensModule' ),
58
59 // Scripts for the dynamic language specific data, like grammar forms.
60 'mediawiki.language.data' => array( 'class' => 'ResourceLoaderLanguageDataModule' ),
61
62 /* MediaWiki base skinning modules */
63
64 /**
65 * Common skin styles, grouped into three graded levels.
66 *
67 * Level 1 "elements":
68 * The base level that only contains the most basic of common skin styles.
69 * Only styles for single elements are included, no styling for complex structures like the
70 * TOC is present. This level is for skins that want to implement the entire style of even
71 * content area structures like the TOC themselves.
72 *
73 * Level 2 "content":
74 * The most commonly used level for skins implemented from scratch. This level includes all
75 * the single element styles from "elements" as well as styles for complex structures such
76 * as the TOC that are output in the content area by MediaWiki rather than the skin.
77 * Essentially this is the common level that lets skins leave the style of the content area
78 * as it is normally styled, while leaving the rest of the skin up to the skin
79 * implementation.
80 *
81 * Level 3 "interface":
82 * The highest level, this stylesheet contains extra common styles for classes like
83 * .firstHeading, #contentSub, et cetera which are not outputted by MediaWiki but are common
84 * to skins like MonoBook, Vector, etc... Essentially this level is for styles that are
85 * common to MonoBook clones. And since practically every skin that currently exists within
86 * core is a MonoBook clone, all our core skins currently use this level.
87 *
88 * These modules are typically loaded by addModuleStyles(), which has absolutely no concept of
89 * dependency management. As a result they contain duplicate stylesheet references instead of
90 * setting 'dependencies' to the lower level the module is based on. For this reason avoid
91 * including more than one of them into your skin as this will result in duplicate CSS.
92 */
93 'mediawiki.skinning.elements' => array(
94 'position' => 'top',
95 'styles' => array(
96 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ),
97 ),
98 ),
99 'mediawiki.skinning.content' => array(
100 'position' => 'top',
101 'styles' => array(
102 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ),
103 'resources/src/mediawiki.skinning/content.css' => array( 'media' => 'screen' ),
104 ),
105 ),
106 // Used in the web installer. Test it after modifying this definition!
107 'mediawiki.skinning.interface' => array(
108 'position' => 'top',
109 'class' => 'ResourceLoaderSkinModule',
110 'styles' => array(
111 'resources/src/mediawiki.skinning/elements.css' => array( 'media' => 'screen' ),
112 'resources/src/mediawiki.skinning/content.css' => array( 'media' => 'screen' ),
113 'resources/src/mediawiki.skinning/interface.css' => array( 'media' => 'screen' ),
114 ),
115 ),
116
117 'mediawiki.skinning.content.parsoid' => array(
118 'position' => 'top',
119 // Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser
120 // with the interface.css styles; skinStyles should be used if your
121 // skin over-rides common content styling.
122 'skinStyles' => array(
123 'default' => 'resources/src/mediawiki.skinning/content.parsoid.less',
124 ),
125 'targets' => array( 'desktop', 'mobile' ),
126 ),
127
128 'mediawiki.skinning.content.externallinks' => array(
129 'position' => 'bottom',
130 'styles' => array(
131 'resources/src/mediawiki.skinning/content.externallinks.css' => array( 'media' => 'screen' ),
132 ),
133 ),
134
135 /* jQuery */
136
137 'jquery' => array(
138 'scripts' => array(
139 'resources/lib/jquery/jquery.js',
140 ),
141 'raw' => true,
142 'targets' => array( 'desktop', 'mobile' ),
143 ),
144
145 /* jQuery Plugins */
146
147 'jquery.accessKeyLabel' => array(
148 'scripts' => 'resources/src/jquery/jquery.accessKeyLabel.js',
149 'dependencies' => array(
150 'jquery.client',
151 'mediawiki.RegExp',
152 ),
153 'messages' => array( 'brackets', 'word-separator' ),
154 'targets' => array( 'mobile', 'desktop' ),
155 ),
156 'jquery.appear' => array(
157 'scripts' => 'resources/lib/jquery/jquery.appear.js',
158 ),
159 'jquery.arrowSteps' => array(
160 'scripts' => 'resources/src/jquery/jquery.arrowSteps.js',
161 'styles' => 'resources/src/jquery/jquery.arrowSteps.css',
162 ),
163 'jquery.async' => array(
164 'scripts' => 'resources/lib/jquery/jquery.async.js',
165 ),
166 'jquery.autoEllipsis' => array(
167 'scripts' => 'resources/src/jquery/jquery.autoEllipsis.js',
168 'dependencies' => 'jquery.highlightText',
169 'targets' => array( 'desktop', 'mobile' ),
170 ),
171 'jquery.badge' => array(
172 'scripts' => 'resources/src/jquery/jquery.badge.js',
173 'styles' => 'resources/src/jquery/jquery.badge.css',
174 'dependencies' => 'mediawiki.language',
175 ),
176 'jquery.byteLength' => array(
177 'scripts' => 'resources/src/jquery/jquery.byteLength.js',
178 'targets' => array( 'desktop', 'mobile' ),
179 ),
180 'jquery.byteLimit' => array(
181 'scripts' => 'resources/src/jquery/jquery.byteLimit.js',
182 'dependencies' => 'jquery.byteLength',
183 'targets' => array( 'desktop', 'mobile' ),
184 ),
185 'jquery.checkboxShiftClick' => array(
186 'scripts' => 'resources/src/jquery/jquery.checkboxShiftClick.js',
187 'targets' => array( 'desktop', 'mobile' ),
188 ),
189 'jquery.chosen' => array(
190 'scripts' => 'resources/lib/jquery.chosen/chosen.jquery.js',
191 'styles' => 'resources/lib/jquery.chosen/chosen.css',
192 ),
193 'jquery.client' => array(
194 'scripts' => 'resources/lib/jquery.client/jquery.client.js',
195 'targets' => array( 'desktop', 'mobile' ),
196 ),
197 'jquery.color' => array(
198 'scripts' => 'resources/src/jquery/jquery.color.js',
199 'dependencies' => 'jquery.colorUtil',
200 ),
201 'jquery.colorUtil' => array(
202 'scripts' => 'resources/src/jquery/jquery.colorUtil.js',
203 ),
204 'jquery.confirmable' => array(
205 'scripts' => array(
206 'resources/src/jquery/jquery.confirmable.js',
207 'resources/src/jquery/jquery.confirmable.mediawiki.js',
208 ),
209 'messages' => array(
210 'confirmable-confirm',
211 'confirmable-yes',
212 'confirmable-no',
213 'word-separator',
214 ),
215 'styles' => 'resources/src/jquery/jquery.confirmable.css',
216 'dependencies' => 'mediawiki.jqueryMsg',
217 ),
218 'jquery.cookie' => array(
219 'scripts' => 'resources/lib/jquery/jquery.cookie.js',
220 'targets' => array( 'desktop', 'mobile' ),
221 ),
222 'jquery.expandableField' => array(
223 'scripts' => 'resources/src/jquery/jquery.expandableField.js',
224 ),
225 'jquery.farbtastic' => array(
226 'scripts' => 'resources/src/jquery/jquery.farbtastic.js',
227 'styles' => 'resources/src/jquery/jquery.farbtastic.css',
228 'dependencies' => 'jquery.colorUtil',
229 ),
230 'jquery.footHovzer' => array(
231 'scripts' => 'resources/src/jquery/jquery.footHovzer.js',
232 'styles' => 'resources/src/jquery/jquery.footHovzer.css',
233 ),
234 'jquery.form' => array(
235 'scripts' => 'resources/lib/jquery/jquery.form.js',
236 ),
237 'jquery.fullscreen' => array(
238 'scripts' => 'resources/lib/jquery/jquery.fullscreen.js',
239 ),
240 'jquery.getAttrs' => array(
241 'scripts' => 'resources/src/jquery/jquery.getAttrs.js',
242 'targets' => array( 'desktop', 'mobile' ),
243 ),
244 'jquery.hidpi' => array(
245 'scripts' => 'resources/src/jquery/jquery.hidpi.js',
246 'targets' => array( 'desktop', 'mobile' ),
247 ),
248 'jquery.highlightText' => array(
249 'scripts' => 'resources/src/jquery/jquery.highlightText.js',
250 'dependencies' => array(
251 'mediawiki.RegExp',
252 'dom-level2-shim',
253 ),
254 'targets' => array( 'desktop', 'mobile' ),
255 ),
256 'jquery.hoverIntent' => array(
257 'scripts' => 'resources/lib/jquery/jquery.hoverIntent.js',
258 ),
259 'jquery.i18n' => array(
260 'scripts' => array(
261 'resources/lib/jquery.i18n/src/jquery.i18n.js',
262 'resources/lib/jquery.i18n/src/jquery.i18n.messagestore.js',
263 'resources/lib/jquery.i18n/src/jquery.i18n.parser.js',
264 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.js',
265 'resources/lib/jquery.i18n/src/jquery.i18n.emitter.bidi.js',
266 'resources/lib/jquery.i18n/src/jquery.i18n.language.js',
267 'resources/lib/jquery.i18n/src/jquery.i18n.fallbacks.js',
268 ),
269 'dependencies' => 'mediawiki.libs.pluralruleparser',
270 'languageScripts' => array(
271 'bs' => 'resources/lib/jquery.i18n/src/languages/bs.js',
272 'dsb' => 'resources/lib/jquery.i18n/src/languages/dsb.js',
273 'fi' => 'resources/lib/jquery.i18n/src/languages/fi.js',
274 'ga' => 'resources/lib/jquery.i18n/src/languages/ga.js',
275 'he' => 'resources/lib/jquery.i18n/src/languages/he.js',
276 'hsb' => 'resources/lib/jquery.i18n/src/languages/hsb.js',
277 'hu' => 'resources/lib/jquery.i18n/src/languages/hu.js',
278 'hy' => 'resources/lib/jquery.i18n/src/languages/hy.js',
279 'la' => 'resources/lib/jquery.i18n/src/languages/la.js',
280 'ml' => 'resources/lib/jquery.i18n/src/languages/ml.js',
281 'os' => 'resources/lib/jquery.i18n/src/languages/os.js',
282 'ru' => 'resources/lib/jquery.i18n/src/languages/ru.js',
283 'sl' => 'resources/lib/jquery.i18n/src/languages/sl.js',
284 'uk' => 'resources/lib/jquery.i18n/src/languages/uk.js',
285 ),
286 'targets' => array( 'desktop', 'mobile' ),
287 ),
288 'jquery.localize' => array(
289 'scripts' => 'resources/src/jquery/jquery.localize.js',
290 ),
291 'jquery.makeCollapsible' => array(
292 'scripts' => 'resources/src/jquery/jquery.makeCollapsible.js',
293 'styles' => 'resources/src/jquery/jquery.makeCollapsible.css',
294 'messages' => array( 'collapsible-expand', 'collapsible-collapse' ),
295 'targets' => array( 'desktop', 'mobile' ),
296 ),
297 'jquery.mockjax' => array(
298 'scripts' => 'resources/lib/jquery/jquery.mockjax.js',
299 ),
300 'jquery.mw-jump' => array(
301 'scripts' => 'resources/src/jquery/jquery.mw-jump.js',
302 'targets' => array( 'desktop', 'mobile' ),
303 ),
304 'jquery.mwExtension' => array(
305 'scripts' => 'resources/src/jquery/jquery.mwExtension.js',
306 'targets' => array( 'desktop', 'mobile' ),
307 ),
308 'jquery.placeholder' => array(
309 'scripts' => 'resources/src/jquery/jquery.placeholder.js',
310 'targets' => array( 'desktop', 'mobile' ),
311 ),
312 'jquery.qunit' => array(
313 'scripts' => 'resources/lib/qunitjs/qunit.js',
314 'styles' => 'resources/lib/qunitjs/qunit.css',
315 'position' => 'top',
316 'targets' => array( 'desktop', 'mobile' ),
317 ),
318 'jquery.qunit.completenessTest' => array(
319 'scripts' => 'resources/src/jquery/jquery.qunit.completenessTest.js',
320 'dependencies' => 'jquery.qunit',
321 'targets' => array( 'desktop', 'mobile' ),
322 ),
323 'jquery.spinner' => array(
324 'scripts' => 'resources/src/jquery/jquery.spinner.js',
325 'styles' => 'resources/src/jquery/jquery.spinner.css',
326 ),
327 'jquery.jStorage' => array(
328 'scripts' => 'resources/lib/jquery/jquery.jStorage.js',
329 'dependencies' => 'json',
330 ),
331 'jquery.suggestions' => array(
332 'scripts' => 'resources/src/jquery/jquery.suggestions.js',
333 'styles' => 'resources/src/jquery/jquery.suggestions.css',
334 'dependencies' => 'jquery.highlightText',
335 ),
336 'jquery.tabIndex' => array(
337 'scripts' => 'resources/src/jquery/jquery.tabIndex.js',
338 ),
339 'jquery.tablesorter' => array(
340 'scripts' => 'resources/src/jquery/jquery.tablesorter.js',
341 'styles' => 'resources/src/jquery/jquery.tablesorter.css',
342 'messages' => array( 'sort-descending', 'sort-ascending' ),
343 'dependencies' => array(
344 'dom-level2-shim',
345 'mediawiki.RegExp',
346 'mediawiki.language.months',
347 ),
348 ),
349 'jquery.textSelection' => array(
350 'scripts' => 'resources/src/jquery/jquery.textSelection.js',
351 'dependencies' => 'jquery.client',
352 'targets' => array( 'mobile', 'desktop' ),
353 ),
354 'jquery.throttle-debounce' => array(
355 'scripts' => 'resources/lib/jquery/jquery.ba-throttle-debounce.js',
356 'targets' => array( 'desktop', 'mobile' ),
357 ),
358 'jquery.validate' => array(
359 'scripts' => 'resources/lib/jquery/jquery.validate.js',
360 ),
361 'jquery.xmldom' => array(
362 'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
363 ),
364
365 /* jQuery Tipsy */
366
367 'jquery.tipsy' => array(
368 'scripts' => 'resources/src/jquery.tipsy/jquery.tipsy.js',
369 'styles' => 'resources/src/jquery.tipsy/jquery.tipsy.css',
370 ),
371
372 /* jQuery UI */
373
374 'jquery.ui.core' => array(
375 'scripts' => 'resources/lib/jquery.ui/jquery.ui.core.js',
376 'dependencies' => array(
377 'jquery.ui.core.styles',
378 ),
379 'group' => 'jquery.ui',
380 ),
381 'jquery.ui.core.styles' => array(
382 'position' => 'top',
383 'skinStyles' => array(
384 'default' => array(
385 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.core.css',
386 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.theme.css',
387 ),
388 ),
389 'group' => 'jquery.ui',
390 ),
391 'jquery.ui.accordion' => array(
392 'scripts' => 'resources/lib/jquery.ui/jquery.ui.accordion.js',
393 'dependencies' => array(
394 'jquery.ui.core',
395 'jquery.ui.widget',
396 ),
397 'skinStyles' => array(
398 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.accordion.css',
399 ),
400 'group' => 'jquery.ui',
401 ),
402 'jquery.ui.autocomplete' => array(
403 'scripts' => 'resources/lib/jquery.ui/jquery.ui.autocomplete.js',
404 'dependencies' => array(
405 'jquery.ui.core',
406 'jquery.ui.widget',
407 'jquery.ui.position',
408 'jquery.ui.menu',
409 ),
410 'skinStyles' => array(
411 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.autocomplete.css',
412 ),
413 'group' => 'jquery.ui',
414 ),
415 'jquery.ui.button' => array(
416 'scripts' => 'resources/lib/jquery.ui/jquery.ui.button.js',
417 'dependencies' => array(
418 'jquery.ui.core',
419 'jquery.ui.widget',
420 ),
421 'skinStyles' => array(
422 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.button.css',
423 ),
424 'group' => 'jquery.ui',
425 ),
426 'jquery.ui.datepicker' => array(
427 'scripts' => 'resources/lib/jquery.ui/jquery.ui.datepicker.js',
428 'dependencies' => 'jquery.ui.core',
429 'skinStyles' => array(
430 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.datepicker.css',
431 ),
432 'languageScripts' => array(
433 'af' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js',
434 'ar' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
435 'ar-dz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js',
436 'az' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js',
437 'bg' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
438 'bs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
439 'ca' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
440 'cs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
441 'da' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js',
442 'de' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js',
443 'el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js',
444 'en-au' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js',
445 'en-gb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
446 'en-nz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js',
447 'eo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
448 'es' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js',
449 'et' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js',
450 'eu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
451 'fa' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
452 'fi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
453 'fo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
454 'fr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
455 'fr-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js',
456 'gl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
457 'he' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js',
458 'hi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
459 'hr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
460 'hu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
461 'hy' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
462 'id' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js',
463 'is' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js',
464 'it' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js',
465 'ja' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
466 'ka' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
467 'kk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
468 'km' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js',
469 'ko' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
470 'lb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
471 'lt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
472 'lv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
473 'mk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
474 'ml' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
475 'ms' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
476 'nl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
477 'nl-be' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js',
478 'no' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js',
479 'pl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
480 'pt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
481 'pt-br' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
482 'rm' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
483 'ro' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
484 'ru' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
485 'sk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
486 'sl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
487 'sq' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
488 'sr-sr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
489 'sr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
490 'sv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
491 'ta' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
492 'th' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js',
493 'tj' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js',
494 'tr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
495 'uk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
496 'vi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
497 'zh-cn' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
498 'zh-hk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
499 'zh-tw' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
500 ),
501 'group' => 'jquery.ui',
502 ),
503 'jquery.ui.dialog' => array(
504 'scripts' => 'resources/lib/jquery.ui/jquery.ui.dialog.js',
505 'dependencies' => array(
506 'jquery.ui.core',
507 'jquery.ui.widget',
508 'jquery.ui.button',
509 'jquery.ui.draggable',
510 'jquery.ui.mouse',
511 'jquery.ui.position',
512 'jquery.ui.resizable',
513 ),
514 'skinStyles' => array(
515 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css',
516 ),
517 'group' => 'jquery.ui',
518 ),
519 'jquery.ui.draggable' => array(
520 'scripts' => 'resources/lib/jquery.ui/jquery.ui.draggable.js',
521 'dependencies' => array(
522 'jquery.ui.core',
523 'jquery.ui.mouse',
524 'jquery.ui.widget',
525 ),
526 'group' => 'jquery.ui',
527 ),
528 'jquery.ui.droppable' => array(
529 'scripts' => 'resources/lib/jquery.ui/jquery.ui.droppable.js',
530 'dependencies' => array(
531 'jquery.ui.core',
532 'jquery.ui.mouse',
533 'jquery.ui.widget',
534 'jquery.ui.draggable',
535 ),
536 'group' => 'jquery.ui',
537 ),
538 'jquery.ui.menu' => array(
539 'scripts' => 'resources/lib/jquery.ui/jquery.ui.menu.js',
540 'dependencies' => array(
541 'jquery.ui.core',
542 'jquery.ui.widget',
543 'jquery.ui.position',
544 ),
545 'skinStyles' => array(
546 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.menu.css',
547 ),
548 'group' => 'jquery.ui',
549 ),
550 'jquery.ui.mouse' => array(
551 'scripts' => 'resources/lib/jquery.ui/jquery.ui.mouse.js',
552 'dependencies' => 'jquery.ui.widget',
553 'group' => 'jquery.ui',
554 ),
555 'jquery.ui.position' => array(
556 'scripts' => 'resources/lib/jquery.ui/jquery.ui.position.js',
557 'group' => 'jquery.ui',
558 ),
559 'jquery.ui.progressbar' => array(
560 'scripts' => 'resources/lib/jquery.ui/jquery.ui.progressbar.js',
561 'dependencies' => array(
562 'jquery.ui.core',
563 'jquery.ui.widget',
564 ),
565 'skinStyles' => array(
566 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.progressbar.css',
567 ),
568 'group' => 'jquery.ui',
569 ),
570 'jquery.ui.resizable' => array(
571 'scripts' => 'resources/lib/jquery.ui/jquery.ui.resizable.js',
572 'dependencies' => array(
573 'jquery.ui.core',
574 'jquery.ui.widget',
575 'jquery.ui.mouse',
576 ),
577 'skinStyles' => array(
578 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.resizable.css',
579 ),
580 'group' => 'jquery.ui',
581 ),
582 'jquery.ui.selectable' => array(
583 'scripts' => 'resources/lib/jquery.ui/jquery.ui.selectable.js',
584 'dependencies' => array(
585 'jquery.ui.core',
586 'jquery.ui.widget',
587 'jquery.ui.mouse',
588 ),
589 'skinStyles' => array(
590 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.selectable.css',
591 ),
592 'group' => 'jquery.ui',
593 ),
594 'jquery.ui.slider' => array(
595 'scripts' => 'resources/lib/jquery.ui/jquery.ui.slider.js',
596 'dependencies' => array(
597 'jquery.ui.core',
598 'jquery.ui.widget',
599 'jquery.ui.mouse',
600 ),
601 'skinStyles' => array(
602 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.slider.css',
603 ),
604 'group' => 'jquery.ui',
605 ),
606 'jquery.ui.sortable' => array(
607 'scripts' => 'resources/lib/jquery.ui/jquery.ui.sortable.js',
608 'dependencies' => array(
609 'jquery.ui.core',
610 'jquery.ui.mouse',
611 'jquery.ui.widget',
612 ),
613 'group' => 'jquery.ui',
614 ),
615 'jquery.ui.spinner' => array(
616 'scripts' => 'resources/lib/jquery.ui/jquery.ui.spinner.js',
617 'dependencies' => array(
618 'jquery.ui.core',
619 'jquery.ui.widget',
620 'jquery.ui.button',
621 ),
622 'skinStyles' => array(
623 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.spinner.css',
624 ),
625 'group' => 'jquery.ui',
626 ),
627 'jquery.ui.tabs' => array(
628 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tabs.js',
629 'dependencies' => array(
630 'jquery.ui.core',
631 'jquery.ui.widget',
632 ),
633 'skinStyles' => array(
634 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tabs.css',
635 ),
636 'group' => 'jquery.ui',
637 ),
638 'jquery.ui.tooltip' => array(
639 'scripts' => 'resources/lib/jquery.ui/jquery.ui.tooltip.js',
640 'dependencies' => array(
641 'jquery.ui.core',
642 'jquery.ui.widget',
643 'jquery.ui.position',
644 ),
645 'skinStyles' => array(
646 'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tooltip.css',
647 ),
648 'group' => 'jquery.ui',
649 ),
650 'jquery.ui.widget' => array(
651 'scripts' => 'resources/lib/jquery.ui/jquery.ui.widget.js',
652 'group' => 'jquery.ui',
653 ),
654 // Effects
655 'jquery.effects.core' => array(
656 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect.js',
657 'group' => 'jquery.ui',
658 ),
659 'jquery.effects.blind' => array(
660 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-blind.js',
661 'dependencies' => 'jquery.effects.core',
662 'group' => 'jquery.ui',
663 ),
664 'jquery.effects.bounce' => array(
665 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-bounce.js',
666 'dependencies' => 'jquery.effects.core',
667 'group' => 'jquery.ui',
668 ),
669 'jquery.effects.clip' => array(
670 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-clip.js',
671 'dependencies' => 'jquery.effects.core',
672 'group' => 'jquery.ui',
673 ),
674 'jquery.effects.drop' => array(
675 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-drop.js',
676 'dependencies' => 'jquery.effects.core',
677 'group' => 'jquery.ui',
678 ),
679 'jquery.effects.explode' => array(
680 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-explode.js',
681 'dependencies' => 'jquery.effects.core',
682 'group' => 'jquery.ui',
683 ),
684 'jquery.effects.fade' => array(
685 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fade.js',
686 'dependencies' => 'jquery.effects.core',
687 'group' => 'jquery.ui',
688 ),
689 'jquery.effects.fold' => array(
690 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fold.js',
691 'dependencies' => 'jquery.effects.core',
692 'group' => 'jquery.ui',
693 ),
694 'jquery.effects.highlight' => array(
695 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-highlight.js',
696 'dependencies' => 'jquery.effects.core',
697 'group' => 'jquery.ui',
698 ),
699 'jquery.effects.pulsate' => array(
700 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-pulsate.js',
701 'dependencies' => 'jquery.effects.core',
702 'group' => 'jquery.ui',
703 ),
704 'jquery.effects.scale' => array(
705 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-scale.js',
706 'dependencies' => 'jquery.effects.core',
707 'group' => 'jquery.ui',
708 ),
709 'jquery.effects.shake' => array(
710 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-shake.js',
711 'dependencies' => 'jquery.effects.core',
712 'group' => 'jquery.ui',
713 ),
714 'jquery.effects.slide' => array(
715 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-slide.js',
716 'dependencies' => 'jquery.effects.core',
717 'group' => 'jquery.ui',
718 ),
719 'jquery.effects.transfer' => array(
720 'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-transfer.js',
721 'dependencies' => 'jquery.effects.core',
722 'group' => 'jquery.ui',
723 ),
724
725 /* json2 */
726
727 'json' => array(
728 'scripts' => 'resources/lib/json2/json2.js',
729 'targets' => array( 'desktop', 'mobile' ),
730 'skipFunction' => 'resources/src/json-skip.js',
731 ),
732
733 /* Moment.js */
734
735 'moment' => array(
736 'scripts' => array(
737 'resources/lib/moment/moment.js',
738 'resources/src/moment-local-dmy.js',
739 ),
740 'languageScripts' => array(
741 'af' => 'resources/lib/moment/locale/af.js',
742 'ar' => 'resources/lib/moment/locale/ar.js',
743 'ar-ma' => 'resources/lib/moment/locale/ar-ma.js',
744 'ar-sa' => 'resources/lib/moment/locale/ar-sa.js',
745 'az' => 'resources/lib/moment/locale/az.js',
746 'be' => 'resources/lib/moment/locale/be.js',
747 'bg' => 'resources/lib/moment/locale/bg.js',
748 'bn' => 'resources/lib/moment/locale/bn.js',
749 'bo' => 'resources/lib/moment/locale/bo.js',
750 'br' => 'resources/lib/moment/locale/br.js',
751 'bs' => 'resources/lib/moment/locale/bs.js',
752 'ca' => 'resources/lib/moment/locale/ca.js',
753 'cs' => 'resources/lib/moment/locale/cs.js',
754 'cv' => 'resources/lib/moment/locale/cv.js',
755 'cy' => 'resources/lib/moment/locale/cy.js',
756 'da' => 'resources/lib/moment/locale/da.js',
757 'de' => 'resources/lib/moment/locale/de.js',
758 'de-at' => 'resources/lib/moment/locale/de-at.js',
759 'el' => 'resources/lib/moment/locale/el.js',
760 'en-au' => 'resources/lib/moment/locale/en-au.js',
761 'en-ca' => 'resources/lib/moment/locale/en-ca.js',
762 'en-gb' => 'resources/lib/moment/locale/en-gb.js',
763 'eo' => 'resources/lib/moment/locale/eo.js',
764 'es' => 'resources/lib/moment/locale/es.js',
765 'et' => 'resources/lib/moment/locale/et.js',
766 'eu' => 'resources/lib/moment/locale/eu.js',
767 'fa' => 'resources/lib/moment/locale/fa.js',
768 'fi' => 'resources/lib/moment/locale/fi.js',
769 'fo' => 'resources/lib/moment/locale/fo.js',
770 'fr-ca' => 'resources/lib/moment/locale/fr-ca.js',
771 'fr' => 'resources/lib/moment/locale/fr.js',
772 'gl' => 'resources/lib/moment/locale/gl.js',
773 'he' => 'resources/lib/moment/locale/he.js',
774 'hi' => 'resources/lib/moment/locale/hi.js',
775 'hr' => 'resources/lib/moment/locale/hr.js',
776 'hu' => 'resources/lib/moment/locale/hu.js',
777 'hy-am' => 'resources/lib/moment/locale/hy-am.js',
778 'id' => 'resources/lib/moment/locale/id.js',
779 'is' => 'resources/lib/moment/locale/is.js',
780 'it' => 'resources/lib/moment/locale/it.js',
781 'ja' => 'resources/lib/moment/locale/ja.js',
782 'ka' => 'resources/lib/moment/locale/ka.js',
783 'ko' => 'resources/lib/moment/locale/ko.js',
784 'lt' => 'resources/lib/moment/locale/lt.js',
785 'lv' => 'resources/lib/moment/locale/lv.js',
786 'mk' => 'resources/lib/moment/locale/mk.js',
787 'ml' => 'resources/lib/moment/locale/ml.js',
788 'mr' => 'resources/lib/moment/locale/mr.js',
789 'ms-my' => 'resources/lib/moment/locale/ms-my.js',
790 'my' => 'resources/lib/moment/locale/my.js',
791 'nb' => 'resources/lib/moment/locale/nb.js',
792 'ne' => 'resources/lib/moment/locale/ne.js',
793 'nl' => 'resources/lib/moment/locale/nl.js',
794 'nn' => 'resources/lib/moment/locale/nn.js',
795 'pl' => 'resources/lib/moment/locale/pl.js',
796 'pt-br' => 'resources/lib/moment/locale/pt-br.js',
797 'pt' => 'resources/lib/moment/locale/pt.js',
798 'ro' => 'resources/lib/moment/locale/ro.js',
799 'ru' => 'resources/lib/moment/locale/ru.js',
800 'sk' => 'resources/lib/moment/locale/sk.js',
801 'sl' => 'resources/lib/moment/locale/sl.js',
802 'sq' => 'resources/lib/moment/locale/sq.js',
803 'sr' => 'resources/lib/moment/locale/sr.js',
804 'sr-ec' => 'resources/lib/moment/locale/sr-cyrl.js',
805 'sv' => 'resources/lib/moment/locale/sv.js',
806 'ta' => 'resources/lib/moment/locale/ta.js',
807 'th' => 'resources/lib/moment/locale/th.js',
808 'tl-ph' => 'resources/lib/moment/locale/tl-ph.js',
809 'tr' => 'resources/lib/moment/locale/tr.js',
810 'tzm' => 'resources/lib/moment/locale/tzm.js',
811 'tzm-latn' => 'resources/lib/moment/locale/tzm-latn.js',
812 'uk' => 'resources/lib/moment/locale/uk.js',
813 'uz' => 'resources/lib/moment/locale/uz.js',
814 'vi' => 'resources/lib/moment/locale/vi.js',
815 'zh-cn' => 'resources/lib/moment/locale/zh-cn.js',
816 'zh-tw' => 'resources/lib/moment/locale/zh-tw.js',
817 ),
818 'targets' => array( 'desktop', 'mobile' ),
819 ),
820
821 /* MediaWiki */
822
823 'mediawiki' => array(
824 'class' => 'ResourceLoaderRawFileModule',
825 // Keep in sync with maintenance/jsduck/eg-iframe.html
826 'scripts' => array(
827 'resources/lib/phpjs-sha1/sha1.js',
828 'resources/src/mediawiki/mediawiki.js',
829 'resources/src/mediawiki/mediawiki.errorLogger.js',
830 ),
831 'debugScripts' => 'resources/src/mediawiki/mediawiki.log.js',
832 'targets' => array( 'desktop', 'mobile' ),
833 ),
834 'mediawiki.apihelp' => array(
835 'styles' => 'resources/src/mediawiki/mediawiki.apihelp.css',
836 'targets' => array( 'desktop' ),
837 'dependencies' => 'mediawiki.hlist',
838 'position' => 'top',
839 ),
840 'mediawiki.template' => array(
841 'scripts' => 'resources/src/mediawiki/mediawiki.template.js',
842 'targets' => array( 'desktop', 'mobile' ),
843 ),
844 'mediawiki.template.mustache' => array(
845 'scripts' => array(
846 'resources/lib/mustache/mustache.js',
847 'resources/src/mediawiki/mediawiki.template.mustache.js',
848 ),
849 'targets' => array( 'desktop', 'mobile' ),
850 ),
851 'mediawiki.apipretty' => array(
852 'styles' => 'resources/src/mediawiki/mediawiki.apipretty.css',
853 'targets' => array( 'desktop', 'mobile' ),
854 'position' => 'top',
855 ),
856 'mediawiki.api' => array(
857 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.js',
858 'dependencies' => array(
859 'mediawiki.util',
860 'user.tokens',
861 ),
862 'targets' => array( 'desktop', 'mobile' ),
863 ),
864 'mediawiki.api.category' => array(
865 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.category.js',
866 'dependencies' => array(
867 'mediawiki.api',
868 'mediawiki.Title',
869 ),
870 ),
871 'mediawiki.api.edit' => array(
872 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.edit.js',
873 'dependencies' => array(
874 'mediawiki.api',
875 'mediawiki.Title',
876 ),
877 'targets' => array( 'desktop', 'mobile' ),
878 ),
879 'mediawiki.api.login' => array(
880 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.login.js',
881 'dependencies' => 'mediawiki.api',
882 ),
883 'mediawiki.api.options' => array(
884 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.options.js',
885 'dependencies' => 'mediawiki.api',
886 'targets' => array( 'desktop', 'mobile' ),
887 ),
888 'mediawiki.api.parse' => array(
889 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.parse.js',
890 'dependencies' => 'mediawiki.api',
891 'targets' => array( 'desktop', 'mobile' ),
892 ),
893 'mediawiki.api.upload' => array(
894 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.upload.js',
895 'dependencies' => array(
896 'dom-level2-shim',
897 'mediawiki.api',
898 'mediawiki.api.edit',
899 'json',
900 ),
901 ),
902 'mediawiki.api.watch' => array(
903 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.watch.js',
904 'dependencies' => array(
905 'mediawiki.api',
906 ),
907 ),
908 'mediawiki.content.json' => array(
909 'position' => 'top',
910 'styles' => 'resources/src/mediawiki/mediawiki.content.json.css',
911 ),
912 'mediawiki.confirmCloseWindow' => array(
913 'scripts' => array(
914 'resources/src/mediawiki/mediawiki.confirmCloseWindow.js',
915 ),
916 'targets' => array( 'desktop', 'mobile' ),
917 ),
918 'mediawiki.debug' => array(
919 'scripts' => array(
920 'resources/src/mediawiki/mediawiki.debug.js',
921 ),
922 'styles' => array(
923 'resources/src/mediawiki/mediawiki.debug.less',
924 ),
925 'dependencies' => array(
926 'jquery.footHovzer',
927 'jquery.tipsy',
928 ),
929 'position' => 'bottom',
930 ),
931 'mediawiki.debug.init' => array(
932 'scripts' => 'resources/src/mediawiki/mediawiki.debug.init.js',
933 'dependencies' => 'mediawiki.debug',
934 // Uses a custom mw.config variable that is set in debughtml,
935 // must be loaded on the bottom
936 'position' => 'bottom',
937 ),
938 'mediawiki.feedback' => array(
939 'scripts' => 'resources/src/mediawiki/mediawiki.feedback.js',
940 'styles' => 'resources/src/mediawiki/mediawiki.feedback.css',
941 'dependencies' => array(
942 'mediawiki.messagePoster',
943 'mediawiki.Title',
944 'oojs-ui',
945 ),
946 'messages' => array(
947 'feedback-adding',
948 'feedback-back',
949 'feedback-bugcheck',
950 'feedback-dialog-intro',
951 'feedback-external-bug-report-button',
952 'feedback-bugnew',
953 'feedback-bugornote',
954 'feedback-cancel',
955 'feedback-close',
956 'feedback-dialog-title',
957 'feedback-error-title',
958 'feedback-error1',
959 'feedback-error2',
960 'feedback-error3',
961 'feedback-error4',
962 'feedback-message',
963 'feedback-subject',
964 'feedback-submit',
965 'feedback-terms',
966 'feedback-termsofuse',
967 'feedback-thanks',
968 'feedback-thanks-title',
969 'feedback-useragent'
970 ),
971 ),
972 'mediawiki.feedlink' => array(
973 'position' => 'top',
974 'styles' => 'resources/src/mediawiki/mediawiki.feedlink.css',
975 ),
976 'mediawiki.filewarning' => array(
977 'scripts' => 'resources/src/mediawiki/mediawiki.filewarning.js',
978 'styles' => 'resources/src/mediawiki/mediawiki.filewarning.less',
979 'dependencies' => array(
980 'oojs-ui',
981 ),
982 ),
983 'mediawiki.ForeignApi' => array(
984 'targets' => array( 'desktop', 'mobile' ),
985 'class' => 'ResourceLoaderForeignApiModule',
986 // Additional dependencies generated dynamically
987 'dependencies' => 'mediawiki.ForeignApi.core',
988 ),
989 'mediawiki.ForeignApi.core' => array(
990 'scripts' => 'resources/src/mediawiki.api/mediawiki.ForeignApi.js',
991 'dependencies' => array(
992 'mediawiki.api',
993 'oojs',
994 ),
995 'targets' => array( 'desktop', 'mobile' ),
996 ),
997 'mediawiki.helplink' => array(
998 'position' => 'top',
999 'styles' => array(
1000 'resources/src/mediawiki/mediawiki.helplink.less',
1001 ),
1002 'targets' => array( 'desktop', 'mobile' ),
1003 ),
1004 'mediawiki.hidpi' => array(
1005 'scripts' => 'resources/src/mediawiki/mediawiki.hidpi.js',
1006 'dependencies' => 'jquery.hidpi',
1007 'skipFunction' => 'resources/src/mediawiki.hidpi-skip.js',
1008 'targets' => array( 'desktop', 'mobile' ),
1009 ),
1010 'mediawiki.hlist' => array(
1011 'styles' => 'resources/src/mediawiki/mediawiki.hlist.css',
1012 'scripts' => 'resources/src/mediawiki/mediawiki.hlist.js',
1013 'dependencies' => 'jquery.client',
1014 ),
1015 'mediawiki.htmlform' => array(
1016 'scripts' => 'resources/src/mediawiki/mediawiki.htmlform.js',
1017 'dependencies' => array(
1018 'mediawiki.RegExp',
1019 'jquery.byteLimit',
1020 ),
1021 'messages' => array(
1022 'htmlform-chosen-placeholder',
1023 // @todo Load this message in content language
1024 'colon-separator',
1025 ),
1026 ),
1027 'mediawiki.htmlform.ooui.styles' => array(
1028 'styles' => 'resources/src/mediawiki/mediawiki.htmlform.ooui.css',
1029 'position' => 'top',
1030 ),
1031 'mediawiki.icon' => array(
1032 'styles' => 'resources/src/mediawiki/mediawiki.icon.less',
1033 ),
1034 'mediawiki.inspect' => array(
1035 'scripts' => 'resources/src/mediawiki/mediawiki.inspect.js',
1036 'dependencies' => array(
1037 'jquery.byteLength',
1038 'mediawiki.RegExp',
1039 'json',
1040 ),
1041 'targets' => array( 'desktop', 'mobile' ),
1042 ),
1043 'mediawiki.messagePoster' => array(
1044 'scripts' => array(
1045 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.factory.js',
1046 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.MessagePoster.js',
1047 ),
1048 'dependencies' => array(
1049 'oojs',
1050 'mediawiki.api',
1051 ),
1052 'targets' => array( 'desktop', 'mobile' ),
1053 ),
1054 'mediawiki.messagePoster.wikitext' => array(
1055 'scripts' => array(
1056 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.WikitextMessagePoster.js',
1057 ),
1058 'dependencies' => array(
1059 'mediawiki.api.edit',
1060 'mediawiki.messagePoster',
1061 ),
1062 'targets' => array( 'desktop', 'mobile' ),
1063 ),
1064 'mediawiki.notification' => array(
1065 'styles' => array(
1066 'resources/src/mediawiki/mediawiki.notification.common.css',
1067 'resources/src/mediawiki/mediawiki.notification.hideForPrint.css'
1068 => array( 'media' => 'print' ),
1069 ),
1070 'skinStyles' => array(
1071 'default' => 'resources/src/mediawiki/mediawiki.notification.css',
1072 ),
1073 'scripts' => 'resources/src/mediawiki/mediawiki.notification.js',
1074 'dependencies' => 'mediawiki.page.startup',
1075 'targets' => array( 'desktop', 'mobile' ),
1076 ),
1077 'mediawiki.notify' => array(
1078 'scripts' => 'resources/src/mediawiki/mediawiki.notify.js',
1079 'targets' => array( 'desktop', 'mobile' ),
1080 ),
1081 'mediawiki.RegExp' => array(
1082 'scripts' => 'resources/src/mediawiki/mediawiki.RegExp.js',
1083 'targets' => array( 'desktop', 'mobile' ),
1084 ),
1085 'mediawiki.pager.tablePager' => array(
1086 'styles' => 'resources/src/mediawiki/mediawiki.pager.tablePager.less',
1087 'position' => 'top',
1088 ),
1089 'mediawiki.searchSuggest' => array(
1090 'scripts' => 'resources/src/mediawiki/mediawiki.searchSuggest.js',
1091 'styles' => 'resources/src/mediawiki/mediawiki.searchSuggest.css',
1092 'messages' => array(
1093 'searchsuggest-search',
1094 'searchsuggest-containing',
1095 ),
1096 'dependencies' => array(
1097 'jquery.client',
1098 'jquery.placeholder',
1099 'jquery.suggestions',
1100 'jquery.getAttrs',
1101 'mediawiki.api',
1102 ),
1103 ),
1104 'mediawiki.sectionAnchor' => array(
1105 'position' => 'top',
1106 // Back-compat to hide it on cached pages (T18691; Ie9e334e973; 2015-03-17)
1107 'styles' => 'resources/src/mediawiki/mediawiki.sectionAnchor.css',
1108 'targets' => array( 'desktop', 'mobile' ),
1109 ),
1110 'mediawiki.storage' => array(
1111 'scripts' => 'resources/src/mediawiki/mediawiki.storage.js',
1112 'targets' => array( 'desktop', 'mobile' ),
1113 ),
1114 'mediawiki.Title' => array(
1115 'scripts' => 'resources/src/mediawiki/mediawiki.Title.js',
1116 'dependencies' => array(
1117 'jquery.byteLength',
1118 'mediawiki.util',
1119 ),
1120 'targets' => array( 'desktop', 'mobile' ),
1121 ),
1122 'mediawiki.Upload' => array(
1123 'scripts' => 'resources/src/mediawiki/mediawiki.Upload.js',
1124 'dependencies' => array(
1125 'dom-level2-shim',
1126 'mediawiki.api.upload',
1127 ),
1128 ),
1129 'mediawiki.ForeignUpload' => array(
1130 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignUpload.js',
1131 'dependencies' => array(
1132 'mediawiki.ForeignApi',
1133 'mediawiki.Upload',
1134 'oojs',
1135 ),
1136 ),
1137 'mediawiki.ForeignStructuredUpload' => array(
1138 'scripts' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js',
1139 'dependencies' => array(
1140 'mediawiki.ForeignUpload',
1141 ),
1142 ),
1143 'mediawiki.Upload.Dialog' => array(
1144 'scripts' => 'resources/src/mediawiki/mediawiki.Upload.Dialog.js',
1145 'dependencies' => array(
1146 'oojs-ui',
1147 'mediawiki.Upload',
1148 ),
1149 'messages' => array(
1150 'upload-dialog-title',
1151 'upload-dialog-error',
1152 'upload-dialog-warning',
1153 'upload-dialog-button-cancel',
1154 'upload-dialog-button-done',
1155 'upload-dialog-button-save',
1156 'upload-dialog-button-upload',
1157 'upload-dialog-label-select-file',
1158 'upload-dialog-label-infoform-title',
1159 'upload-dialog-label-infoform-name',
1160 'upload-dialog-label-infoform-description',
1161 'upload-dialog-label-usage-title',
1162 'upload-dialog-label-usage-filename',
1163 ),
1164 ),
1165 'mediawiki.toc' => array(
1166 'scripts' => 'resources/src/mediawiki/mediawiki.toc.js',
1167 'dependencies' => 'mediawiki.cookie',
1168 'messages' => array( 'showtoc', 'hidetoc' ),
1169 'targets' => array( 'desktop', 'mobile' ),
1170 ),
1171 'mediawiki.Uri' => array(
1172 'scripts' => 'resources/src/mediawiki/mediawiki.Uri.js',
1173 'dependencies' => 'mediawiki.util',
1174 'targets' => array( 'desktop', 'mobile' ),
1175 ),
1176 'mediawiki.user' => array(
1177 'scripts' => 'resources/src/mediawiki/mediawiki.user.js',
1178 'dependencies' => array(
1179 'mediawiki.cookie',
1180 'mediawiki.api',
1181 'user.options',
1182 'user.tokens',
1183 ),
1184 'targets' => array( 'desktop', 'mobile' ),
1185 ),
1186 'mediawiki.userSuggest' => array(
1187 'scripts' => 'resources/src/mediawiki/mediawiki.userSuggest.js',
1188 'dependencies' => array(
1189 'jquery.suggestions',
1190 'mediawiki.api'
1191 )
1192 ),
1193 'mediawiki.util' => array(
1194 'scripts' => 'resources/src/mediawiki/mediawiki.util.js',
1195 'dependencies' => array(
1196 'jquery.accessKeyLabel',
1197 'mediawiki.RegExp',
1198 'mediawiki.notify',
1199 ),
1200 'position' => 'top', // For $wgPreloadJavaScriptMwUtil
1201 'targets' => array( 'desktop', 'mobile' ),
1202 ),
1203 'mediawiki.cookie' => array(
1204 'scripts' => 'resources/src/mediawiki/mediawiki.cookie.js',
1205 'dependencies' => 'jquery.cookie',
1206 'targets' => array( 'desktop', 'mobile' ),
1207 ),
1208 'mediawiki.toolbar' => array(
1209 'class' => 'ResourceLoaderEditToolbarModule',
1210 'scripts' => 'resources/src/mediawiki.toolbar/toolbar.js',
1211 'styles' => 'resources/src/mediawiki.toolbar/toolbar.less',
1212 'position' => 'top',
1213 ),
1214 'mediawiki.experiments' => array(
1215 'scripts' => 'resources/src/mediawiki/mediawiki.experiments.js',
1216 'targets' => array( 'desktop', 'mobile' ),
1217 ),
1218
1219 /* MediaWiki Action */
1220
1221 'mediawiki.action.edit' => array(
1222 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.js',
1223 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.css',
1224 'dependencies' => array(
1225 'mediawiki.action.edit.styles',
1226 'jquery.textSelection',
1227 'jquery.byteLimit',
1228 ),
1229 'position' => 'top',
1230 ),
1231 'mediawiki.action.edit.styles' => array(
1232 'position' => 'top',
1233 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.styles.css',
1234 ),
1235 'mediawiki.action.edit.collapsibleFooter' => array(
1236 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
1237 'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
1238 'dependencies' => array(
1239 'jquery.makeCollapsible',
1240 'mediawiki.cookie',
1241 'mediawiki.icon',
1242 ),
1243 ),
1244 'mediawiki.action.edit.preview' => array(
1245 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.js',
1246 'dependencies' => array(
1247 'jquery.form',
1248 'jquery.spinner',
1249 'jquery.textSelection',
1250 'mediawiki.api',
1251 'mediawiki.action.history.diff',
1252 'mediawiki.util',
1253 'mediawiki.jqueryMsg',
1254 ),
1255 'messages' => array(
1256 // Keep the uses message keys in sync with EditPage#setHeaders
1257 'creating',
1258 'editconflict',
1259 'editing',
1260 'editingcomment',
1261 'editingsection',
1262 'pagetitle',
1263 'otherlanguages',
1264 'tooltip-p-lang',
1265 'summary-preview',
1266 'subject-preview',
1267 'parentheses',
1268 'previewerrortext',
1269 ),
1270 ),
1271 'mediawiki.action.edit.stash' => array(
1272 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.stash.js',
1273 'dependencies' => array(
1274 'jquery.getAttrs',
1275 'mediawiki.api',
1276 ),
1277 ),
1278 'mediawiki.action.history' => array(
1279 'position' => 'top',
1280 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
1281 'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
1282 ),
1283 'mediawiki.action.history.diff' => array(
1284 'position' => 'top',
1285 'styles' => array(
1286 'resources/src/mediawiki.action/mediawiki.action.history.diff.css',
1287 'resources/src/mediawiki.action/mediawiki.action.history.diff.print.css' => array(
1288 'media' => 'print'
1289 ),
1290 ),
1291 'targets' => array( 'desktop', 'mobile' ),
1292 ),
1293 'mediawiki.action.view.dblClickEdit' => array(
1294 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
1295 'dependencies' => array(
1296 'mediawiki.util',
1297 'mediawiki.page.startup',
1298 'user.options',
1299 ),
1300 ),
1301 'mediawiki.action.view.metadata' => array(
1302 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.css',
1303 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.js',
1304 'messages' => array(
1305 'metadata-expand',
1306 'metadata-collapse',
1307 ),
1308 ),
1309 'mediawiki.action.view.categoryPage.styles' => array(
1310 'position' => 'top',
1311 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less',
1312 'targets' => array( 'desktop', 'mobile' )
1313 ),
1314 'mediawiki.action.view.postEdit' => array(
1315 'templates' => array(
1316 'postEdit.html' => 'resources/src/mediawiki.action/templates/postEdit.html',
1317 ),
1318 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.js',
1319 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.css',
1320 'dependencies' => array(
1321 'mediawiki.cookie',
1322 'mediawiki.jqueryMsg'
1323 ),
1324 'messages' => array(
1325 'postedit-confirmation-created',
1326 'postedit-confirmation-restored',
1327 'postedit-confirmation-saved',
1328 ),
1329 ),
1330 'mediawiki.action.view.redirect' => array(
1331 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.redirect.js',
1332 'dependencies' => 'jquery.client',
1333 'position' => 'top',
1334 ),
1335 'mediawiki.action.view.redirectPage' => array(
1336 'position' => 'top',
1337 'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css',
1338 ),
1339 'mediawiki.action.view.rightClickEdit' => array(
1340 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
1341 ),
1342 'mediawiki.action.edit.editWarning' => array(
1343 'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js',
1344 'dependencies' => array(
1345 'jquery.textSelection',
1346 'mediawiki.jqueryMsg',
1347 'mediawiki.confirmCloseWindow',
1348 'user.options',
1349 ),
1350 'messages' => array(
1351 'editwarning-warning',
1352 // editwarning-warning uses {{int:prefs-editing}}
1353 'prefs-editing'
1354 ),
1355 ),
1356
1357 /* MediaWiki Language */
1358
1359 'mediawiki.language' => array(
1360 'scripts' => array(
1361 'resources/src/mediawiki.language/mediawiki.language.js',
1362 'resources/src/mediawiki.language/mediawiki.language.numbers.js',
1363 'resources/src/mediawiki.language/mediawiki.language.fallback.js',
1364 ),
1365 'languageScripts' => array(
1366 'bs' => 'resources/src/mediawiki.language/languages/bs.js',
1367 'dsb' => 'resources/src/mediawiki.language/languages/dsb.js',
1368 'fi' => 'resources/src/mediawiki.language/languages/fi.js',
1369 'ga' => 'resources/src/mediawiki.language/languages/ga.js',
1370 'he' => 'resources/src/mediawiki.language/languages/he.js',
1371 'hsb' => 'resources/src/mediawiki.language/languages/hsb.js',
1372 'hu' => 'resources/src/mediawiki.language/languages/hu.js',
1373 'hy' => 'resources/src/mediawiki.language/languages/hy.js',
1374 'la' => 'resources/src/mediawiki.language/languages/la.js',
1375 'os' => 'resources/src/mediawiki.language/languages/os.js',
1376 'ru' => 'resources/src/mediawiki.language/languages/ru.js',
1377 'sl' => 'resources/src/mediawiki.language/languages/sl.js',
1378 'uk' => 'resources/src/mediawiki.language/languages/uk.js',
1379 ),
1380 'dependencies' => array(
1381 'mediawiki.language.data',
1382 'mediawiki.cldr',
1383 ),
1384 'targets' => array( 'desktop', 'mobile' ),
1385 'messages' => array(
1386 'and',
1387 'comma-separator',
1388 'word-separator'
1389 ),
1390 ),
1391
1392 'mediawiki.cldr' => array(
1393 'scripts' => 'resources/src/mediawiki.language/mediawiki.cldr.js',
1394 'dependencies' => array(
1395 'mediawiki.libs.pluralruleparser',
1396 ),
1397 'targets' => array( 'desktop', 'mobile' ),
1398 ),
1399
1400 'mediawiki.libs.pluralruleparser' => array(
1401 'scripts' => 'resources/src/mediawiki.libs/CLDRPluralRuleParser.js',
1402 'targets' => array( 'desktop', 'mobile' ),
1403 ),
1404
1405 'mediawiki.language.init' => array(
1406 'scripts' => 'resources/src/mediawiki.language/mediawiki.language.init.js',
1407 'targets' => array( 'desktop', 'mobile' ),
1408 ),
1409
1410 'mediawiki.jqueryMsg' => array(
1411 // Add data for mediawiki.jqueryMsg, such as allowed tags
1412 'class' => 'ResourceLoaderJqueryMsgModule',
1413 'scripts' => 'resources/src/mediawiki/mediawiki.jqueryMsg.js',
1414 'dependencies' => array(
1415 'mediawiki.util',
1416 'mediawiki.language',
1417 'user.options',
1418 'dom-level2-shim',
1419 ),
1420 'targets' => array( 'desktop', 'mobile' ),
1421 ),
1422
1423 'mediawiki.language.months' => array(
1424 'scripts' => 'resources/src/mediawiki.language/mediawiki.language.months.js',
1425 'dependencies' => 'mediawiki.language',
1426 'messages' => array_merge(
1427 Language::$mMonthMsgs,
1428 Language::$mMonthGenMsgs,
1429 Language::$mMonthAbbrevMsgs
1430 )
1431 ),
1432
1433 'mediawiki.language.names' => array( 'class' => 'ResourceLoaderLanguageNamesModule' ),
1434
1435 'mediawiki.language.specialCharacters' => array(
1436 'class' => 'ResourceLoaderSpecialCharacterDataModule'
1437 ),
1438
1439 /* MediaWiki Libs */
1440
1441 'mediawiki.libs.jpegmeta' => array(
1442 'scripts' => 'resources/src/mediawiki.libs/mediawiki.libs.jpegmeta.js',
1443 ),
1444
1445 /* MediaWiki Page */
1446
1447 'mediawiki.page.gallery' => array(
1448 'scripts' => 'resources/src/mediawiki.page/mediawiki.page.gallery.js',
1449 'dependencies' => array(
1450 'mediawiki.page.gallery.styles',
1451 'jquery.throttle-debounce',
1452 )
1453 ),
1454 'mediawiki.page.gallery.styles' => array(
1455 'styles' => array(
1456 'resources/src/mediawiki.page/mediawiki.page.gallery.print.css' => array( 'media' => 'print' ),
1457 'resources/src/mediawiki.page/mediawiki.page.gallery.css',
1458 ),
1459 'position' => 'top',
1460 'targets' => array( 'desktop', 'mobile' ),
1461 ),
1462 'mediawiki.page.ready' => array(
1463 'scripts' => 'resources/src/mediawiki.page/mediawiki.page.ready.js',
1464 'dependencies' => array(
1465 'jquery.accessKeyLabel',
1466 'jquery.checkboxShiftClick',
1467 'jquery.makeCollapsible',
1468 'jquery.placeholder',
1469 'jquery.mw-jump',
1470 ),
1471 'targets' => array( 'desktop', 'mobile' ),
1472 ),
1473 'mediawiki.page.startup' => array(
1474 'scripts' => 'resources/src/mediawiki.page/mediawiki.page.startup.js',
1475 'dependencies' => 'mediawiki.util',
1476 'position' => 'top',
1477 'targets' => array( 'desktop', 'mobile' ),
1478 ),
1479 'mediawiki.page.patrol.ajax' => array(
1480 'scripts' => 'resources/src/mediawiki.page/mediawiki.page.patrol.ajax.js',
1481 'dependencies' => array(
1482 'mediawiki.page.startup',
1483 'mediawiki.api',
1484 'mediawiki.util',
1485 'mediawiki.Title',
1486 'mediawiki.notify',
1487 'jquery.spinner',
1488 'user.tokens'
1489 ),
1490 'messages' => array(
1491 'markedaspatrollednotify',
1492 'markedaspatrollederrornotify',
1493 'markedaspatrollederror-noautopatrol'
1494 ),
1495 ),
1496 'mediawiki.page.watch.ajax' => array(
1497 'scripts' => 'resources/src/mediawiki.page/mediawiki.page.watch.ajax.js',
1498 'dependencies' => array(
1499 'mediawiki.api.watch',
1500 'mediawiki.notify',
1501 'mediawiki.page.startup',
1502 'mediawiki.util',
1503 'jquery.accessKeyLabel',
1504 'mediawiki.RegExp',
1505 ),
1506 'messages' => array(
1507 'watch',
1508 'unwatch',
1509 'watching',
1510 'unwatching',
1511 'tooltip-ca-watch',
1512 'tooltip-ca-unwatch',
1513 'watcherrortext',
1514 ),
1515 ),
1516 'mediawiki.page.image.pagination' => array(
1517 'scripts' => 'resources/src/mediawiki.page/mediawiki.page.image.pagination.js',
1518 'dependencies' => array(
1519 'mediawiki.Uri',
1520 'mediawiki.util',
1521 'jquery.spinner',
1522 ),
1523 ),
1524
1525 /* MediaWiki Special pages */
1526
1527 'mediawiki.special' => array(
1528 'position' => 'top',
1529 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.js',
1530 'styles' => 'resources/src/mediawiki.special/mediawiki.special.css',
1531 ),
1532 'mediawiki.special.block' => array(
1533 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.block.js',
1534 'styles' => 'resources/src/mediawiki.special/mediawiki.special.block.css',
1535 'dependencies' => 'mediawiki.util',
1536 ),
1537 'mediawiki.special.changeemail' => array(
1538 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeemail.js',
1539 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeemail.css',
1540 'dependencies' => 'mediawiki.util',
1541 'messages' => array(
1542 'email-address-validity-valid',
1543 'email-address-validity-invalid',
1544 ),
1545 ),
1546 'mediawiki.special.changeslist' => array(
1547 'position' => 'top',
1548 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.css',
1549 ),
1550 'mediawiki.special.changeslist.legend' => array(
1551 'position' => 'top',
1552 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.css',
1553 ),
1554 'mediawiki.special.changeslist.legend.js' => array(
1555 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js',
1556 'dependencies' => array(
1557 'jquery.makeCollapsible',
1558 'mediawiki.cookie',
1559 ),
1560 ),
1561 'mediawiki.special.changeslist.enhanced' => array(
1562 'position' => 'top',
1563 'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.enhanced.css',
1564 ),
1565 'mediawiki.special.edittags' => array(
1566 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.edittags.js',
1567 'dependencies' => array(
1568 'jquery.chosen',
1569 ),
1570 'messages' => array(
1571 'tags-edit-chosen-placeholder',
1572 'tags-edit-chosen-no-results',
1573 ),
1574 ),
1575 'mediawiki.special.edittags.styles' => array(
1576 'styles' => 'resources/src/mediawiki.special/mediawiki.special.edittags.css',
1577 'position' => 'top',
1578 ),
1579 'mediawiki.special.import' => array(
1580 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.import.js',
1581 ),
1582 'mediawiki.special.movePage' => array(
1583 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.movePage.js',
1584 'dependencies' => 'jquery.byteLimit',
1585 ),
1586 'mediawiki.special.pageLanguage' => array(
1587 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.pageLanguage.js',
1588 ),
1589 'mediawiki.special.pagesWithProp' => array(
1590 'position' => 'top',
1591 'styles' => 'resources/src/mediawiki.special/mediawiki.special.pagesWithProp.css',
1592 ),
1593 'mediawiki.special.preferences' => array(
1594 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.preferences.js',
1595 'styles' => 'resources/src/mediawiki.special/mediawiki.special.preferences.css',
1596 'position' => 'top',
1597 'messages' => array(
1598 'prefs-tabs-navigation-hint',
1599 'prefswarning-warning',
1600 'saveprefs',
1601 'savedprefs',
1602 ),
1603 'dependencies' => array(
1604 'mediawiki.language',
1605 'mediawiki.confirmCloseWindow',
1606 'mediawiki.notification',
1607 ),
1608 ),
1609 'mediawiki.special.recentchanges' => array(
1610 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.recentchanges.js',
1611 'dependencies' => 'mediawiki.special',
1612 'position' => 'top',
1613 ),
1614 'mediawiki.special.search' => array(
1615 'position' => 'top',
1616 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.search.js',
1617 'styles' => 'resources/src/mediawiki.special/mediawiki.special.search.css',
1618 'messages' => array(
1619 'powersearch-togglelabel',
1620 'powersearch-toggleall',
1621 'powersearch-togglenone',
1622 ),
1623 ),
1624 'mediawiki.special.undelete' => array(
1625 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.undelete.js',
1626 ),
1627 'mediawiki.special.upload' => array(
1628 'templates' => array(
1629 'thumbnail.html' => 'resources/src/mediawiki.special/templates/thumbnail.html',
1630 ),
1631 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.upload.js',
1632 'messages' => array(
1633 'widthheight',
1634 'size-bytes',
1635 'size-kilobytes',
1636 'size-megabytes',
1637 'size-gigabytes',
1638 'largefileserver',
1639 'editwarning-warning',
1640 // editwarning-warning uses {{int:prefs-editing}}
1641 'prefs-editing',
1642 ),
1643 'dependencies' => array(
1644 'jquery.spinner',
1645 'mediawiki.jqueryMsg',
1646 'mediawiki.api',
1647 'mediawiki.libs.jpegmeta',
1648 'mediawiki.Title',
1649 'mediawiki.util',
1650 'mediawiki.confirmCloseWindow',
1651 'user.options',
1652 ),
1653 ),
1654 'mediawiki.special.userlogin.common.styles' => array(
1655 'styles' => array(
1656 'resources/src/mediawiki.special/mediawiki.special.userlogin.common.css',
1657 ),
1658 'position' => 'top',
1659 ),
1660 'mediawiki.special.userlogin.signup.styles' => array(
1661 'position' => 'top',
1662 'styles' => array(
1663 'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.css',
1664 ),
1665 ),
1666 'mediawiki.special.userlogin.login.styles' => array(
1667 'position' => 'top',
1668 'styles' => array(
1669 'resources/src/mediawiki.special/mediawiki.special.userlogin.login.css',
1670 ),
1671 ),
1672 'mediawiki.special.userlogin.common.js' => array(
1673 'scripts' => array(
1674 'resources/src/mediawiki.special/mediawiki.special.userlogin.common.js',
1675 ),
1676 'messages' => array(
1677 'createacct-captcha',
1678 'createacct-imgcaptcha-ph',
1679 ),
1680 ),
1681 'mediawiki.special.userlogin.signup.js' => array(
1682 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js',
1683 'messages' => array(
1684 'createacct-error',
1685 'createacct-emailrequired',
1686 'noname',
1687 'userexists',
1688 ),
1689 'dependencies' => array(
1690 'mediawiki.api',
1691 'mediawiki.jqueryMsg',
1692 'jquery.throttle-debounce',
1693 ),
1694 ),
1695 'mediawiki.special.unwatchedPages' => array(
1696 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.js',
1697 'styles' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.css',
1698 'messages' => array(
1699 'addedwatchtext-short',
1700 'removedwatchtext-short',
1701 'unwatch',
1702 'unwatching',
1703 'watch',
1704 'watcherrortext',
1705 'watching',
1706 ),
1707 'dependencies' => array(
1708 'mediawiki.api',
1709 'mediawiki.api.watch',
1710 'mediawiki.notify',
1711 'mediawiki.Title',
1712 'mediawiki.util',
1713 ),
1714 ),
1715 'mediawiki.special.javaScriptTest' => array(
1716 'scripts' => 'resources/src/mediawiki.special/mediawiki.special.javaScriptTest.js',
1717 'messages' => array_merge( Skin::getSkinNameMessages(), array(
1718 'colon-separator',
1719 'javascripttest-pagetext-skins',
1720 ) ),
1721 'dependencies' => 'mediawiki.Uri',
1722 'position' => 'top',
1723 'targets' => array( 'desktop', 'mobile' ),
1724 ),
1725 'mediawiki.special.version' => array(
1726 'styles' => 'resources/src/mediawiki.special/mediawiki.special.version.css',
1727 ),
1728
1729 /* MediaWiki Installer */
1730
1731 // Used in the web installer. Test it after modifying this definition!
1732 'mediawiki.legacy.config' => array(
1733 // These files are not actually loaded via ResourceLoader, so dependencies etc. won't work.
1734 'scripts' => 'mw-config/config.js',
1735 'styles' => 'mw-config/config.css',
1736 ),
1737
1738 /* MediaWiki Legacy */
1739
1740 'mediawiki.legacy.commonPrint' => array(
1741 'position' => 'top',
1742 'styles' => array(
1743 // @todo: Remove mediawiki.page.gallery when cache has cleared
1744 'resources/src/mediawiki.page/mediawiki.page.gallery.print.css' => array( 'media' => 'print' ),
1745 'resources/src/mediawiki.legacy/commonPrint.css' => array( 'media' => 'print' )
1746 ),
1747 'group' => 'print',
1748 ),
1749 'mediawiki.legacy.protect' => array(
1750 'scripts' => 'resources/src/mediawiki.legacy/protect.js',
1751 'dependencies' => 'jquery.byteLimit',
1752 'messages' => array( 'protect-unchain-permissions' )
1753 ),
1754 // Used in the web installer. Test it after modifying this definition!
1755 'mediawiki.legacy.shared' => array(
1756 'position' => 'top',
1757 'styles' => array(
1758 // @todo: Remove when mediawiki.page.gallery in cached html.
1759 'resources/src/mediawiki.page/mediawiki.page.gallery.css',
1760 'resources/src/mediawiki.legacy/shared.css' => array( 'media' => 'screen' )
1761 ),
1762 ),
1763 'mediawiki.legacy.oldshared' => array(
1764 'position' => 'top',
1765 'styles' => array(
1766 'resources/src/mediawiki.legacy/oldshared.css' => array( 'media' => 'screen' )
1767 ),
1768 ),
1769 'mediawiki.legacy.wikibits' => array(
1770 'scripts' => 'resources/src/mediawiki.legacy/wikibits.js',
1771 'dependencies' => 'mediawiki.util',
1772 'position' => 'top',
1773 'targets' => array( 'desktop', 'mobile' ),
1774 ),
1775
1776 /* MediaWiki UI */
1777
1778 'mediawiki.ui' => array(
1779 'position' => 'top',
1780 'skinStyles' => array(
1781 'default' => array(
1782 'resources/src/mediawiki.ui/default.less',
1783 ),
1784 ),
1785 'targets' => array( 'desktop', 'mobile' ),
1786 ),
1787 'mediawiki.ui.checkbox' => array(
1788 'position' => 'top',
1789 'skinStyles' => array(
1790 'default' => array(
1791 'resources/src/mediawiki.ui/components/checkbox.less',
1792 ),
1793 ),
1794 'targets' => array( 'desktop', 'mobile' ),
1795 ),
1796 'mediawiki.ui.radio' => array(
1797 'position' => 'top',
1798 'skinStyles' => array(
1799 'default' => array(
1800 'resources/src/mediawiki.ui/components/radio.less',
1801 ),
1802 ),
1803 'targets' => array( 'desktop', 'mobile' ),
1804 ),
1805 // Lightweight module for anchor styles
1806 'mediawiki.ui.anchor' => array(
1807 'position' => 'top',
1808 'skinStyles' => array(
1809 'default' => array(
1810 'resources/src/mediawiki.ui/components/anchors.less',
1811 ),
1812 ),
1813 'targets' => array( 'desktop', 'mobile' ),
1814 ),
1815 // Lightweight module for button styles
1816 'mediawiki.ui.button' => array(
1817 'position' => 'top',
1818 'skinStyles' => array(
1819 'default' => array(
1820 'resources/src/mediawiki.ui/components/buttons.less',
1821 ),
1822 ),
1823 'targets' => array( 'desktop', 'mobile' ),
1824 ),
1825 'mediawiki.ui.input' => array(
1826 'position' => 'top',
1827 'skinStyles' => array(
1828 'default' => array(
1829 'resources/src/mediawiki.ui/components/inputs.less',
1830 ),
1831 ),
1832 'targets' => array( 'desktop', 'mobile' ),
1833 ),
1834 'mediawiki.ui.icon' => array(
1835 'position' => 'top',
1836 'skinStyles' => array(
1837 'default' => array(
1838 'resources/src/mediawiki.ui/components/icons.less',
1839 ),
1840 ),
1841 'targets' => array( 'desktop', 'mobile' ),
1842 ),
1843 // Lightweight module for text styles
1844 'mediawiki.ui.text' => array(
1845 'position' => 'top',
1846 'skinStyles' => array(
1847 'default' => array(
1848 'resources/src/mediawiki.ui/components/text.less',
1849 ),
1850 ),
1851 'targets' => array( 'desktop', 'mobile' ),
1852 ),
1853
1854 'mediawiki.widgets' => array(
1855 'scripts' => array(
1856 'resources/src/mediawiki.widgets/mw.widgets.js',
1857 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js',
1858 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js',
1859 'resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js',
1860 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.js',
1861 'resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js',
1862 'resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js',
1863 'resources/src/mediawiki.widgets/mw.widgets.UserInputWidget.js',
1864 ),
1865 'skinStyles' => array(
1866 'default' => array(
1867 'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less',
1868 'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less',
1869 'resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.css',
1870 ),
1871 ),
1872 'dependencies' => array(
1873 'oojs-ui',
1874 'mediawiki.widgets.styles',
1875 // DateInputWidget
1876 'moment',
1877 // TitleInputWidget
1878 'mediawiki.Title',
1879 'mediawiki.api',
1880 'jquery.byteLimit',
1881 // TitleOptionWidget
1882 'jquery.autoEllipsis',
1883 ),
1884 'messages' => array(
1885 // DateInputWidget
1886 'mw-widgets-dateinput-no-date',
1887 'mw-widgets-dateinput-placeholder-day',
1888 'mw-widgets-dateinput-placeholder-month',
1889 // NamespaceInputWidget
1890 'blanknamespace',
1891 'namespacesall',
1892 // TitleInputWidget
1893 'mw-widgets-titleinput-description-new-page',
1894 'mw-widgets-titleinput-description-redirect',
1895 ),
1896 'targets' => array( 'desktop', 'mobile' ),
1897 ),
1898 'mediawiki.widgets.styles' => array(
1899 'skinStyles' => array(
1900 'default' => array(
1901 'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.css',
1902 ),
1903 ),
1904 'position' => 'top',
1905 'targets' => array( 'desktop', 'mobile' ),
1906 ),
1907
1908 /* es5-shim */
1909 'es5-shim' => array(
1910 'scripts' => array(
1911 'resources/lib/es5-shim/es5-shim.js',
1912 'resources/src/polyfill-object-create.js',
1913 ),
1914 'targets' => array( 'desktop', 'mobile' ),
1915 'skipFunction' => 'resources/src/es5-skip.js',
1916 ),
1917
1918 /* dom-level2-shim */
1919 // IE 8
1920 'dom-level2-shim' => array(
1921 'scripts' => 'resources/src/polyfill-nodeTypes.js',
1922 'targets' => array( 'desktop', 'mobile' ),
1923 'skipFunction' => 'resources/src/dom-level2-skip.js',
1924 ),
1925
1926 /* OOjs */
1927 'oojs' => array(
1928 'scripts' => array(
1929 'resources/lib/oojs/oojs.jquery.js',
1930 ),
1931 'targets' => array( 'desktop', 'mobile' ),
1932 'dependencies' => array(
1933 'es5-shim',
1934 'json',
1935 ),
1936 ),
1937
1938 /* OOjs UI */
1939 // WARNING: OOjs-UI is NOT TESTED with older browsers and is likely to break
1940 // if loaded in browsers that don't support ES5
1941 // @see ResourcesOOUI.php
1942 );