MediaWiki:Gadget-WorkshopMove.js

// "Move to Workshop" link/button by Bobogoobo $(document).ready(function{ if ( mw.config.get('wgCanonicalSpecialPageName') === 'Movepage' && $('#wpNewTitleNs :selected').html === '(Main)' ) {   $('#mw-movepage-table .mw-input:first').append( '' + 'Move to Workshop' );

$('#moveWorkshop').click(function {       $('#wpNewTitleNs option[value="0"]').removeAttr('selected');        $('#wpNewTitleNs option[value="4"]').attr('selected', 'selected');        $('#wpNewTitleMain').val('Workshop/' + $('#wpNewTitleMain').val);    }); } });