MWWelcomeDialog: Split text, tweak styling

Change-Id: If15dc9fe4a01e81cf7d85e2670878bbd5899f068
This commit is contained in:
James D. Forrester 2015-09-15 16:25:48 -07:00
parent e0a3405399
commit 9b0779da9b
5 changed files with 20 additions and 4 deletions

View file

@ -1045,6 +1045,7 @@
"visualeditor-viewpage-savewarning-title",
"visualeditor-welcomedialog-action",
"visualeditor-welcomedialog-content",
"visualeditor-welcomedialog-content-thanks",
"visualeditor-welcomedialog-title",
"visualeditor-wikitext-progress",
"visualeditor-wikitext-warning-title",

View file

@ -48,7 +48,15 @@ ve.ui.MWWelcomeDialog.prototype.getSetupProcess = function ( data ) {
data = $.extend( {
title: ve.msg( 'visualeditor-welcomedialog-title', mw.user, mw.config.get( 'wgSiteName' ) ),
message: $( '<div>' ).addClass( 'visualeditor-welcomedialog-content' )
.append( ve.msg( 'visualeditor-welcomedialog-content' ) )
.append(
$( '<span>' )
.addClass( 'visualeditor-welcomedialog-content-text' )
.text(
ve.msg( 'visualeditor-welcomedialog-content' ) +
'<br />' +
ve.msg( 'visualeditor-welcomedialog-content-thanks' )
)
)
}, data );
return ve.ui.MWWelcomeDialog.super.prototype.getSetupProcess.call( this, data );

View file

@ -5,8 +5,13 @@
* @license The MIT License (MIT); see LICENSE.txt
*/
.visualeditor-welcomedialog-content {
margin-top: 1em;
background: url(images/welcomeSplash-ltr.png) 50% 100% no-repeat;
background-size: 35%;
background-size: 50%;
height: 200px;
text-align: center;
}
.visualeditor-welcomedialog-content-text {
display: inline-block;
margin-top: 12em;
}

View file

@ -28,6 +28,7 @@
"visualeditor-help-link": "mw:Special:MyLanguage\/Help:VisualEditor\/User guide",
"visualeditor-help-title": "Guide for how to use the editor",
"visualeditor-welcomedialog-action": "Start editing",
"visualeditor-welcomedialog-content": "Anyone can edit, and every improvement helps. Thank you for helping the world discover more!",
"visualeditor-welcomedialog-content": "Anyone can edit, and every improvement helps.",
"visualeditor-welcomedialog-content-thanks": "Thank you for helping the world discover more!",
"visualeditor-welcomedialog-title": "{{GENDER:$1|Welcome}} to $2"
}

View file

@ -33,5 +33,6 @@
"visualeditor-help-title": "Title (hover) text for the link to the user guide",
"visualeditor-welcomedialog-action": "Label for the 'Start editing' button used to close the welcome dialog and start using the editor.\n{{Identical|Start editing}}",
"visualeditor-welcomedialog-content": "Text welcoming the user to editing.",
"visualeditor-welcomedialog-content-thanks": "Text thanking the user for any edits they might make.",
"visualeditor-welcomedialog-title": "Title of the welcome dialog. Parameters:\n* $1 - username or empty string, for GENDER support\n* $2 - value of the SITENAME parser function."
}