User:Equazcion/SafetyEdit
SafetyEdit | |
---|---|
File:SafetyEdit script screenshot.png | |
Description | Adds a "safety switch" to template-protected pages |
Author | Equazcion |
Status | Stable |
Updated | October 29, 2013 |
Browser support | Firefox, Chrome |
Skin support | Vector |
Source | User: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?
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
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;