Jump to content

User:Equazcion/SafetyEdit

From Wikipedia, the free encyclopedia
User script
SafetyEdit
DescriptionAdds a "safety switch" to template-protected pages
Author(s)Equazcion
StatusStable
UpdatedOctober 29, 2013; 11 years ago (2013-10-29)
BrowsersFirefox, Chrome
SkinsVector
SourceUser:Equazcion/SafetyEdit.js
This script is only of use to those with the template editor user right, and to administrators.

Safety Edit adds a check box to template-protected pages during editing, which must be clicked before saving is enabled.

  • When the check box is clear (default), the save button is disabled.
  • Pressing "enter" from the edit summary line will also not save the page.
  • Placing a check in the box re-enables both of the above.

What's all this then?

[edit]

Template protection is present primarily on templates where edits are to be implemented with extra care and consideration due to their massive transclusion rates. For those with the ability to edit such pages (template editors and administrators), this script provides a layer of safety when preparing edits to these pages, allowing you to tweak code and experiment with previews, with assurance that you won't accidentally save anything before you're ready.

Installation

[edit]

To use this script: Copy the line below, then click here, paste the line, and hit the save button.

  • {{subst:iusc|User:Equazcion/SafetyEdit.js}}

Option for administrators: Add the following line to enable this safety feature on sysop-protected (fully protected) pages:

var sysopSafety = true;