MediaWiki:Gadget-mySandbox.js
Bemærk: Efter at have gemt er du måske nødt til at tømme din browsers cache for at kunne se ændringerne.
- Firefox / Safari: Hold Shift nede og klik på Reload, eller tryk enten Ctrl-F5 eller Ctrl-R (⌘-R på en Mac).
- Google Chrome: Tryk Ctrl-Shift-R (⌘-Shift-R på en Mac).
- Internet Explorer: Hold Ctrl nede og klik på Refresh, eller tryk på Ctrl-F5.
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files
/* _____________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
* |_____________________________________________________________________________|
*
* Add a "my sandbox" link to the personal toolbar area
*/
$( document ).ready( function() {
mw.util.addPortletLink(
'p-personal',
'/w/index.php?title=Special:MyPage/sandbox&action=edit&preload=Template:User_sandbox/preload&editintro=Template:User_sandbox',
'My sandbox',
'pt-mysandbox',
'Go to your sandbox',
null,
'#pt-preferences'
);
});