User:Lost Labyrinth/admin/adminbuttons.js
Jump to navigation
Jump to search
Important note on account security
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with
importScript
or iusc
, take note that this causes you to dynamically load a remote script, which could be changed by others. The code will be executed when you preview this page.Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Edge: Press Ctrl-Shift-Del, select Cached data and files, and click Clear
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// <nowiki>
// BEGIN MW GADGET
// *********
if (wgAction == "edit" || wgAction == "submit") {
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/sims/images/0/02/Blocked_button.png",
"speedTip": "Blocked Template",
"tagOpen": "{{Subst:"+"Tempblock|reason=",
"tagClose": "|duration=|sig=~"+"~~"+"~}}",
"sampleText": "REASON"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/sims/images/7/79/Warn_button.png",
"speedTip": "Warning Template",
"tagOpen": "{{Subst:"+"Warning|reason=",
"tagClose": "|~"+"~~"+"~}}",
"sampleText": ""
};
}
}
//END MW GADGET
//</nowiki>