// Keep maintenance/jsduck/eg-iframe.html in sync
'scripts' => array(
'resources/src/mediawiki/mediawiki.js',
+ 'resources/src/mediawiki/mediawiki.errorLogger.js',
'resources/src/mediawiki/mediawiki.startUp.js',
),
'debugScripts' => 'resources/src/mediawiki/mediawiki.log.js',
'scripts' => 'resources/src/mediawiki/mediawiki.template.js',
'targets' => array( 'desktop', 'mobile' ),
),
+ 'mediawiki.template.mustache' => array(
+ 'scripts' => array(
+ 'resources/lib/mustache/mustache.js',
+ 'resources/src/mediawiki/mediawiki.template.mustache.js',
+ ),
+ 'targets' => array( 'desktop', 'mobile' ),
+ ),
'mediawiki.apipretty' => array(
'styles' => 'resources/src/mediawiki/mediawiki.apipretty.css',
'targets' => array( 'desktop', 'mobile' ),
'mediawiki.Title',
'user.tokens',
),
+ 'targets' => array( 'desktop', 'mobile' ),
),
'mediawiki.api.login' => array(
'scripts' => 'resources/src/mediawiki.api/mediawiki.api.login.js',
'dependencies' => 'mediawiki.api',
),
+ 'mediawiki.api.options' => array(
+ 'scripts' => 'resources/src/mediawiki.api/mediawiki.api.options.js',
+ 'dependencies' => 'mediawiki.api',
+ 'targets' => array( 'desktop', 'mobile' ),
+ ),
'mediawiki.api.parse' => array(
'scripts' => 'resources/src/mediawiki.api/mediawiki.api.parse.js',
'dependencies' => 'mediawiki.api',
'scripts' => array(
'resources/src/mediawiki/mediawiki.confirmCloseWindow.js',
),
+ 'targets' => array( 'desktop', 'mobile' ),
),
'mediawiki.debug' => array(
'scripts' => array(
'scripts' => 'resources/src/mediawiki/mediawiki.feedback.js',
'styles' => 'resources/src/mediawiki/mediawiki.feedback.css',
'dependencies' => array(
- 'mediawiki.api.edit',
+ 'mediawiki.messagePoster',
'mediawiki.Title',
'oojs-ui',
),
'feedback-error1',
'feedback-error2',
'feedback-error3',
+ 'feedback-error4',
'feedback-message',
'feedback-subject',
'feedback-submit',
'feedback-useragent'
),
),
+
+ 'mediawiki.filewarning' => array(
+ 'scripts' => 'resources/src/mediawiki/mediawiki.filewarning.js',
+ 'styles' => 'resources/src/mediawiki/mediawiki.filewarning.less',
+ 'dependencies' => array(
+ 'oojs-ui',
+ ),
+ ),
+
'mediawiki.helplink' => array(
'styles' => array(
- 'resources/src/mediawiki/mediawiki.helplink.css',
+ 'resources/src/mediawiki/mediawiki.helplink.less',
),
'targets' => array( 'desktop', 'mobile' ),
),
),
'targets' => array( 'desktop', 'mobile' ),
),
+ 'mediawiki.messagePoster' => array(
+ 'scripts' => array(
+ 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.factory.js',
+ 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.MessagePoster.js',
+ ),
+ 'dependencies' => array(
+ 'oojs',
+ 'mediawiki.api',
+ ),
+ 'targets' => array( 'desktop', 'mobile' ),
+ ),
+ 'mediawiki.messagePoster.wikitext' => array(
+ 'scripts' => array(
+ 'resources/src/mediawiki.messagePoster/mediawiki.messagePoster.WikitextMessagePoster.js',
+ ),
+ 'dependencies' => array(
+ 'mediawiki.api.edit',
+ ),
+ 'targets' => array( 'desktop', 'mobile' ),
+ ),
'mediawiki.notification' => array(
'styles' => array(
'resources/src/mediawiki/mediawiki.notification.css',
),
),
'mediawiki.sectionAnchor' => array(
- 'skinStyles' => array(
- 'default' => array(
- 'resources/src/mediawiki/mediawiki.sectionAnchor.css' =>
- array( 'media' => 'screen'),
- 'resources/src/mediawiki/mediawiki.sectionAnchor.hide.css' =>
- array( 'media' => 'print' ),
- ),
- ),
+ // Back-compat to hide it on cached pages (T18691; Ie9e334e973; 2015-03-17)
+ 'styles' => 'resources/src/mediawiki/mediawiki.sectionAnchor.css',
'targets' => array( 'desktop', 'mobile' ),
),
'mediawiki.Title' => array(
'mediawiki.jqueryMsg',
),
'messages' => array(
+ // Keep the uses message keys in sync with EditPage#setHeaders
+ 'creating',
+ 'editconflict',
+ 'editing',
+ 'editingcomment',
+ 'editingsection',
+ 'pagetitle',
'otherlanguages',
'tooltip-p-lang',
'summary-preview',
+ 'subject-preview',
'parentheses',
+ 'previewerrortext',
),
),
'mediawiki.action.edit.stash' => array(
'mediawiki.language.names' => array( 'class' => 'ResourceLoaderLanguageNamesModule' ),
+ 'mediawiki.language.specialCharacters' => array(
+ 'class' => 'ResourceLoaderSpecialCharacterDataModule'
+ ),
+
/* MediaWiki Libs */
'mediawiki.libs.jpegmeta' => array(
'targets' => array( 'desktop', 'mobile' ),
),
- 'oojs-ui.styles' => array(
- 'position' => 'top',
- 'skinStyles' => array(
- 'default' => 'resources/lib/oojs-ui/oojs-ui-mediawiki.css',
- ),
- 'targets' => array( 'desktop', 'mobile' ),
- ),
-
// FIXME: This is a bit of a mess; T92551 requests fixing
'oojs-ui.styles.icons-alerts' => array(
'position' => 'top',