* (bug 22647) Add category details in search results.
* (bug 23276) Add hook to Special:NewPages to modify query
* Add accesskey 's' and tooltip to 'Save' button at Special:Preferences
+* Add accesskey 'b' and tooltip to the summary field of edit mode
* (bug 20186) Allow filtering Special:Contributions for RevisionDeleted edits
* (bug 22858) $wgLocalStylePath is by default set to the same value as
$wgStylePath but should never point to a different domain than the site is
* @return array An array in the format array( $label, $input )
*/
function getSummaryInput($summary = "", $labelText = null, $inputAttrs = null, $spanLabelAttrs = null) {
+ global $wgUser;
$inputAttrs = ( is_array($inputAttrs) ? $inputAttrs : array() ) + array(
'id' => 'wpSummary',
'maxlength' => '200',
'tabindex' => '1',
'size' => 60,
'spellcheck' => 'true',
- );
-
+ ) + $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'summary' );
+
$spanLabelAttrs = ( is_array($spanLabelAttrs) ? $spanLabelAttrs : array() ) + array(
'class' => $this->missingSummary ? 'mw-summarymissed' : 'mw-summary',
'id' => "wpSummaryLabel"
'accesskey-watch' => 'w', # do not translate or duplicate this message to other languages
'accesskey-upload' => 's', # do not translate or duplicate this message to other languages
'accesskey-preferences-save' => 's', # do not translate or duplicate this message to other languages
+'accesskey-summary' => 'b', # do not translate or duplicate this message to other languages
# Tooltip help for the actions
'tooltip-pt-userpage' => 'Your user page',
'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. It allows adding a reason in the summary.',
'tooltip-preferences-save' => 'Save preferences',
+'tooltip-summary' => 'Enter a short 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
'accesskey-watch',
'accesskey-upload',
'accesskey-preferences-save',
+ 'accesskey-summary',
'addsection',
'talkpageheader',
'anonnotice',
'accesskey-watch',
'accesskey-upload',
'accesskey-preferences-save',
+ 'accesskey-summary',
),
'tooltips' => array(
'tooltip-pt-userpage',
'tooltip-rollback',
'tooltip-undo',
'tooltip-preferences-save',
+ 'tooltip-summary',
),
'stylesheets' => array(
'common.css',