MediaWiki:Gadget-mySandbox.js: Difference between revisions

Jump to navigation Jump to search
discourage the anon sandboxes
mNo edit summary
(discourage the anon sandboxes)
Line 32: Line 32:
// Use Special:MyPage (as opposed to mw.user.getName()) so that it
// Use Special:MyPage (as opposed to mw.user.getName()) so that it
// works for logged-out users as well.
// works for logged-out users as well.
title = new mw.Title( 'Special:MyPage/' + conf.subpageName );
if (mw.user.isAnon()) {title = new mw.Title( 'Project:Sandbox' )}else{title = new mw.Title( 'Special:MyPage/' + conf.subpageName )};


url = new mw.Uri( title.getUrl() );
url = new mw.Uri( title.getUrl() );
checkuser, Administrators
2,635

edits

Navigation menu