Here is some extension code that moves the "Move" command into the top tabs in Vector. We did this on our wiki because many users got confused and could not find the Move command.
<?php
$wgHooks['SkinTemplateNavigation'][] = 'efVectorMenuChanges';
function efVectorMenuChanges(&$skinTemplate, &$links) { global $wgVectorUseIconWatch;
$title = $skinTemplate->mTitle;
// Move the "rename/move" menu item into the top tabs if ($title->quickUserCan('move') && isset($links['actions']) && isset($links['actions']['move'])) { $links['views']['move'] = $links['actions']['move']; unset($links['actions']['move']); }
// Now Move is to the right of the watch icon. // Remove and re-append the watch icon. $place = $wgVectorUseIconWatch ? 'views' : 'actions'; $mode = $title->userIsWatching() ? 'unwatch' : 'watch'; if (isset($links[$place]) && isset($links[$place][$mode])) { $watchData = $links[$place][$mode]; unset($links[$place][$mode]); $links[$place][$mode] = $watchData; }
return true; }