MediaWiki:Gadget-SandboxLink.js: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

March 30, 2025

  • curprev 13:0413:04, March 30, 2025Porplemontage talk contribs 697 bytes +697 Created page with "→‎Add a personal sandbox link to the user menu: function pageExists(pageTitle) { var api = new mw.Api(); api.get({ action: 'query', titles: pageTitle }).done(function(data) { var pageId = Object.keys(data.query.pages)[0]; return !(pageId === '-1'); }); return false; } $(function() { var pageTitle = 'User:' + mw.config.get('wgUserName') + '/sandbox'; if (!pageExists(pageTitle)) pageTitle = 'User:' + mw.config.get('wgUserName') + '/Sandbox'; var title = n..."