Umherirrender has uploaded a new change for review. https://gerrit.wikimedia.org/r/85232
Change subject: Add continue editing link also to js and css pages ...................................................................... Add continue editing link also to js and css pages Wrap link in a span with class Change-Id: I3cbbf9c2ae23672c0939261f2675273f5923e5f9 --- M includes/EditPage.php 1 file changed, 8 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/32/85232/1 diff --git a/includes/EditPage.php b/includes/EditPage.php index 63e3e66..963ef1c 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3118,6 +3118,10 @@ return $previewHTML; } + # provide a anchor link to the editform + $continueEditing = '<span class="mw-continue-editing">' . + '[[#' . self::EDITFORM_ID . '|' . $wgLang->getArrow() . ' ' . + wfMessage( 'continue-editing' )->text() . ']]</span>'; if ( $this->mTriedSave && !$this->mTokenOk ) { if ( $this->mTokenOkExceptSuffix ) { $note = wfMessage( 'token_suffix_mismatch' )->plain(); @@ -3128,8 +3132,7 @@ } elseif ( $this->incompleteForm ) { $note = wfMessage( 'edit_form_incomplete' )->plain(); } else { - $note = wfMessage( 'previewnote' )->plain() . - ' [[#' . self::EDITFORM_ID . '|' . $wgLang->getArrow() . ' ' . wfMessage( 'continue-editing' )->text() . ']]'; + $note = wfMessage( 'previewnote' )->plain() . ' ' . $continueEditing; } $parserOptions = $this->mArticle->makeParserOptions( $this->mArticle->getContext() ); @@ -3158,7 +3161,9 @@ # Used messages to make sure grep find them: # Messages: usercsspreview, userjspreview, sitecsspreview, sitejspreview if ( $level && $format ) { - $note = "<div id='mw-{$level}{$format}preview'>" . wfMessage( "{$level}{$format}preview" )->text() . "</div>"; + $note = "<div id='mw-{$level}{$format}preview'>" . + wfMessage( "{$level}{$format}preview" )->text() . + ' ' . $continueEditing . "</div>"; } } -- To view, visit https://gerrit.wikimedia.org/r/85232 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3cbbf9c2ae23672c0939261f2675273f5923e5f9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits