At least on de.wiki the users with the review right have the rollback right too. They are confused about the difference rollback/undo. Hope that helps a bit
* (bug 13815) In the comment for page moves, use the colon-separator message
instead of a hardcoded colon.
* Allow <gallery> to accept image names without an Image: prefix
+* Add tooltips to rollback and undo links
=== Bug fixes in 1.14 ===
}
$query['token'] = $wgUser->editToken( array( $title->getPrefixedText(),
$rev->getUserText() ) );
- return $this->link( $title, wfMsgHtml( 'rollbacklink' ), array(),
+ return $this->link( $title, wfMsgHtml( 'rollbacklink' ),
+ array( 'title' => wfMsg( 'tooltip-rollback' ) ),
$query, array( 'known', 'noclasses' ) );
}
if( $this->mTitle->quickUserCan( 'edit' ) &&
!$rev->isDeleted( Revision::DELETED_TEXT ) &&
!$next->rev_deleted & Revision::DELETED_TEXT ) {
- $undolink = $this->mSkin->makeKnownLinkObj(
- $this->mTitle,
- wfMsgHtml( 'editundo' ),
- 'action=edit&undoafter=' . $next->rev_id . '&undo=' . $rev->getId()
+
+ # Create undo tooltip for the first (=latest) line only
+ $undoTooltip = $latest
+ ? array( 'title' => wfMsg( 'tooltip-undo' ) )
+ : array();
+ $undolink = $this->mSkin->link(
+ $this->mTitle,
+ wfMsgHtml( 'editundo' ),
+ $undoTooltip,
+ array( 'action' => 'edit', 'undoafter' => $next->rev_id, 'undo' => $rev->getId() ),
+ array( 'known', 'noclasses' )
);
$tools[] = "<span class=\"mw-history-undo\">{$undolink}</span>";
}
. " (<a href='$oldEdit'>" . wfMsgHtml( $editable ? 'editold' : 'viewsourceold' ) . "</a>)";
// Add an "undo" link
$newUndo = $this->mNewPage->escapeLocalUrl( 'action=edit&undoafter=' . $this->mOldid . '&undo=' . $this->mNewid);
+ $htmlLink = htmlspecialchars( wfMsg( 'editundo' ) );
+ $htmlTitle = linker::tooltip( 'undo' );
if( $editable && !$this->mOldRev->isDeleted( Revision::DELETED_TEXT ) && !$this->mNewRev->isDeleted( Revision::DELETED_TEXT ) ) {
- $this->mNewtitle .= " (<a href='$newUndo'>" . htmlspecialchars( wfMsg( 'editundo' ) ) . "</a>)";
+ $this->mNewtitle .= " (<a href='$newUndo' $htmlTitle>" . $htmlLink . "</a>)";
}
if( !$this->mOldRev->userCan( Revision::DELETED_TEXT ) ) {
'tooltip-watch' => 'Add this page to your watchlist',
'tooltip-recreate' => 'Recreate the page despite it having been deleted',
'tooltip-upload' => 'Start upload',
+'tooltip-rollback' => '"Rollback" reverts edit(s) to this page of the last contributor in one click.',
+'tooltip-undo' => '"Undo" reverts this edit and opens the edit form in preview mode. Allows adding a reason in the summary.',
# Stylesheets
'common.css' => '/* CSS placed here will be applied to all skins */', # only translate this message to other languages if you have to change it
'tooltip-watch',
'tooltip-recreate',
'tooltip-upload',
+ 'tooltip-rollback',
+ 'tooltip-undo',
),
'stylesheets' => array(
'common.css',