Jump to content

Help:My sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gadget850 (talk | contribs) at 12:02, 22 February 2012 (start). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

My sandbox is a gadget that shows a link in the personal toolbar at the top of the page. It is enabled by default; the state can be changed byt setting:

Preferences → Gadgets → Add a "my sandbox" link to the personal toolbar area

The link opens user subpage Special:MyPage/sandbox. If the page does not exist then it is opened for edition with {{User sandbox}} added to the top of the editing window. The template notifies readers that the page is a sandbox, not an article, and it prevents the page from being indexed by search engines.

The sandbox link is lower case and cannot be changed.

Customizing

The gadget cannot be customized, but it can be disabled and a custom version created in userspace.

Edit Special:MyPage/common.js:

To change the name to Special:MyPage/Sandbox:

mw.util.addPortletLink('p-personal', '/w/index.php?title=Special:MyPage/Sandbox&action=edit&preload=Template%3AUser_sandbox%2Fpreload&editintro=Template%3AUser_sandbox', 'My sandbox', 'pt-mysandbox', 'Go to my sandbox');

To remove autoedit:

mw.util.addPortletLink('p-personal', '/w/index.php?title=Special:MyPage/Sandbox', 'My sandbox', 'pt-mysandbox', 'Go to my sandbox');

To list personal subpages:

mw.util.addPortletLink ('p-personal', '/wiki/Special:PrefixIndex/User:username', 'My subpages');
'pt-mysubpages', 'Go to my subpages');

To list personal subpages in the left toolbox

mw.util.addPortletLink ('p-tb', '/wiki/Special:PrefixIndex/User:Gadget850', 'My subpages' 'pt-mysubpages', 'Go to my subpages');