MediaWiki  1.28.3
Resources.php
Go to the documentation of this file.
1 <?php
23 if ( !defined( 'MEDIAWIKI' ) ) {
24  die( 'Not an entry point.' );
25 }
26 
27 return [
28 
32  'startup' => [ 'class' => 'ResourceLoaderStartUpModule' ],
33 
34  // Scripts managed by the local wiki (stored in the MediaWiki namespace)
35  'site' => [ 'class' => 'ResourceLoaderSiteModule' ],
36  'site.styles' => [ 'class' => 'ResourceLoaderSiteStylesModule' ],
37  'noscript' => [
38  'class' => 'ResourceLoaderWikiModule',
39  'styles' => [ 'MediaWiki:Noscript.css' ],
40  'group' => 'noscript',
41  ],
42  'filepage' => [
43  'position' => 'top',
44  'class' => 'ResourceLoaderWikiModule',
45  'styles' => [ 'MediaWiki:Filepage.css' ],
46  ],
47  'user.groups' => [
48  // Merged into 'user' since MediaWiki 1.28 - kept for back-compat
49  'dependencies' => 'user',
50  'targets' => [ 'desktop', 'mobile' ],
51  ],
52 
53  // Scripts managed by the current user (stored in their user space)
54  'user' => [ 'class' => 'ResourceLoaderUserModule' ],
55  'user.styles' => [ 'class' => 'ResourceLoaderUserStylesModule' ],
56 
57  // Scripts generated based on the current user's preferences
58  'user.cssprefs' => [ 'class' => 'ResourceLoaderUserCSSPrefsModule' ],
59 
60  // Populate mediawiki.user placeholders with information about the current user
61  'user.defaults' => [ 'class' => 'ResourceLoaderUserDefaultsModule' ],
62  'user.options' => [ 'class' => 'ResourceLoaderUserOptionsModule' ],
63  'user.tokens' => [ 'class' => 'ResourceLoaderUserTokensModule' ],
64 
65  // Scripts for the dynamic language specific data, like grammar forms.
66  'mediawiki.language.data' => [ 'class' => 'ResourceLoaderLanguageDataModule' ],
67 
68  /* MediaWiki base skinning modules */
69 
99  'mediawiki.skinning.elements' => [
100  'position' => 'top',
101  'styles' => [
102  'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
103  ],
104  ],
105  'mediawiki.skinning.content' => [
106  'position' => 'top',
107  'styles' => [
108  'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
109  'resources/src/mediawiki.skinning/content.css' => [ 'media' => 'screen' ],
110  ],
111  ],
112  // Used in the web installer. Test it after modifying this definition!
113  'mediawiki.skinning.interface' => [
114  'position' => 'top',
115  'class' => 'ResourceLoaderSkinModule',
116  'styles' => [
117  'resources/src/mediawiki.skinning/elements.css' => [ 'media' => 'screen' ],
118  'resources/src/mediawiki.skinning/content.css' => [ 'media' => 'screen' ],
119  'resources/src/mediawiki.skinning/interface.css' => [ 'media' => 'screen' ],
120  ],
121  ],
122 
123  'mediawiki.skinning.content.parsoid' => [
124  'position' => 'top',
125  // Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser
126  // with the interface.css styles; skinStyles should be used if your
127  // skin over-rides common content styling.
128  'skinStyles' => [
129  'default' => 'resources/src/mediawiki.skinning/content.parsoid.less',
130  ],
131  'targets' => [ 'desktop', 'mobile' ],
132  ],
133 
134  'mediawiki.skinning.content.externallinks' => [
135  'position' => 'bottom',
136  'styles' => [
137  'resources/src/mediawiki.skinning/content.externallinks.css' => [ 'media' => 'screen' ],
138  ],
139  ],
140 
141  /* jQuery */
142 
143  'jquery' => [
144  'scripts' => [
145  'resources/lib/jquery/jquery.js',
146  ],
147  'raw' => true,
148  'targets' => [ 'desktop', 'mobile' ],
149  ],
150 
151  /* jQuery Plugins */
152 
153  'jquery.accessKeyLabel' => [
154  'scripts' => 'resources/src/jquery/jquery.accessKeyLabel.js',
155  'dependencies' => [
156  'jquery.client',
157  'mediawiki.RegExp',
158  ],
159  'messages' => [ 'brackets', 'word-separator' ],
160  'targets' => [ 'mobile', 'desktop' ],
161  ],
162  'jquery.appear' => [
163  'deprecated' => [
164  'message' => 'Please use "mediawiki.viewport" instead.',
165  ],
166  'scripts' => 'resources/lib/jquery/jquery.appear.js',
167  ],
168  'jquery.arrowSteps' => [
169  'deprecated' => true,
170  'scripts' => 'resources/src/jquery/jquery.arrowSteps.js',
171  'styles' => 'resources/src/jquery/jquery.arrowSteps.css',
172  'targets' => [ 'desktop', 'mobile' ],
173  ],
174  'jquery.async' => [
175  'scripts' => 'resources/lib/jquery/jquery.async.js',
176  ],
177  'jquery.autoEllipsis' => [
178  'scripts' => 'resources/src/jquery/jquery.autoEllipsis.js',
179  'dependencies' => 'jquery.highlightText',
180  'targets' => [ 'desktop', 'mobile' ],
181  ],
182  'jquery.badge' => [
183  'scripts' => 'resources/src/jquery/jquery.badge.js',
184  'styles' => 'resources/src/jquery/jquery.badge.css',
185  'dependencies' => 'mediawiki.language',
186  ],
187  'jquery.byteLength' => [
188  'scripts' => 'resources/src/jquery/jquery.byteLength.js',
189  'targets' => [ 'desktop', 'mobile' ],
190  ],
191  'jquery.byteLimit' => [
192  'scripts' => 'resources/src/jquery/jquery.byteLimit.js',
193  'dependencies' => 'jquery.byteLength',
194  'targets' => [ 'desktop', 'mobile' ],
195  ],
196  'jquery.checkboxShiftClick' => [
197  'scripts' => 'resources/src/jquery/jquery.checkboxShiftClick.js',
198  'targets' => [ 'desktop', 'mobile' ],
199  ],
200  'jquery.chosen' => [
201  'scripts' => 'resources/lib/jquery.chosen/chosen.jquery.js',
202  'styles' => 'resources/lib/jquery.chosen/chosen.css',
203  ],
204  'jquery.client' => [
205  'scripts' => 'resources/lib/jquery.client/jquery.client.js',
206  'targets' => [ 'desktop', 'mobile' ],
207  ],
208  'jquery.color' => [
209  'scripts' => 'resources/src/jquery/jquery.color.js',
210  'dependencies' => 'jquery.colorUtil',
211  ],
212  'jquery.colorUtil' => [
213  'scripts' => 'resources/src/jquery/jquery.colorUtil.js',
214  ],
215  'jquery.confirmable' => [
216  'scripts' => [
217  'resources/src/jquery/jquery.confirmable.js',
218  'resources/src/jquery/jquery.confirmable.mediawiki.js',
219  ],
220  'messages' => [
221  'confirmable-confirm',
222  'confirmable-yes',
223  'confirmable-no',
224  'word-separator',
225  ],
226  'styles' => 'resources/src/jquery/jquery.confirmable.css',
227  'dependencies' => 'mediawiki.jqueryMsg',
228  ],
229  'jquery.cookie' => [
230  'scripts' => 'resources/lib/jquery/jquery.cookie.js',
231  'targets' => [ 'desktop', 'mobile' ],
232  ],
233  'jquery.expandableField' => [
234  'scripts' => 'resources/src/jquery/jquery.expandableField.js',
235  ],
236  'jquery.farbtastic' => [
237  'scripts' => 'resources/src/jquery/jquery.farbtastic.js',
238  'styles' => 'resources/src/jquery/jquery.farbtastic.css',
239  'dependencies' => 'jquery.colorUtil',
240  ],
241  'jquery.footHovzer' => [
242  'scripts' => 'resources/src/jquery/jquery.footHovzer.js',
243  'styles' => 'resources/src/jquery/jquery.footHovzer.css',
244  ],
245  'jquery.form' => [
246  'scripts' => 'resources/lib/jquery/jquery.form.js',
247  ],
248  'jquery.fullscreen' => [
249  'scripts' => 'resources/lib/jquery/jquery.fullscreen.js',
250  ],
251  'jquery.getAttrs' => [
252  'scripts' => 'resources/src/jquery/jquery.getAttrs.js',
253  'targets' => [ 'desktop', 'mobile' ],
254  ],
255  'jquery.hidpi' => [
256  'scripts' => 'resources/src/jquery/jquery.hidpi.js',
257  'targets' => [ 'desktop', 'mobile' ],
258  ],
259  'jquery.highlightText' => [
260  'scripts' => 'resources/src/jquery/jquery.highlightText.js',
261  'dependencies' => [
262  'mediawiki.RegExp',
263  'dom-level2-shim',
264  ],
265  'targets' => [ 'desktop', 'mobile' ],
266  ],
267  'jquery.hoverIntent' => [
268  'scripts' => 'resources/lib/jquery/jquery.hoverIntent.js',
269  ],
270  'jquery.i18n' => [
271  'scripts' => [
272  'resources/lib/jquery.i18n/src/jquery.i18n.js',
273  'resources/lib/jquery.i18n/src/jquery.i18n.messagestore.js',
274  'resources/lib/jquery.i18n/src/jquery.i18n.parser.js',
275  'resources/lib/jquery.i18n/src/jquery.i18n.emitter.js',
276  'resources/lib/jquery.i18n/src/jquery.i18n.emitter.bidi.js',
277  'resources/lib/jquery.i18n/src/jquery.i18n.language.js',
278  'resources/lib/jquery.i18n/src/jquery.i18n.fallbacks.js',
279  ],
280  'dependencies' => 'mediawiki.libs.pluralruleparser',
281  'languageScripts' => [
282  'bs' => 'resources/lib/jquery.i18n/src/languages/bs.js',
283  'dsb' => 'resources/lib/jquery.i18n/src/languages/dsb.js',
284  'fi' => 'resources/lib/jquery.i18n/src/languages/fi.js',
285  'ga' => 'resources/lib/jquery.i18n/src/languages/ga.js',
286  'he' => 'resources/lib/jquery.i18n/src/languages/he.js',
287  'hsb' => 'resources/lib/jquery.i18n/src/languages/hsb.js',
288  'hu' => 'resources/lib/jquery.i18n/src/languages/hu.js',
289  'hy' => 'resources/lib/jquery.i18n/src/languages/hy.js',
290  'la' => 'resources/lib/jquery.i18n/src/languages/la.js',
291  'ml' => 'resources/lib/jquery.i18n/src/languages/ml.js',
292  'os' => 'resources/lib/jquery.i18n/src/languages/os.js',
293  'ru' => 'resources/lib/jquery.i18n/src/languages/ru.js',
294  'sl' => 'resources/lib/jquery.i18n/src/languages/sl.js',
295  'uk' => 'resources/lib/jquery.i18n/src/languages/uk.js',
296  ],
297  'targets' => [ 'desktop', 'mobile' ],
298  ],
299  'jquery.localize' => [
300  'scripts' => 'resources/src/jquery/jquery.localize.js',
301  ],
302  'jquery.makeCollapsible' => [
303  'scripts' => 'resources/src/jquery/jquery.makeCollapsible.js',
304  'styles' => 'resources/src/jquery/jquery.makeCollapsible.css',
305  'messages' => [ 'collapsible-expand', 'collapsible-collapse' ],
306  'targets' => [ 'desktop', 'mobile' ],
307  ],
308  'jquery.mockjax' => [
309  'scripts' => 'resources/lib/jquery/jquery.mockjax.js',
310  ],
311  'jquery.mw-jump' => [
312  'scripts' => 'resources/src/jquery/jquery.mw-jump.js',
313  'targets' => [ 'desktop', 'mobile' ],
314  ],
315  'jquery.mwExtension' => [
316  'scripts' => 'resources/src/jquery/jquery.mwExtension.js',
317  'targets' => [ 'desktop', 'mobile' ],
318  ],
319  'jquery.placeholder' => [
320  'scripts' => 'resources/src/jquery/jquery.placeholder.js',
321  'targets' => [ 'desktop', 'mobile' ],
322  ],
323  'jquery.qunit' => [
324  'scripts' => 'resources/lib/qunitjs/qunit.js',
325  'styles' => 'resources/lib/qunitjs/qunit.css',
326  'position' => 'top',
327  'targets' => [ 'desktop', 'mobile' ],
328  ],
329  'jquery.qunit.completenessTest' => [
330  'scripts' => 'resources/src/jquery/jquery.qunit.completenessTest.js',
331  'dependencies' => 'jquery.qunit',
332  'targets' => [ 'desktop', 'mobile' ],
333  ],
334  'jquery.spinner' => [
335  'scripts' => 'resources/src/jquery/jquery.spinner.js',
336  'styles' => 'resources/src/jquery/jquery.spinner.css',
337  'targets' => [ 'desktop', 'mobile' ],
338  ],
339  'jquery.jStorage' => [
340  'deprecated' => [
341  'message' => 'Please use "mediawiki.storage" instead.',
342  ],
343  'scripts' => 'resources/lib/jquery/jquery.jStorage.js',
344  'dependencies' => 'json',
345  ],
346  'jquery.suggestions' => [
347  'scripts' => 'resources/src/jquery/jquery.suggestions.js',
348  'styles' => 'resources/src/jquery/jquery.suggestions.css',
349  'dependencies' => 'jquery.highlightText',
350  ],
351  'jquery.tabIndex' => [
352  'scripts' => 'resources/src/jquery/jquery.tabIndex.js',
353  ],
354  'jquery.tablesorter' => [
355  'scripts' => 'resources/src/jquery/jquery.tablesorter.js',
356  'styles' => 'resources/src/jquery/jquery.tablesorter.less',
357  'messages' => [ 'sort-descending', 'sort-ascending' ],
358  'dependencies' => [
359  'dom-level2-shim',
360  'mediawiki.RegExp',
361  'mediawiki.language.months',
362  ],
363  ],
364  'jquery.textSelection' => [
365  'scripts' => 'resources/src/jquery/jquery.textSelection.js',
366  'dependencies' => 'jquery.client',
367  'targets' => [ 'mobile', 'desktop' ],
368  ],
369  'jquery.throttle-debounce' => [
370  'scripts' => 'resources/lib/jquery/jquery.ba-throttle-debounce.js',
371  'targets' => [ 'desktop', 'mobile' ],
372  ],
373  'jquery.xmldom' => [
374  'scripts' => 'resources/lib/jquery/jquery.xmldom.js',
375  ],
376 
377  /* jQuery Tipsy */
378 
379  'jquery.tipsy' => [
380  'deprecated' => true,
381  'scripts' => 'resources/src/jquery.tipsy/jquery.tipsy.js',
382  'styles' => 'resources/src/jquery.tipsy/jquery.tipsy.css',
383  ],
384 
385  /* jQuery UI */
386 
387  'jquery.ui.core' => [
388  'deprecated' => [
389  'message' => 'Please use "mediawiki.ui.button" or "oojs-ui" instead.',
390  ],
391  'scripts' => 'resources/lib/jquery.ui/jquery.ui.core.js',
392  'dependencies' => [
393  'jquery.ui.core.styles',
394  ],
395  'group' => 'jquery.ui',
396  ],
397  'jquery.ui.core.styles' => [
398  'position' => 'top',
399  'skinStyles' => [
400  'default' => [
401  'resources/lib/jquery.ui/themes/smoothness/jquery.ui.core.css',
402  'resources/lib/jquery.ui/themes/smoothness/jquery.ui.theme.css',
403  ],
404  ],
405  'group' => 'jquery.ui',
406  ],
407  'jquery.ui.accordion' => [
408  'scripts' => 'resources/lib/jquery.ui/jquery.ui.accordion.js',
409  'dependencies' => [
410  'jquery.ui.core',
411  'jquery.ui.widget',
412  ],
413  'skinStyles' => [
414  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.accordion.css',
415  ],
416  'group' => 'jquery.ui',
417  ],
418  'jquery.ui.autocomplete' => [
419  'scripts' => 'resources/lib/jquery.ui/jquery.ui.autocomplete.js',
420  'dependencies' => [
421  'jquery.ui.core',
422  'jquery.ui.widget',
423  'jquery.ui.position',
424  'jquery.ui.menu',
425  ],
426  'skinStyles' => [
427  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.autocomplete.css',
428  ],
429  'group' => 'jquery.ui',
430  ],
431  'jquery.ui.button' => [
432  'scripts' => 'resources/lib/jquery.ui/jquery.ui.button.js',
433  'dependencies' => [
434  'jquery.ui.core',
435  'jquery.ui.widget',
436  ],
437  'skinStyles' => [
438  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.button.css',
439  ],
440  'group' => 'jquery.ui',
441  ],
442  'jquery.ui.datepicker' => [
443  'scripts' => 'resources/lib/jquery.ui/jquery.ui.datepicker.js',
444  'dependencies' => 'jquery.ui.core',
445  'skinStyles' => [
446  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.datepicker.css',
447  ],
448  'languageScripts' => [
449  'af' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js',
450  'ar' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
451  'ar-dz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js',
452  'az' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js',
453  'bg' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
454  'bs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
455  'ca' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
456  'cs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
457  'da' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js',
458  'de-at' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js',
459  'de-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js',
460  'de' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js',
461  'el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js',
462  'en-au' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js',
463  'en-gb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
464  'en-nz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js',
465  'eo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
466  'es' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js',
467  'et' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js',
468  'eu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
469  'fa' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
470  'fi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
471  'fo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
472  'fr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
473  'fr-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js',
474  'gl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
475  'he' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js',
476  'hi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
477  'hr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
478  'hu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
479  'hy' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
480  'id' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js',
481  'is' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js',
482  'it' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js',
483  'ja' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
484  'ka' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
485  'kk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
486  'km' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js',
487  'ko' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
488  'lb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
489  'lt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
490  'lv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
491  'mk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
492  'ml' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
493  'ms' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
494  'nl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
495  'nl-be' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js',
496  'no' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js',
497  'pl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
498  'pt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
499  'pt-br' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
500  'rm' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
501  'ro' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
502  'ru' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
503  'sk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
504  'sl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
505  'sq' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
506  'sr-ec' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
507  'sr-el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
508  'sv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
509  'ta' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
510  'th' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js',
511  'tj' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js',
512  'tr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
513  'uk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
514  'vi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
515  'zh-cn' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
516  'zh-hk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
517  'zh-tw' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
518  ],
519  'group' => 'jquery.ui',
520  ],
521  'jquery.ui.dialog' => [
522  'scripts' => 'resources/lib/jquery.ui/jquery.ui.dialog.js',
523  'dependencies' => [
524  'jquery.ui.core',
525  'jquery.ui.widget',
526  'jquery.ui.button',
527  'jquery.ui.draggable',
528  'jquery.ui.mouse',
529  'jquery.ui.position',
530  'jquery.ui.resizable',
531  ],
532  'skinStyles' => [
533  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css',
534  ],
535  'group' => 'jquery.ui',
536  ],
537  'jquery.ui.draggable' => [
538  'scripts' => 'resources/lib/jquery.ui/jquery.ui.draggable.js',
539  'dependencies' => [
540  'jquery.ui.core',
541  'jquery.ui.mouse',
542  'jquery.ui.widget',
543  ],
544  'group' => 'jquery.ui',
545  ],
546  'jquery.ui.droppable' => [
547  'scripts' => 'resources/lib/jquery.ui/jquery.ui.droppable.js',
548  'dependencies' => [
549  'jquery.ui.core',
550  'jquery.ui.mouse',
551  'jquery.ui.widget',
552  'jquery.ui.draggable',
553  ],
554  'group' => 'jquery.ui',
555  ],
556  'jquery.ui.menu' => [
557  'scripts' => 'resources/lib/jquery.ui/jquery.ui.menu.js',
558  'dependencies' => [
559  'jquery.ui.core',
560  'jquery.ui.widget',
561  'jquery.ui.position',
562  ],
563  'skinStyles' => [
564  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.menu.css',
565  ],
566  'group' => 'jquery.ui',
567  ],
568  'jquery.ui.mouse' => [
569  'scripts' => 'resources/lib/jquery.ui/jquery.ui.mouse.js',
570  'dependencies' => 'jquery.ui.widget',
571  'group' => 'jquery.ui',
572  ],
573  'jquery.ui.position' => [
574  'deprecated' => true,
575  'targets' => [ 'mobile', 'desktop' ],
576  'scripts' => 'resources/lib/jquery.ui/jquery.ui.position.js',
577  'group' => 'jquery.ui',
578  ],
579  'jquery.ui.progressbar' => [
580  'scripts' => 'resources/lib/jquery.ui/jquery.ui.progressbar.js',
581  'dependencies' => [
582  'jquery.ui.core',
583  'jquery.ui.widget',
584  ],
585  'skinStyles' => [
586  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.progressbar.css',
587  ],
588  'group' => 'jquery.ui',
589  ],
590  'jquery.ui.resizable' => [
591  'scripts' => 'resources/lib/jquery.ui/jquery.ui.resizable.js',
592  'dependencies' => [
593  'jquery.ui.core',
594  'jquery.ui.widget',
595  'jquery.ui.mouse',
596  ],
597  'skinStyles' => [
598  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.resizable.css',
599  ],
600  'group' => 'jquery.ui',
601  ],
602  'jquery.ui.selectable' => [
603  'scripts' => 'resources/lib/jquery.ui/jquery.ui.selectable.js',
604  'dependencies' => [
605  'jquery.ui.core',
606  'jquery.ui.widget',
607  'jquery.ui.mouse',
608  ],
609  'skinStyles' => [
610  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.selectable.css',
611  ],
612  'group' => 'jquery.ui',
613  ],
614  'jquery.ui.slider' => [
615  'scripts' => 'resources/lib/jquery.ui/jquery.ui.slider.js',
616  'dependencies' => [
617  'jquery.ui.core',
618  'jquery.ui.widget',
619  'jquery.ui.mouse',
620  ],
621  'skinStyles' => [
622  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.slider.css',
623  ],
624  'group' => 'jquery.ui',
625  ],
626  'jquery.ui.sortable' => [
627  'scripts' => 'resources/lib/jquery.ui/jquery.ui.sortable.js',
628  'dependencies' => [
629  'jquery.ui.core',
630  'jquery.ui.mouse',
631  'jquery.ui.widget',
632  ],
633  'group' => 'jquery.ui',
634  ],
635  'jquery.ui.spinner' => [
636  'scripts' => 'resources/lib/jquery.ui/jquery.ui.spinner.js',
637  'dependencies' => [
638  'jquery.ui.core',
639  'jquery.ui.widget',
640  'jquery.ui.button',
641  ],
642  'skinStyles' => [
643  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.spinner.css',
644  ],
645  'group' => 'jquery.ui',
646  ],
647  'jquery.ui.tabs' => [
648  'scripts' => 'resources/lib/jquery.ui/jquery.ui.tabs.js',
649  'dependencies' => [
650  'jquery.ui.core',
651  'jquery.ui.widget',
652  ],
653  'skinStyles' => [
654  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tabs.css',
655  ],
656  'group' => 'jquery.ui',
657  ],
658  'jquery.ui.tooltip' => [
659  'scripts' => 'resources/lib/jquery.ui/jquery.ui.tooltip.js',
660  'dependencies' => [
661  'jquery.ui.core',
662  'jquery.ui.widget',
663  'jquery.ui.position',
664  ],
665  'skinStyles' => [
666  'default' => 'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tooltip.css',
667  ],
668  'group' => 'jquery.ui',
669  ],
670  'jquery.ui.widget' => [
671  'deprecated' => true,
672  'scripts' => 'resources/lib/jquery.ui/jquery.ui.widget.js',
673  'group' => 'jquery.ui',
674  ],
675  // Effects
676  'jquery.effects.core' => [
677  'deprecated' => true,
678  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect.js',
679  'group' => 'jquery.ui',
680  ],
681  'jquery.effects.blind' => [
682  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-blind.js',
683  'dependencies' => 'jquery.effects.core',
684  'group' => 'jquery.ui',
685  ],
686  'jquery.effects.bounce' => [
687  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-bounce.js',
688  'dependencies' => 'jquery.effects.core',
689  'group' => 'jquery.ui',
690  ],
691  'jquery.effects.clip' => [
692  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-clip.js',
693  'dependencies' => 'jquery.effects.core',
694  'group' => 'jquery.ui',
695  ],
696  'jquery.effects.drop' => [
697  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-drop.js',
698  'dependencies' => 'jquery.effects.core',
699  'group' => 'jquery.ui',
700  ],
701  'jquery.effects.explode' => [
702  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-explode.js',
703  'dependencies' => 'jquery.effects.core',
704  'group' => 'jquery.ui',
705  ],
706  'jquery.effects.fade' => [
707  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fade.js',
708  'dependencies' => 'jquery.effects.core',
709  'group' => 'jquery.ui',
710  ],
711  'jquery.effects.fold' => [
712  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-fold.js',
713  'dependencies' => 'jquery.effects.core',
714  'group' => 'jquery.ui',
715  ],
716  'jquery.effects.highlight' => [
717  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-highlight.js',
718  'dependencies' => 'jquery.effects.core',
719  'group' => 'jquery.ui',
720  ],
721  'jquery.effects.pulsate' => [
722  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-pulsate.js',
723  'dependencies' => 'jquery.effects.core',
724  'group' => 'jquery.ui',
725  ],
726  'jquery.effects.scale' => [
727  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-scale.js',
728  'dependencies' => 'jquery.effects.core',
729  'group' => 'jquery.ui',
730  ],
731  'jquery.effects.shake' => [
732  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-shake.js',
733  'dependencies' => 'jquery.effects.core',
734  'group' => 'jquery.ui',
735  ],
736  'jquery.effects.slide' => [
737  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-slide.js',
738  'dependencies' => 'jquery.effects.core',
739  'group' => 'jquery.ui',
740  ],
741  'jquery.effects.transfer' => [
742  'scripts' => 'resources/lib/jquery.ui/jquery.ui.effect-transfer.js',
743  'dependencies' => 'jquery.effects.core',
744  'group' => 'jquery.ui',
745  ],
746 
747  /* json2 */
748 
749  'json' => [
750  'scripts' => 'resources/lib/json2/json2.js',
751  'targets' => [ 'desktop', 'mobile' ],
752  'skipFunction' => 'resources/src/json-skip.js',
753  ],
754 
755  /* Moment.js */
756 
757  'moment' => [
758  'scripts' => [
759  'resources/lib/moment/moment.js',
760  'resources/src/moment-global.js',
761  ],
762  'languageScripts' => [
763  'af' => 'resources/lib/moment/locale/af.js',
764  'ar' => 'resources/lib/moment/locale/ar.js',
765  'ar-ma' => 'resources/lib/moment/locale/ar-ma.js',
766  'ar-sa' => 'resources/lib/moment/locale/ar-sa.js',
767  'az' => 'resources/lib/moment/locale/az.js',
768  'be' => 'resources/lib/moment/locale/be.js',
769  'bg' => 'resources/lib/moment/locale/bg.js',
770  'bn' => 'resources/lib/moment/locale/bn.js',
771  'bo' => 'resources/lib/moment/locale/bo.js',
772  'br' => 'resources/lib/moment/locale/br.js',
773  'bs' => 'resources/lib/moment/locale/bs.js',
774  'ca' => 'resources/lib/moment/locale/ca.js',
775  'cs' => 'resources/lib/moment/locale/cs.js',
776  'cv' => 'resources/lib/moment/locale/cv.js',
777  'cy' => 'resources/lib/moment/locale/cy.js',
778  'da' => 'resources/lib/moment/locale/da.js',
779  'de' => 'resources/lib/moment/locale/de.js',
780  'de-at' => 'resources/lib/moment/locale/de-at.js',
781  'el' => 'resources/lib/moment/locale/el.js',
782  'en' => 'resources/src/moment-dmy.js',
783  'en-au' => 'resources/lib/moment/locale/en-au.js',
784  'en-ca' => 'resources/lib/moment/locale/en-ca.js',
785  'en-gb' => 'resources/lib/moment/locale/en-gb.js',
786  'eo' => 'resources/lib/moment/locale/eo.js',
787  'es' => 'resources/lib/moment/locale/es.js',
788  'et' => 'resources/lib/moment/locale/et.js',
789  'eu' => 'resources/lib/moment/locale/eu.js',
790  'fa' => 'resources/lib/moment/locale/fa.js',
791  'fi' => 'resources/lib/moment/locale/fi.js',
792  'fo' => 'resources/lib/moment/locale/fo.js',
793  'fr-ca' => 'resources/lib/moment/locale/fr-ca.js',
794  'fr' => 'resources/lib/moment/locale/fr.js',
795  'gl' => 'resources/lib/moment/locale/gl.js',
796  'he' => 'resources/lib/moment/locale/he.js',
797  'hi' => 'resources/lib/moment/locale/hi.js',
798  'hr' => 'resources/lib/moment/locale/hr.js',
799  'hu' => 'resources/lib/moment/locale/hu.js',
800  'hy-am' => 'resources/lib/moment/locale/hy-am.js',
801  'id' => 'resources/lib/moment/locale/id.js',
802  'is' => 'resources/lib/moment/locale/is.js',
803  'it' => 'resources/lib/moment/locale/it.js',
804  'ja' => 'resources/lib/moment/locale/ja.js',
805  'ka' => 'resources/lib/moment/locale/ka.js',
806  'ko' => 'resources/lib/moment/locale/ko.js',
807  'lt' => 'resources/lib/moment/locale/lt.js',
808  'lv' => 'resources/lib/moment/locale/lv.js',
809  'mk' => 'resources/lib/moment/locale/mk.js',
810  'ml' => 'resources/lib/moment/locale/ml.js',
811  'mr' => 'resources/lib/moment/locale/mr.js',
812  'ms-my' => 'resources/lib/moment/locale/ms-my.js',
813  'my' => 'resources/lib/moment/locale/my.js',
814  'nb' => 'resources/lib/moment/locale/nb.js',
815  'ne' => 'resources/lib/moment/locale/ne.js',
816  'nl' => 'resources/lib/moment/locale/nl.js',
817  'nn' => 'resources/lib/moment/locale/nn.js',
818  'pl' => 'resources/lib/moment/locale/pl.js',
819  'pt-br' => 'resources/lib/moment/locale/pt-br.js',
820  'pt' => 'resources/lib/moment/locale/pt.js',
821  'ro' => 'resources/lib/moment/locale/ro.js',
822  'ru' => 'resources/lib/moment/locale/ru.js',
823  'sk' => 'resources/lib/moment/locale/sk.js',
824  'sl' => 'resources/lib/moment/locale/sl.js',
825  'sq' => 'resources/lib/moment/locale/sq.js',
826  'sr-ec' => 'resources/lib/moment/locale/sr-cyrl.js',
827  'sr-el' => 'resources/lib/moment/locale/sr.js',
828  'sv' => 'resources/lib/moment/locale/sv.js',
829  'ta' => 'resources/lib/moment/locale/ta.js',
830  'th' => 'resources/lib/moment/locale/th.js',
831  'tl-ph' => 'resources/lib/moment/locale/tl-ph.js',
832  'tr' => 'resources/lib/moment/locale/tr.js',
833  'tzm' => 'resources/lib/moment/locale/tzm.js',
834  'tzm-latn' => 'resources/lib/moment/locale/tzm-latn.js',
835  'uk' => 'resources/lib/moment/locale/uk.js',
836  'uz' => 'resources/lib/moment/locale/uz.js',
837  'vi' => 'resources/lib/moment/locale/vi.js',
838  'zh-cn' => 'resources/lib/moment/locale/zh-cn.js',
839  'zh-tw' => 'resources/lib/moment/locale/zh-tw.js',
840  'zh-hans' => 'resources/lib/moment/locale/zh-cn.js',
841  'zh-hant' => 'resources/lib/moment/locale/zh-tw.js',
842  ],
843  // HACK: skinScripts come after languageScripts, and we need locale overrides to come
844  // after locale definitions
845  'skinScripts' => [
846  'default' => [
847  'resources/src/moment-locale-overrides.js',
848  ],
849  ],
850  'dependencies' => [
851  'mediawiki.language',
852  ],
853  'targets' => [ 'desktop', 'mobile' ],
854  ],
855 
856  /* MediaWiki */
857 
858  'mediawiki' => [
859  'class' => 'ResourceLoaderRawFileModule',
860  // Keep in sync with maintenance/jsduck/eg-iframe.html
861  'scripts' => [
862  'resources/src/mediawiki/mediawiki.js',
863  'resources/src/mediawiki/mediawiki.requestIdleCallback.js',
864  'resources/src/mediawiki/mediawiki.errorLogger.js',
865  ],
866  'debugScripts' => 'resources/src/mediawiki/mediawiki.log.js',
867  'targets' => [ 'desktop', 'mobile' ],
868  ],
869  'mediawiki.apihelp' => [
870  'styles' => 'resources/src/mediawiki/mediawiki.apihelp.css',
871  'targets' => [ 'desktop' ],
872  'position' => 'top',
873  ],
874  'mediawiki.template' => [
875  'scripts' => 'resources/src/mediawiki/mediawiki.template.js',
876  'targets' => [ 'desktop', 'mobile' ],
877  ],
878  'mediawiki.template.mustache' => [
879  'scripts' => [
880  'resources/lib/mustache/mustache.js',
881  'resources/src/mediawiki/mediawiki.template.mustache.js',
882  ],
883  'targets' => [ 'desktop', 'mobile' ],
884  'dependencies' => 'mediawiki.template',
885  ],
886  'mediawiki.template.regexp' => [
887  'scripts' => 'resources/src/mediawiki/mediawiki.template.regexp.js',
888  'targets' => [ 'desktop', 'mobile' ],
889  'dependencies' => 'mediawiki.template',
890  ],
891  'mediawiki.apipretty' => [
892  'styles' => 'resources/src/mediawiki/mediawiki.apipretty.css',
893  'targets' => [ 'desktop', 'mobile' ],
894  'position' => 'top',
895  ],
896  'mediawiki.api' => [
897  'scripts' => 'resources/src/mediawiki/api.js',
898  'dependencies' => [
899  'mediawiki.util',
900  'user.tokens',
901  ],
902  'targets' => [ 'desktop', 'mobile' ],
903  ],
904  'mediawiki.api.category' => [
905  'scripts' => 'resources/src/mediawiki/api/category.js',
906  'dependencies' => [
907  'mediawiki.api',
908  'mediawiki.Title',
909  ],
910  ],
911  'mediawiki.api.edit' => [
912  'scripts' => 'resources/src/mediawiki/api/edit.js',
913  'dependencies' => [
914  'mediawiki.api',
915  'mediawiki.Title',
916  ],
917  'targets' => [ 'desktop', 'mobile' ],
918  ],
919  'mediawiki.api.login' => [
920  'scripts' => 'resources/src/mediawiki/api/login.js',
921  'dependencies' => 'mediawiki.api',
922  ],
923  'mediawiki.api.options' => [
924  'scripts' => 'resources/src/mediawiki/api/options.js',
925  'dependencies' => 'mediawiki.api',
926  'targets' => [ 'desktop', 'mobile' ],
927  ],
928  'mediawiki.api.parse' => [
929  'scripts' => 'resources/src/mediawiki/api/parse.js',
930  'dependencies' => 'mediawiki.api',
931  'targets' => [ 'desktop', 'mobile' ],
932  ],
933  'mediawiki.api.upload' => [
934  'scripts' => 'resources/src/mediawiki/api/upload.js',
935  'dependencies' => [
936  'dom-level2-shim',
937  'mediawiki.api',
938  'mediawiki.api.edit',
939  'json',
940  ],
941  'targets' => [ 'desktop', 'mobile' ],
942  ],
943  'mediawiki.api.user' => [
944  'scripts' => 'resources/src/mediawiki/api/user.js',
945  'dependencies' => [
946  'mediawiki.api',
947  ],
948  'targets' => [ 'desktop', 'mobile' ],
949  ],
950  'mediawiki.api.watch' => [
951  'scripts' => 'resources/src/mediawiki/api/watch.js',
952  'dependencies' => [
953  'mediawiki.api',
954  ],
955  ],
956  'mediawiki.api.messages' => [
957  'scripts' => 'resources/src/mediawiki/api/messages.js',
958  'dependencies' => [
959  'mediawiki.api',
960  ],
961  'targets' => [ 'desktop', 'mobile' ],
962  ],
963  'mediawiki.api.rollback' => [
964  'scripts' => 'resources/src/mediawiki/api/rollback.js',
965  'dependencies' => [
966  'mediawiki.api',
967  ],
968  ],
969  'mediawiki.content.json' => [
970  'position' => 'top',
971  'styles' => 'resources/src/mediawiki/mediawiki.content.json.less',
972  ],
973  'mediawiki.confirmCloseWindow' => [
974  'scripts' => [
975  'resources/src/mediawiki/mediawiki.confirmCloseWindow.js',
976  ],
977  'targets' => [ 'desktop', 'mobile' ],
978  ],
979  'mediawiki.debug' => [
980  'scripts' => [
981  'resources/src/mediawiki/mediawiki.debug.js',
982  ],
983  'styles' => [
984  'resources/src/mediawiki/mediawiki.debug.less',
985  ],
986  'dependencies' => [
987  'jquery.footHovzer',
988  ],
989  // Uses a custom mw.config variable that is set in debughtml,
990  // must be loaded on the bottom
991  'position' => 'bottom',
992  ],
993  'mediawiki.diff.styles' => [
994  'position' => 'top',
995  'styles' => [
996  'resources/src/mediawiki/mediawiki.diff.styles.css',
997  'resources/src/mediawiki/mediawiki.diff.styles.print.css' => [
998  'media' => 'print'
999  ],
1000  ],
1001  'targets' => [ 'desktop', 'mobile' ],
1002  ],
1003  'mediawiki.feedback' => [
1004  'scripts' => 'resources/src/mediawiki/mediawiki.feedback.js',
1005  'styles' => 'resources/src/mediawiki/mediawiki.feedback.css',
1006  'dependencies' => [
1007  'mediawiki.messagePoster',
1008  'mediawiki.Title',
1009  'oojs-ui-core',
1010  'oojs-ui-windows',
1011  ],
1012  'messages' => [
1013  'feedback-adding',
1014  'feedback-back',
1015  'feedback-bugcheck',
1016  'feedback-dialog-intro',
1017  'feedback-external-bug-report-button',
1018  'feedback-bugnew',
1019  'feedback-bugornote',
1020  'feedback-cancel',
1021  'feedback-close',
1022  'feedback-dialog-title',
1023  'feedback-error1',
1024  'feedback-error2',
1025  'feedback-error3',
1026  'feedback-error4',
1027  'feedback-message',
1028  'feedback-subject',
1029  'feedback-submit',
1030  'feedback-terms',
1031  'feedback-termsofuse',
1032  'feedback-thanks',
1033  'feedback-thanks-title',
1034  'feedback-useragent'
1035  ],
1036  'targets' => [ 'desktop', 'mobile' ],
1037  ],
1038  'mediawiki.feedlink' => [
1039  'position' => 'top',
1040  'styles' => 'resources/src/mediawiki/mediawiki.feedlink.css',
1041  ],
1042  'mediawiki.filewarning' => [
1043  'scripts' => 'resources/src/mediawiki/mediawiki.filewarning.js',
1044  'styles' => 'resources/src/mediawiki/mediawiki.filewarning.less',
1045  'dependencies' => [
1046  'oojs-ui-core',
1047  ],
1048  ],
1049  'mediawiki.ForeignApi' => [
1050  'targets' => [ 'desktop', 'mobile' ],
1051  'class' => 'ResourceLoaderForeignApiModule',
1052  // Additional dependencies generated dynamically
1053  'dependencies' => 'mediawiki.ForeignApi.core',
1054  ],
1055  'mediawiki.ForeignApi.core' => [
1056  'scripts' => 'resources/src/mediawiki/ForeignApi.js',
1057  'dependencies' => [
1058  'mediawiki.api',
1059  'oojs',
1060  ],
1061  'targets' => [ 'desktop', 'mobile' ],
1062  ],
1063  'mediawiki.helplink' => [
1064  'position' => 'top',
1065  'styles' => [
1066  'resources/src/mediawiki/mediawiki.helplink.less',
1067  ],
1068  'targets' => [ 'desktop', 'mobile' ],
1069  ],
1070  'mediawiki.hidpi' => [
1071  'scripts' => 'resources/src/mediawiki/mediawiki.hidpi.js',
1072  'dependencies' => 'jquery.hidpi',
1073  'skipFunction' => 'resources/src/mediawiki.hidpi-skip.js',
1074  'targets' => [ 'desktop', 'mobile' ],
1075  ],
1076  'mediawiki.hlist' => [
1077  'styles' => 'resources/src/mediawiki/mediawiki.hlist.css',
1078  ],
1079  'mediawiki.htmlform' => [
1080  'scripts' => [
1081  'resources/src/mediawiki/htmlform/htmlform.js',
1082  'resources/src/mediawiki/htmlform/autocomplete.js',
1083  'resources/src/mediawiki/htmlform/autoinfuse.js',
1084  'resources/src/mediawiki/htmlform/checkmatrix.js',
1085  'resources/src/mediawiki/htmlform/datetime.js',
1086  'resources/src/mediawiki/htmlform/cloner.js',
1087  'resources/src/mediawiki/htmlform/hide-if.js',
1088  'resources/src/mediawiki/htmlform/multiselect.js',
1089  'resources/src/mediawiki/htmlform/selectandother.js',
1090  'resources/src/mediawiki/htmlform/selectorother.js',
1091  ],
1092  'dependencies' => [
1093  'mediawiki.RegExp',
1094  'jquery.byteLimit',
1095  ],
1096  'messages' => [
1097  'htmlform-chosen-placeholder',
1098  // @todo Load this message in content language
1099  'colon-separator',
1100  ],
1101  'targets' => [ 'desktop', 'mobile' ],
1102  ],
1103  'mediawiki.htmlform.ooui' => [
1104  'scripts' => [
1105  'resources/src/mediawiki/htmlform/htmlform.Element.js',
1106  ],
1107  'dependencies' => [
1108  'oojs-ui-core',
1109  ],
1110  'targets' => [ 'desktop', 'mobile' ],
1111  ],
1112  'mediawiki.htmlform.styles' => [
1113  'styles' => 'resources/src/mediawiki/htmlform/styles.css',
1114  'position' => 'top',
1115  'targets' => [ 'desktop', 'mobile' ],
1116  ],
1117  'mediawiki.htmlform.ooui.styles' => [
1118  'styles' => 'resources/src/mediawiki/htmlform/ooui.styles.css',
1119  'position' => 'top',
1120  'targets' => [ 'desktop', 'mobile' ],
1121  ],
1122  'mediawiki.icon' => [
1123  'styles' => 'resources/src/mediawiki/mediawiki.icon.less',
1124  'targets' => [ 'desktop', 'mobile' ],
1125  ],
1126  'mediawiki.inspect' => [
1127  'scripts' => 'resources/src/mediawiki/mediawiki.inspect.js',
1128  'dependencies' => [
1129  'jquery.byteLength',
1130  'mediawiki.RegExp',
1131  'json',
1132  ],
1133  'targets' => [ 'desktop', 'mobile' ],
1134  ],
1135  'mediawiki.messagePoster' => [
1136  'scripts' => [
1137  'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.factory.js',
1138  'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.MessagePoster.js',
1139  ],
1140  'dependencies' => [
1141  'oojs',
1142  'mediawiki.api',
1143  'mediawiki.ForeignApi',
1144  ],
1145  'targets' => [ 'desktop', 'mobile' ],
1146  ],
1147  'mediawiki.messagePoster.wikitext' => [
1148  'scripts' => [
1149  'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.WikitextMessagePoster.js',
1150  ],
1151  'dependencies' => [
1152  'mediawiki.api.edit',
1153  'mediawiki.messagePoster',
1154  ],
1155  'targets' => [ 'desktop', 'mobile' ],
1156  ],
1157  'mediawiki.notification' => [
1158  'styles' => [
1159  'resources/src/mediawiki/mediawiki.notification.common.css',
1160  'resources/src/mediawiki/mediawiki.notification.print.css'
1161  => [ 'media' => 'print' ],
1162  ],
1163  'skinStyles' => [
1164  'default' => 'resources/src/mediawiki/mediawiki.notification.css',
1165  ],
1166  'scripts' => 'resources/src/mediawiki/mediawiki.notification.js',
1167  'dependencies' => 'mediawiki.page.startup',
1168  'targets' => [ 'desktop', 'mobile' ],
1169  ],
1170  'mediawiki.notify' => [
1171  'scripts' => 'resources/src/mediawiki/mediawiki.notify.js',
1172  'targets' => [ 'desktop', 'mobile' ],
1173  ],
1174  'mediawiki.notification.convertmessagebox' => [
1175  'dependencies' => [
1176  'mediawiki.notification',
1177  ],
1178  'scripts' => 'resources/src/mediawiki/mediawiki.notification.convertmessagebox.js',
1179  'targets' => [ 'desktop', 'mobile' ],
1180  ],
1181  'mediawiki.notification.convertmessagebox.styles' => [
1182  'position' => 'top',
1183  'styles' => [
1184  'resources/src/mediawiki/mediawiki.notification.convertmessagebox.styles.less',
1185  ],
1186  'targets' => [ 'desktop', 'mobile' ],
1187  ],
1188  'mediawiki.RegExp' => [
1189  'scripts' => 'resources/src/mediawiki/mediawiki.RegExp.js',
1190  'targets' => [ 'desktop', 'mobile' ],
1191  ],
1192  'mediawiki.pager.tablePager' => [
1193  'styles' => 'resources/src/mediawiki/mediawiki.pager.tablePager.less',
1194  'position' => 'top',
1195  ],
1196  'mediawiki.searchSuggest' => [
1197  'scripts' => 'resources/src/mediawiki/mediawiki.searchSuggest.js',
1198  'styles' => 'resources/src/mediawiki/mediawiki.searchSuggest.css',
1199  'messages' => [
1200  'searchsuggest-search',
1201  'searchsuggest-containing',
1202  ],
1203  'dependencies' => [
1204  'jquery.client',
1205  'jquery.placeholder',
1206  'jquery.suggestions',
1207  'jquery.getAttrs',
1208  'mediawiki.api',
1209  ],
1210  ],
1211  'mediawiki.sectionAnchor' => [
1212  'position' => 'top',
1213  // Back-compat to hide it on cached pages (T18691; Ie9e334e973; 2015-03-17)
1214  'styles' => 'resources/src/mediawiki/mediawiki.sectionAnchor.css',
1215  'targets' => [ 'desktop', 'mobile' ],
1216  ],
1217  'mediawiki.storage' => [
1218  'scripts' => 'resources/src/mediawiki/mediawiki.storage.js',
1219  'targets' => [ 'desktop', 'mobile' ],
1220  ],
1221  'mediawiki.Title' => [
1222  'scripts' => 'resources/src/mediawiki/mediawiki.Title.js',
1223  'dependencies' => [
1224  'jquery.byteLength',
1225  'mediawiki.util',
1226  ],
1227  'targets' => [ 'desktop', 'mobile' ],
1228  ],
1229  'mediawiki.Upload' => [
1230  'scripts' => 'resources/src/mediawiki/mediawiki.Upload.js',
1231  'dependencies' => [
1232  'dom-level2-shim',
1233  'mediawiki.api.upload',
1234  ],
1235  ],
1236  'mediawiki.ForeignUpload' => [
1237  'scripts' => 'resources/src/mediawiki/mediawiki.ForeignUpload.js',
1238  'dependencies' => [
1239  'mediawiki.ForeignApi',
1240  'mediawiki.Upload',
1241  'oojs',
1242  ],
1243  'messages' => [
1244  'uploaddisabledtext',
1245  'upload-dialog-disabled',
1246  'upload-foreign-cant-upload',
1247  ]
1248  ],
1249  'mediawiki.ForeignStructuredUpload.config' => [
1250  'class' => 'ResourceLoaderUploadDialogModule',
1251  ],
1252  'mediawiki.ForeignStructuredUpload' => [
1253  'scripts' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js',
1254  'dependencies' => [
1255  'mediawiki.ForeignUpload',
1256  'mediawiki.ForeignStructuredUpload.config',
1257  ],
1258  'messages' => [
1259  'upload-foreign-cant-load-config',
1260  ],
1261  ],
1262  'mediawiki.Upload.Dialog' => [
1263  'scripts' => [
1264  'resources/src/mediawiki/mediawiki.Upload.Dialog.js',
1265  ],
1266  'dependencies' => [
1267  'mediawiki.Upload.BookletLayout',
1268  ],
1269  'messages' => [
1270  'upload-dialog-title',
1271  'upload-dialog-button-cancel',
1272  'upload-dialog-button-back',
1273  'upload-dialog-button-done',
1274  'upload-dialog-button-save',
1275  'upload-dialog-button-upload',
1276  ],
1277  ],
1278  'mediawiki.Upload.BookletLayout' => [
1279  'scripts' => [
1280  'resources/src/mediawiki/mediawiki.Upload.BookletLayout.js',
1281  ],
1282  'styles' => [
1283  'resources/src/mediawiki/mediawiki.Upload.BookletLayout.css',
1284  ],
1285  'dependencies' => [
1286  'oojs-ui-core',
1287  'oojs-ui-widgets',
1288  'oojs-ui-windows',
1289  'oojs-ui.styles.icons-content',
1290  'oojs-ui.styles.icons-editing-advanced',
1291  'moment',
1292  'mediawiki.Title',
1293  'mediawiki.user',
1294  'mediawiki.Upload',
1295  'mediawiki.jqueryMsg',
1296  'mediawiki.widgets.StashedFileWidget'
1297  ],
1298  'messages' => [
1299  'upload-form-label-infoform-title',
1300  'upload-form-label-infoform-name',
1301  'upload-form-label-infoform-name-tooltip',
1302  'upload-form-label-infoform-description',
1303  'upload-form-label-infoform-description-tooltip',
1304  'upload-form-label-usage-title',
1305  'upload-form-label-usage-filename',
1306  'api-error-unknownerror',
1307  'api-error-unknown-warning',
1308  'api-error-autoblocked',
1309  'api-error-blocked',
1310  'api-error-badaccess-groups',
1311  'api-error-badtoken',
1312  'api-error-copyuploaddisabled',
1313  'api-error-duplicate',
1314  'api-error-duplicate-archive',
1315  'api-error-empty-file',
1316  'api-error-emptypage',
1317  'api-error-fetchfileerror',
1318  'api-error-fileexists-forbidden',
1319  'api-error-fileexists-shared-forbidden',
1320  'api-error-file-too-large',
1321  'api-error-filename-tooshort',
1322  'api-error-filetype-banned',
1323  'api-error-filetype-banned-type',
1324  'api-error-filetype-missing',
1325  'api-error-hookaborted',
1326  'api-error-http',
1327  'api-error-illegal-filename',
1328  'api-error-internal-error',
1329  'api-error-invalid-file-key',
1330  'api-error-missingparam',
1331  'api-error-missingresult',
1332  'api-error-mustbeloggedin',
1333  'api-error-mustbeposted',
1334  'api-error-noimageinfo',
1335  'api-error-nomodule',
1336  'api-error-ok-but-empty',
1337  'api-error-overwrite',
1338  'api-error-stashfailed',
1339  'api-error-publishfailed',
1340  'api-error-stasherror',
1341  'api-error-stashedfilenotfound',
1342  'api-error-stashpathinvalid',
1343  'api-error-stashfilestorage',
1344  'api-error-stashzerolength',
1345  'api-error-stashnotloggedin',
1346  'api-error-stashwrongowner',
1347  'api-error-stashnosuchfilekey',
1348  'api-error-timeout',
1349  'api-error-unclassified',
1350  'api-error-unknown-code',
1351  'api-error-unknown-error',
1352  'api-error-uploaddisabled',
1353  'api-error-verification-error',
1354  'api-error-was-deleted',
1355  'fileexists',
1356  'filepageexists',
1357  'filename-bad-prefix',
1358  'filename-thumb-name',
1359  'badfilename',
1360  'protectedpagetext',
1361  ],
1362  ],
1363  'mediawiki.ForeignStructuredUpload.BookletLayout' => [
1364  'scripts' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js',
1365  'styles' => 'resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.less',
1366  'dependencies' => [
1367  'mediawiki.ForeignStructuredUpload',
1368  'mediawiki.Upload.BookletLayout',
1369  'mediawiki.widgets.CategorySelector',
1370  'mediawiki.widgets.DateInputWidget',
1371  'mediawiki.jqueryMsg',
1372  'mediawiki.api.messages',
1373  'moment',
1374  'mediawiki.libs.jpegmeta',
1375  ],
1376  'messages' => [
1377  'upload-form-label-own-work',
1378  'upload-form-label-infoform-categories',
1379  'upload-form-label-infoform-date',
1380  'upload-form-label-own-work-message-generic-local',
1381  'upload-form-label-not-own-work-message-generic-local',
1382  'upload-form-label-not-own-work-local-generic-local',
1383  'upload-form-label-own-work-message-generic-foreign',
1384  'upload-form-label-not-own-work-message-generic-foreign',
1385  'upload-form-label-not-own-work-local-generic-foreign',
1386  ],
1387  ],
1388  'mediawiki.toc' => [
1389  'scripts' => 'resources/src/mediawiki/mediawiki.toc.js',
1390  'styles' => [
1391  'resources/src/mediawiki/mediawiki.toc.css'
1392  => [ 'media' => 'screen' ],
1393  'resources/src/mediawiki/mediawiki.toc.print.css'
1394  => [ 'media' => 'print' ],
1395  ],
1396  'dependencies' => 'mediawiki.cookie',
1397  'messages' => [ 'showtoc', 'hidetoc' ],
1398  'targets' => [ 'desktop', 'mobile' ],
1399  ],
1400  'mediawiki.Uri' => [
1401  'scripts' => 'resources/src/mediawiki/mediawiki.Uri.js',
1402  'templates' => [
1403  'strict.regexp' => 'resources/src/mediawiki/mediawiki.Uri.strict.regexp',
1404  'loose.regexp' => 'resources/src/mediawiki/mediawiki.Uri.loose.regexp',
1405  ],
1406  'dependencies' => 'mediawiki.util',
1407  'targets' => [ 'desktop', 'mobile' ],
1408  ],
1409  'mediawiki.user' => [
1410  'scripts' => 'resources/src/mediawiki/mediawiki.user.js',
1411  'dependencies' => [
1412  'mediawiki.cookie',
1413  'mediawiki.api',
1414  'mediawiki.api.user',
1415  'user.options',
1416  'user.tokens',
1417  ],
1418  'targets' => [ 'desktop', 'mobile' ],
1419  ],
1420  'mediawiki.userSuggest' => [
1421  'scripts' => 'resources/src/mediawiki/mediawiki.userSuggest.js',
1422  'dependencies' => [
1423  'jquery.suggestions',
1424  'mediawiki.api'
1425  ]
1426  ],
1427  'mediawiki.util' => [
1428  'scripts' => 'resources/src/mediawiki/mediawiki.util.js',
1429  'dependencies' => [
1430  'jquery.accessKeyLabel',
1431  'mediawiki.RegExp',
1432  'mediawiki.notify',
1433  ],
1434  'targets' => [ 'desktop', 'mobile' ],
1435  ],
1436  'mediawiki.viewport' => [
1437  'scripts' => 'resources/src/mediawiki/mediawiki.viewport.js',
1438  'position' => 'top',
1439  'targets' => [ 'desktop', 'mobile' ],
1440  ],
1441  'mediawiki.checkboxtoggle' => [
1442  'scripts' => 'resources/src/mediawiki/mediawiki.checkboxtoggle.js',
1443  ],
1444  'mediawiki.checkboxtoggle.styles' => [
1445  'styles' => 'resources/src/mediawiki/mediawiki.checkboxtoggle.css',
1446  ],
1447  'mediawiki.cookie' => [
1448  'scripts' => 'resources/src/mediawiki/mediawiki.cookie.js',
1449  'dependencies' => 'jquery.cookie',
1450  'targets' => [ 'desktop', 'mobile' ],
1451  ],
1452  'mediawiki.toolbar' => [
1453  'class' => 'ResourceLoaderEditToolbarModule',
1454  'scripts' => 'resources/src/mediawiki.toolbar/toolbar.js',
1455  'styles' => 'resources/src/mediawiki.toolbar/toolbar.less',
1456  'dependencies' => 'jquery.textSelection',
1457  'position' => 'top',
1458  ],
1459  'mediawiki.experiments' => [
1460  'scripts' => 'resources/src/mediawiki/mediawiki.experiments.js',
1461  'targets' => [ 'desktop', 'mobile' ],
1462  ],
1463 
1464  /* MediaWiki Action */
1465 
1466  'mediawiki.action.edit' => [
1467  'scripts' => [
1468  'resources/src/mediawiki.action/mediawiki.action.edit.js',
1469  'resources/src/mediawiki.action/mediawiki.action.edit.stash.js',
1470  ],
1471  'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.css',
1472  'dependencies' => [
1473  'mediawiki.action.edit.styles',
1474  'jquery.textSelection',
1475  'jquery.byteLimit',
1476  'mediawiki.api',
1477  ],
1478  'position' => 'top',
1479  ],
1480  'mediawiki.action.edit.styles' => [
1481  'position' => 'top',
1482  'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.styles.css',
1483  ],
1484  'mediawiki.action.edit.collapsibleFooter' => [
1485  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
1486  'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
1487  'dependencies' => [
1488  'jquery.makeCollapsible',
1489  'mediawiki.cookie',
1490  'mediawiki.icon',
1491  ],
1492  ],
1493  'mediawiki.action.edit.preview' => [
1494  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.js',
1495  'dependencies' => [
1496  'jquery.form',
1497  'jquery.spinner',
1498  'jquery.textSelection',
1499  'mediawiki.api',
1500  'mediawiki.diff.styles',
1501  'mediawiki.util',
1502  'mediawiki.jqueryMsg',
1503  ],
1504  'messages' => [
1505  // Keep the uses message keys in sync with EditPage#setHeaders
1506  'creating',
1507  'editconflict',
1508  'editing',
1509  'editingcomment',
1510  'editingsection',
1511  'pagetitle',
1512  'otherlanguages',
1513  'summary-preview',
1514  'subject-preview',
1515  'parentheses',
1516  'previewerrortext',
1517  ],
1518  ],
1519  'mediawiki.action.history' => [
1520  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
1521  'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
1522  ],
1523  'mediawiki.action.history.styles' => [
1524  'position' => 'top',
1525  'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.styles.css',
1526  ],
1527  // using this module is deprecated, for diff styles use mediawiki.diff.styles instead
1528  'mediawiki.action.history.diff' => [
1529  'position' => 'top',
1530  'styles' => [
1531  'resources/src/mediawiki/mediawiki.diff.styles.css',
1532  'resources/src/mediawiki/mediawiki.diff.styles.print.css' => [
1533  'media' => 'print'
1534  ],
1535  ],
1536  'targets' => [ 'desktop', 'mobile' ],
1537  ],
1538  'mediawiki.action.view.dblClickEdit' => [
1539  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.dblClickEdit.js',
1540  'dependencies' => [
1541  'mediawiki.util',
1542  'mediawiki.page.startup',
1543  'user.options',
1544  ],
1545  ],
1546  'mediawiki.action.view.metadata' => [
1547  'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.css',
1548  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.js',
1549  'messages' => [
1550  'metadata-expand',
1551  'metadata-collapse',
1552  ],
1553  ],
1554  'mediawiki.action.view.categoryPage.styles' => [
1555  'position' => 'top',
1556  'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less',
1557  'targets' => [ 'desktop', 'mobile' ]
1558  ],
1559  'mediawiki.action.view.postEdit' => [
1560  'templates' => [
1561  'postEdit.html' => 'resources/src/mediawiki.action/templates/postEdit.html',
1562  ],
1563  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.js',
1564  'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.css',
1565  'dependencies' => [
1566  'mediawiki.cookie',
1567  'mediawiki.jqueryMsg'
1568  ],
1569  'messages' => [
1570  'postedit-confirmation-created',
1571  'postedit-confirmation-restored',
1572  'postedit-confirmation-saved',
1573  ],
1574  ],
1575  'mediawiki.action.view.redirect' => [
1576  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.redirect.js',
1577  'dependencies' => 'jquery.client',
1578  'position' => 'top',
1579  'targets' => [ 'desktop', 'mobile' ],
1580  ],
1581  'mediawiki.action.view.redirectPage' => [
1582  'position' => 'top',
1583  'targets' => [ 'desktop', 'mobile' ],
1584  'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css',
1585  ],
1586  'mediawiki.action.view.rightClickEdit' => [
1587  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.rightClickEdit.js',
1588  ],
1589  'mediawiki.action.edit.editWarning' => [
1590  'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js',
1591  'dependencies' => [
1592  'jquery.textSelection',
1593  'mediawiki.jqueryMsg',
1594  'mediawiki.confirmCloseWindow',
1595  'user.options',
1596  ],
1597  'messages' => [
1598  'editwarning-warning',
1599  // editwarning-warning uses {{int:prefs-editing}}
1600  'prefs-editing'
1601  ],
1602  ],
1603  'mediawiki.action.view.filepage' => [
1604  'styles' => [
1605  'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.css' =>
1606  [ 'media' => 'print' ],
1607  'resources/src/mediawiki.action/mediawiki.action.view.filepage.css',
1608  ],
1609  'position' => 'top',
1610  ],
1611 
1612  /* MediaWiki Language */
1613 
1614  'mediawiki.language' => [
1615  'scripts' => [
1616  'resources/src/mediawiki.language/mediawiki.language.js',
1617  'resources/src/mediawiki.language/mediawiki.language.numbers.js',
1618  'resources/src/mediawiki.language/mediawiki.language.fallback.js',
1619  ],
1620  'languageScripts' => [
1621  'bs' => 'resources/src/mediawiki.language/languages/bs.js',
1622  'dsb' => 'resources/src/mediawiki.language/languages/dsb.js',
1623  'fi' => 'resources/src/mediawiki.language/languages/fi.js',
1624  'ga' => 'resources/src/mediawiki.language/languages/ga.js',
1625  'he' => 'resources/src/mediawiki.language/languages/he.js',
1626  'hsb' => 'resources/src/mediawiki.language/languages/hsb.js',
1627  'hu' => 'resources/src/mediawiki.language/languages/hu.js',
1628  'hy' => 'resources/src/mediawiki.language/languages/hy.js',
1629  'la' => 'resources/src/mediawiki.language/languages/la.js',
1630  'os' => 'resources/src/mediawiki.language/languages/os.js',
1631  'ru' => 'resources/src/mediawiki.language/languages/ru.js',
1632  'sl' => 'resources/src/mediawiki.language/languages/sl.js',
1633  'uk' => 'resources/src/mediawiki.language/languages/uk.js',
1634  ],
1635  'dependencies' => [
1636  'mediawiki.language.data',
1637  'mediawiki.cldr',
1638  ],
1639  'targets' => [ 'desktop', 'mobile' ],
1640  'messages' => [
1641  'and',
1642  'comma-separator',
1643  'word-separator'
1644  ],
1645  ],
1646 
1647  'mediawiki.cldr' => [
1648  'scripts' => 'resources/src/mediawiki.language/mediawiki.cldr.js',
1649  'dependencies' => [
1650  'mediawiki.libs.pluralruleparser',
1651  ],
1652  'targets' => [ 'desktop', 'mobile' ],
1653  ],
1654 
1655  'mediawiki.libs.pluralruleparser' => [
1656  'scripts' => 'resources/src/mediawiki.libs/CLDRPluralRuleParser.js',
1657  'targets' => [ 'desktop', 'mobile' ],
1658  ],
1659 
1660  'mediawiki.language.init' => [
1661  'scripts' => 'resources/src/mediawiki.language/mediawiki.language.init.js',
1662  'targets' => [ 'desktop', 'mobile' ],
1663  ],
1664 
1665  'mediawiki.jqueryMsg' => [
1666  // Add data for mediawiki.jqueryMsg, such as allowed tags
1667  'class' => 'ResourceLoaderJqueryMsgModule',
1668  'scripts' => 'resources/src/mediawiki/mediawiki.jqueryMsg.js',
1669  'dependencies' => [
1670  'mediawiki.util',
1671  'mediawiki.language',
1672  'user.options',
1673  'dom-level2-shim',
1674  ],
1675  'targets' => [ 'desktop', 'mobile' ],
1676  ],
1677 
1678  'mediawiki.language.months' => [
1679  'scripts' => 'resources/src/mediawiki.language/mediawiki.language.months.js',
1680  'dependencies' => 'mediawiki.language',
1681  'messages' => array_merge(
1685  )
1686  ],
1687 
1688  'mediawiki.language.names' => [ 'class' => 'ResourceLoaderLanguageNamesModule' ],
1689 
1690  'mediawiki.language.specialCharacters' => [
1691  'class' => 'ResourceLoaderSpecialCharacterDataModule'
1692  ],
1693 
1694  /* MediaWiki Libs */
1695 
1696  'mediawiki.libs.jpegmeta' => [
1697  'scripts' => 'resources/src/mediawiki.libs/mediawiki.libs.jpegmeta.js',
1698  'targets' => [ 'desktop', 'mobile' ],
1699  ],
1700 
1701  /* MediaWiki Page */
1702 
1703  'mediawiki.page.gallery' => [
1704  'scripts' => 'resources/src/mediawiki/page/gallery.js',
1705  'dependencies' => [
1706  'mediawiki.page.gallery.styles',
1707  'jquery.throttle-debounce',
1708  ]
1709  ],
1710  'mediawiki.page.gallery.styles' => [
1711  'styles' => [
1712  'resources/src/mediawiki/page/gallery.print.css' => [ 'media' => 'print' ],
1713  'resources/src/mediawiki/page/gallery.css',
1714  ],
1715  'position' => 'top',
1716  'targets' => [ 'desktop', 'mobile' ],
1717  ],
1718  'mediawiki.page.gallery.slideshow' => [
1719  'scripts' => 'resources/src/mediawiki/page/gallery-slideshow.js',
1720  'position' => 'top',
1721  'dependencies' => [
1722  'mediawiki.api',
1723  'mediawiki.Title',
1724  'oojs',
1725  'oojs-ui-core',
1726  'oojs-ui-widgets',
1727  'oojs-ui.styles.icons-media'
1728  ],
1729  'messages' => [
1730  'gallery-slideshow-toggle'
1731  ]
1732  ],
1733  'mediawiki.page.ready' => [
1734  'scripts' => 'resources/src/mediawiki/page/ready.js',
1735  'dependencies' => [
1736  'jquery.accessKeyLabel',
1737  'jquery.checkboxShiftClick',
1738  'jquery.makeCollapsible',
1739  'jquery.placeholder',
1740  'jquery.mw-jump',
1741  ],
1742  'targets' => [ 'desktop', 'mobile' ],
1743  ],
1744  'mediawiki.page.startup' => [
1745  'scripts' => 'resources/src/mediawiki/page/startup.js',
1746  'dependencies' => 'mediawiki.util',
1747  'position' => 'top',
1748  'targets' => [ 'desktop', 'mobile' ],
1749  ],
1750  'mediawiki.page.patrol.ajax' => [
1751  'scripts' => 'resources/src/mediawiki/page/patrol.ajax.js',
1752  'dependencies' => [
1753  'mediawiki.page.startup',
1754  'mediawiki.api',
1755  'mediawiki.util',
1756  'mediawiki.Title',
1757  'mediawiki.notify',
1758  'jquery.spinner',
1759  'user.tokens'
1760  ],
1761  'messages' => [
1762  'markedaspatrollednotify',
1763  'markedaspatrollederrornotify',
1764  'markedaspatrollederror-noautopatrol'
1765  ],
1766  ],
1767  'mediawiki.page.watch.ajax' => [
1768  'scripts' => 'resources/src/mediawiki/page/watch.js',
1769  'dependencies' => [
1770  'mediawiki.page.startup',
1771  'mediawiki.api.watch',
1772  'mediawiki.notify',
1773  'mediawiki.util',
1774  'jquery.accessKeyLabel',
1775  'mediawiki.RegExp',
1776  ],
1777  'messages' => [
1778  'watch',
1779  'unwatch',
1780  'watching',
1781  'unwatching',
1782  'tooltip-ca-watch',
1783  'tooltip-ca-unwatch',
1784  'watcherrortext',
1785  ],
1786  ],
1787  'mediawiki.page.rollback' => [
1788  'scripts' => 'resources/src/mediawiki/page/rollback.js',
1789  'dependencies' => [
1790  'mediawiki.api.rollback',
1791  'mediawiki.notify',
1792  'jquery.spinner',
1793  ],
1794  'messages' => [
1795  'rollbackfailed',
1796  'actioncomplete',
1797  ],
1798  ],
1799  'mediawiki.page.image.pagination' => [
1800  'scripts' => 'resources/src/mediawiki/page/image-pagination.js',
1801  'dependencies' => [
1802  'mediawiki.util',
1803  'jquery.spinner',
1804  ],
1805  ],
1806 
1807  /* MediaWiki Special pages */
1808 
1809  'mediawiki.special' => [
1810  'position' => 'top',
1811  'styles' => 'resources/src/mediawiki.special/mediawiki.special.css',
1812  'targets' => [ 'desktop', 'mobile' ],
1813  ],
1814  'mediawiki.special.apisandbox.styles' => [
1815  'targets' => [ 'desktop', 'mobile' ],
1816  'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.top.css',
1817  ],
1818  'mediawiki.special.apisandbox' => [
1819  'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.css',
1820  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.js',
1821  'targets' => [ 'desktop', 'mobile' ],
1822  'dependencies' => [
1823  'mediawiki.api',
1824  'mediawiki.jqueryMsg',
1825  'oojs-ui',
1826  'mediawiki.widgets.datetime',
1827  ],
1828  'messages' => [
1829  'apisandbox-intro',
1830  'apisandbox-submit',
1831  'apisandbox-reset',
1832  'apisandbox-fullscreen',
1833  'apisandbox-fullscreen-tooltip',
1834  'apisandbox-unfullscreen',
1835  'apisandbox-unfullscreen-tooltip',
1836  'apisandbox-retry',
1837  'apisandbox-loading',
1838  'apisandbox-load-error',
1839  'apisandbox-fetch-token',
1840  'apisandbox-helpurls',
1841  'apisandbox-examples',
1842  'apisandbox-dynamic-parameters',
1843  'apisandbox-dynamic-parameters-add-label',
1844  'apisandbox-dynamic-parameters-add-placeholder',
1845  'apisandbox-dynamic-error-exists',
1846  'apisandbox-deprecated-parameters',
1847  'apisandbox-no-parameters',
1848  'api-help-param-limit',
1849  'api-help-param-limit2',
1850  'api-help-param-integer-min',
1851  'api-help-param-integer-max',
1852  'api-help-param-integer-minmax',
1853  'api-help-param-multi-separate',
1854  'api-help-param-multi-max',
1855  'apisandbox-submit-invalid-fields-title',
1856  'apisandbox-submit-invalid-fields-message',
1857  'apisandbox-results',
1858  'apisandbox-sending-request',
1859  'apisandbox-loading-results',
1860  'apisandbox-results-error',
1861  'apisandbox-request-url-label',
1862  'apisandbox-request-time',
1863  'apisandbox-results-fixtoken',
1864  'apisandbox-results-fixtoken-fail',
1865  'apisandbox-alert-page',
1866  'apisandbox-alert-field',
1867  'apisandbox-continue',
1868  'apisandbox-continue-clear',
1869  'apisandbox-continue-help',
1870  'blanknamespace',
1871  ],
1872  ],
1873  'mediawiki.special.block' => [
1874  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.block.js',
1875  'styles' => 'resources/src/mediawiki.special/mediawiki.special.block.css',
1876  'dependencies' => 'mediawiki.util',
1877  ],
1878  'mediawiki.special.changeslist' => [
1879  'position' => 'top',
1880  'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.css',
1881  ],
1882  'mediawiki.special.changeslist.legend' => [
1883  'position' => 'top',
1884  'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.css',
1885  ],
1886  'mediawiki.special.changeslist.legend.js' => [
1887  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js',
1888  'dependencies' => [
1889  'jquery.makeCollapsible',
1890  'mediawiki.cookie',
1891  ],
1892  ],
1893  'mediawiki.special.changeslist.enhanced' => [
1894  'position' => 'top',
1895  'styles' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.enhanced.css',
1896  ],
1897  'mediawiki.special.changeslist.visitedstatus' => [
1898  'position' => 'top',
1899  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.changeslist.visitedstatus.js',
1900  ],
1901  'mediawiki.special.comparepages.styles' => [
1902  'position' => 'top',
1903  'styles' => 'resources/src/mediawiki.special/mediawiki.special.comparepages.styles.less',
1904  ],
1905  'mediawiki.special.edittags' => [
1906  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.edittags.js',
1907  'dependencies' => [
1908  'jquery.chosen',
1909  ],
1910  'messages' => [
1911  'tags-edit-chosen-placeholder',
1912  'tags-edit-chosen-no-results',
1913  ],
1914  ],
1915  'mediawiki.special.edittags.styles' => [
1916  'styles' => 'resources/src/mediawiki.special/mediawiki.special.edittags.css',
1917  'position' => 'top',
1918  ],
1919  'mediawiki.special.import' => [
1920  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.import.js',
1921  ],
1922  'mediawiki.special.movePage' => [
1923  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.movePage.js',
1924  'dependencies' => [
1925  'jquery.byteLimit',
1926  'mediawiki.widgets',
1927  ],
1928  ],
1929  'mediawiki.special.movePage.styles' => [
1930  'styles' => 'resources/src/mediawiki.special/mediawiki.special.movePage.css',
1931  'position' => 'top',
1932  ],
1933  'mediawiki.special.pageLanguage' => [
1934  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.pageLanguage.js',
1935  'dependencies' => [
1936  'oojs-ui-core',
1937  ],
1938  ],
1939  'mediawiki.special.pagesWithProp' => [
1940  'position' => 'top',
1941  'styles' => 'resources/src/mediawiki.special/mediawiki.special.pagesWithProp.css',
1942  ],
1943  'mediawiki.special.preferences' => [
1944  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.preferences.js',
1945  'position' => 'top',
1946  'messages' => [
1947  'prefs-tabs-navigation-hint',
1948  'prefswarning-warning',
1949  'saveprefs',
1950  'savedprefs',
1951  ],
1952  'dependencies' => [
1953  'mediawiki.language',
1954  'mediawiki.confirmCloseWindow',
1955  'mediawiki.notification.convertmessagebox',
1956  ],
1957  ],
1958  'mediawiki.special.userrights' => [
1959  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.userrights.js',
1960  'dependencies' => [
1961  'mediawiki.notification.convertmessagebox',
1962  ],
1963  ],
1964  'mediawiki.special.preferences.styles' => [
1965  'styles' => 'resources/src/mediawiki.special/mediawiki.special.preferences.styles.css',
1966  'position' => 'top',
1967  ],
1968  'mediawiki.special.recentchanges' => [
1969  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.recentchanges.js',
1970  'position' => 'top',
1971  ],
1972  'mediawiki.special.search' => [
1973  'position' => 'top',
1974  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.search.js',
1975  'styles' => 'resources/src/mediawiki.special/mediawiki.special.search.css',
1976  'dependencies' => 'mediawiki.widgets.SearchInputWidget',
1977  'messages' => [
1978  'powersearch-togglelabel',
1979  'powersearch-toggleall',
1980  'powersearch-togglenone',
1981  ],
1982  ],
1983  'mediawiki.special.search.styles' => [
1984  'styles' => 'resources/src/mediawiki.special/mediawiki.special.search.styles.css',
1985  'targets' => [ 'desktop', 'mobile' ],
1986  ],
1987  'mediawiki.special.undelete' => [
1988  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.undelete.js',
1989  ],
1990  'mediawiki.special.upload' => [
1991  'templates' => [
1992  'thumbnail.html' => 'resources/src/mediawiki.special/templates/thumbnail.html',
1993  ],
1994  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.upload.js',
1995  'messages' => [
1996  'widthheight',
1997  'size-bytes',
1998  'size-kilobytes',
1999  'size-megabytes',
2000  'size-gigabytes',
2001  'largefileserver',
2002  'editwarning-warning',
2003  // editwarning-warning uses {{int:prefs-editing}}
2004  'prefs-editing',
2005  ],
2006  'dependencies' => [
2007  'mediawiki.special.upload.styles',
2008  'jquery.spinner',
2009  'mediawiki.jqueryMsg',
2010  'mediawiki.api',
2011  'mediawiki.libs.jpegmeta',
2012  'mediawiki.Title',
2013  'mediawiki.util',
2014  'mediawiki.confirmCloseWindow',
2015  'user.options',
2016  ],
2017  ],
2018  'mediawiki.special.upload.styles' => [
2019  'styles' => 'resources/src/mediawiki.special/mediawiki.special.upload.styles.css',
2020  ],
2021  'mediawiki.special.userlogin.common.styles' => [
2022  'styles' => [
2023  'resources/src/mediawiki.special/mediawiki.special.userlogin.common.css',
2024  ],
2025  'position' => 'top',
2026  ],
2027  'mediawiki.special.userlogin.signup.styles' => [
2028  'position' => 'top',
2029  'styles' => [
2030  'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.css',
2031  ],
2032  ],
2033  'mediawiki.special.userlogin.login.styles' => [
2034  'position' => 'top',
2035  'styles' => [
2036  'resources/src/mediawiki.special/mediawiki.special.userlogin.login.css',
2037  ],
2038  ],
2039  'mediawiki.special.userlogin.signup.js' => [
2040  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js',
2041  'messages' => [
2042  'createacct-error',
2043  'createacct-emailrequired',
2044  'noname',
2045  'userexists',
2046  ],
2047  'dependencies' => [
2048  'mediawiki.api',
2049  'mediawiki.jqueryMsg',
2050  'jquery.throttle-debounce',
2051  ],
2052  ],
2053  'mediawiki.special.unwatchedPages' => [
2054  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.js',
2055  'styles' => 'resources/src/mediawiki.special/mediawiki.special.unwatchedPages.css',
2056  'messages' => [
2057  'addedwatchtext-short',
2058  'removedwatchtext-short',
2059  'unwatch',
2060  'unwatching',
2061  'watch',
2062  'watcherrortext',
2063  'watching',
2064  ],
2065  'dependencies' => [
2066  'mediawiki.api',
2067  'mediawiki.api.watch',
2068  'mediawiki.notify',
2069  'mediawiki.Title',
2070  'mediawiki.util',
2071  ],
2072  ],
2073  'mediawiki.special.watchlist' => [
2074  'scripts' => 'resources/src/mediawiki.special/mediawiki.special.watchlist.js',
2075  ],
2076  'mediawiki.special.version' => [
2077  'styles' => 'resources/src/mediawiki.special/mediawiki.special.version.css',
2078  ],
2079 
2080  /* MediaWiki Installer */
2081 
2082  // Used in the web installer. Test it after modifying this definition!
2083  'mediawiki.legacy.config' => [
2084  // These files are not actually loaded via ResourceLoader, so dependencies etc. won't work.
2085  'scripts' => 'mw-config/config.js',
2086  'styles' => 'mw-config/config.css',
2087  ],
2088 
2089  /* MediaWiki Legacy */
2090 
2091  'mediawiki.legacy.commonPrint' => [
2092  'position' => 'top',
2093  'styles' => [
2094  'resources/src/mediawiki.legacy/commonPrint.css' => [ 'media' => 'print' ]
2095  ],
2096  ],
2097  'mediawiki.legacy.protect' => [
2098  'scripts' => 'resources/src/mediawiki.legacy/protect.js',
2099  'dependencies' => 'jquery.byteLimit',
2100  'messages' => [ 'protect-unchain-permissions' ]
2101  ],
2102  // Used in the web installer. Test it after modifying this definition!
2103  'mediawiki.legacy.shared' => [
2104  'position' => 'top',
2105  'styles' => [
2106  'resources/src/mediawiki.legacy/shared.css' => [ 'media' => 'screen' ]
2107  ],
2108  ],
2109  'mediawiki.legacy.oldshared' => [
2110  'position' => 'top',
2111  'styles' => [
2112  'resources/src/mediawiki.legacy/oldshared.css' => [ 'media' => 'screen' ]
2113  ],
2114  ],
2115  'mediawiki.legacy.wikibits' => [
2116  'scripts' => 'resources/src/mediawiki.legacy/wikibits.js',
2117  'dependencies' => 'mediawiki.util',
2118  'position' => 'top',
2119  'targets' => [ 'desktop', 'mobile' ],
2120  ],
2121 
2122  /* MediaWiki UI */
2123 
2124  'mediawiki.ui' => [
2125  'position' => 'top',
2126  'skinStyles' => [
2127  'default' => [
2128  'resources/src/mediawiki.ui/default.less',
2129  ],
2130  ],
2131  'targets' => [ 'desktop', 'mobile' ],
2132  ],
2133  'mediawiki.ui.checkbox' => [
2134  'position' => 'top',
2135  'skinStyles' => [
2136  'default' => [
2137  'resources/src/mediawiki.ui/components/checkbox.less',
2138  ],
2139  ],
2140  'targets' => [ 'desktop', 'mobile' ],
2141  ],
2142  'mediawiki.ui.radio' => [
2143  'position' => 'top',
2144  'skinStyles' => [
2145  'default' => [
2146  'resources/src/mediawiki.ui/components/radio.less',
2147  ],
2148  ],
2149  'targets' => [ 'desktop', 'mobile' ],
2150  ],
2151  // Lightweight module for anchor styles
2152  'mediawiki.ui.anchor' => [
2153  'position' => 'top',
2154  'skinStyles' => [
2155  'default' => [
2156  'resources/src/mediawiki.ui/components/anchors.less',
2157  ],
2158  ],
2159  'targets' => [ 'desktop', 'mobile' ],
2160  ],
2161  // Lightweight module for button styles
2162  'mediawiki.ui.button' => [
2163  'position' => 'top',
2164  'skinStyles' => [
2165  'default' => [
2166  'resources/src/mediawiki.ui/components/buttons.less',
2167  ],
2168  ],
2169  'targets' => [ 'desktop', 'mobile' ],
2170  ],
2171  'mediawiki.ui.input' => [
2172  'position' => 'top',
2173  'skinStyles' => [
2174  'default' => [
2175  'resources/src/mediawiki.ui/components/inputs.less',
2176  ],
2177  ],
2178  'targets' => [ 'desktop', 'mobile' ],
2179  ],
2180  'mediawiki.ui.icon' => [
2181  'position' => 'top',
2182  'skinStyles' => [
2183  'default' => [
2184  'resources/src/mediawiki.ui/components/icons.less',
2185  ],
2186  ],
2187  'targets' => [ 'desktop', 'mobile' ],
2188  ],
2189  // Lightweight module for text styles
2190  'mediawiki.ui.text' => [
2191  'position' => 'top',
2192  'skinStyles' => [
2193  'default' => [
2194  'resources/src/mediawiki.ui/components/text.less',
2195  ],
2196  ],
2197  'targets' => [ 'desktop', 'mobile' ],
2198  ],
2199 
2200  'mediawiki.widgets' => [
2201  'scripts' => [
2202  'resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js',
2203  'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.js',
2204  'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js',
2205  'resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js',
2206  'resources/src/mediawiki.widgets/mw.widgets.TitleSearchWidget.js',
2207  'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js',
2208  'resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js',
2209  ],
2210  'skinStyles' => [
2211  'default' => [
2212  'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.less',
2213  ],
2214  ],
2215  'dependencies' => [
2216  'oojs-ui-widgets',
2217  'mediawiki.widgets.styles',
2218  // TitleInputWidget
2219  'mediawiki.Title',
2220  'mediawiki.api',
2221  'jquery.byteLimit',
2222  // TitleOptionWidget
2223  'jquery.autoEllipsis',
2224  ],
2225  'messages' => [
2226  // NamespaceInputWidget
2227  'blanknamespace',
2228  'namespacesall',
2229  // TitleInputWidget
2230  'mw-widgets-titleinput-description-new-page',
2231  'mw-widgets-titleinput-description-redirect',
2232  ],
2233  'targets' => [ 'desktop', 'mobile' ],
2234  ],
2235  'mediawiki.widgets.styles' => [
2236  'skinStyles' => [
2237  'default' => [
2238  'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.css',
2239  'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.base.css',
2240  ],
2241  ],
2242  'position' => 'top',
2243  'targets' => [ 'desktop', 'mobile' ],
2244  ],
2245  'mediawiki.widgets.DateInputWidget' => [
2246  'scripts' => [
2247  'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js',
2248  'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js',
2249  ],
2250  'skinStyles' => [
2251  'default' => [
2252  'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less',
2253  'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less',
2254  ],
2255  ],
2256  'messages' => [
2257  'mw-widgets-dateinput-no-date',
2258  'mw-widgets-dateinput-placeholder-day',
2259  'mw-widgets-dateinput-placeholder-month',
2260  ],
2261  'dependencies' => [
2262  'oojs-ui-widgets',
2263  'moment',
2264  ],
2265  'targets' => [ 'desktop', 'mobile' ],
2266  ],
2267  'mediawiki.widgets.datetime' => [
2268  'scripts' => [
2269  'resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.js',
2270  'resources/src/mediawiki.widgets.datetime/CalendarWidget.js',
2271  'resources/src/mediawiki.widgets.datetime/DateTimeFormatter.js',
2272  'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js',
2273  'resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js',
2274  ],
2275  'skinStyles' => [
2276  'default' => [
2277  'resources/src/mediawiki.widgets.datetime/CalendarWidget.less',
2278  'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.less',
2279  ],
2280  ],
2281  'messages' => [
2282  'timezone-utc',
2283  'timezone-local',
2284  'january',
2285  'february',
2286  'march',
2287  'april',
2288  'may_long',
2289  'june',
2290  'july',
2291  'august',
2292  'september',
2293  'october',
2294  'november',
2295  'december',
2296  'jan',
2297  'feb',
2298  'mar',
2299  'apr',
2300  'may',
2301  'jun',
2302  'jul',
2303  'aug',
2304  'sep',
2305  'oct',
2306  'nov',
2307  'dec',
2308  'sunday',
2309  'monday',
2310  'tuesday',
2311  'wednesday',
2312  'thursday',
2313  'friday',
2314  'saturday',
2315  'sun',
2316  'mon',
2317  'tue',
2318  'wed',
2319  'thu',
2320  'fri',
2321  'sat',
2322  'period-am',
2323  'period-pm',
2324  ],
2325  'dependencies' => [
2326  'oojs-ui-core',
2327  ],
2328  'targets' => [ 'desktop', 'mobile' ],
2329  ],
2330  'mediawiki.widgets.CategorySelector' => [
2331  'scripts' => [
2332  'resources/src/mediawiki.widgets/mw.widgets.CategoryCapsuleItemWidget.js',
2333  'resources/src/mediawiki.widgets/mw.widgets.CategorySelector.js',
2334  ],
2335  'dependencies' => [
2336  'oojs-ui-widgets',
2337  'mediawiki.api',
2338  'mediawiki.ForeignApi',
2339  'mediawiki.Title',
2340  ],
2341  'messages' => [
2342  'red-link-title',
2343  ],
2344  'targets' => [ 'desktop', 'mobile' ],
2345  ],
2346  'mediawiki.widgets.UserInputWidget' => [
2347  'scripts' => [
2348  'resources/src/mediawiki.widgets/mw.widgets.UserInputWidget.js',
2349  ],
2350  'dependencies' => [
2351  'oojs-ui-widgets',
2352  ],
2353  'targets' => [ 'desktop', 'mobile' ],
2354  ],
2355  'mediawiki.widgets.SearchInputWidget' => [
2356  'scripts' => [
2357  'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js',
2358  ],
2359  'dependencies' => [
2360  'mediawiki.searchSuggest',
2361  // FIXME: Needs TitleInputWidget only
2362  'mediawiki.widgets',
2363  ],
2364  ],
2365  'mediawiki.widgets.SearchInputWidget.styles' => [
2366  'skinStyles' => [
2367  'default' => [
2368  'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.css',
2369  ],
2370  ],
2371  'position' => 'top',
2372  'targets' => [ 'desktop', 'mobile' ],
2373  ],
2374  'mediawiki.widgets.StashedFileWidget' => [
2375  'scripts' => [
2376  'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.js',
2377  ],
2378  'skinStyles' => [
2379  'default' => [
2380  'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.less',
2381  ],
2382  ],
2383  'dependencies' => [
2384  'oojs-ui-core',
2385  ],
2386  ],
2387  /* es5-shim */
2388  'es5-shim' => [
2389  'scripts' => [
2390  'resources/lib/es5-shim/es5-shim.js',
2391  'resources/src/polyfill-object-create.js',
2392  ],
2393  'targets' => [ 'desktop', 'mobile' ],
2394  'skipFunction' => 'resources/src/es5-skip.js',
2395  ],
2396 
2397  /* dom-level2-shim */
2398  // IE 8
2399  'dom-level2-shim' => [
2400  'scripts' => 'resources/src/polyfill-nodeTypes.js',
2401  'targets' => [ 'desktop', 'mobile' ],
2402  'skipFunction' => 'resources/src/dom-level2-skip.js',
2403  ],
2404 
2405  /* OOjs */
2406  'oojs' => [
2407  'scripts' => [
2408  'resources/lib/oojs/oojs.jquery.js',
2409  'resources/src/oojs-global.js',
2410  ],
2411  'targets' => [ 'desktop', 'mobile' ],
2412  'dependencies' => [
2413  'es5-shim',
2414  'json',
2415  ],
2416  ],
2417 
2418  'mediawiki.router' => [
2419  'scripts' => [
2420  'resources/src/mediawiki.router/index.js',
2421  ],
2422  'targets' => [ 'desktop', 'mobile' ],
2423  'dependencies' => [
2424  'oojs-router',
2425  ],
2426  ],
2427 
2428  'oojs-router' => [
2429  'scripts' => [
2430  'resources/lib/oojs-router/oojs-router.js',
2431  ],
2432  'targets' => [ 'desktop', 'mobile' ],
2433  'dependencies' => [
2434  'oojs',
2435  ],
2436  ],
2437 
2438  /* OOjs UI */
2439  // @see ResourcesOOUI.php
2440 ];
static $mMonthAbbrevMsgs
Definition: Language.php:81
static $mMonthMsgs
Definition: Language.php:71
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
static $mMonthGenMsgs
Definition: Language.php:76