User:ChzzBot II/doc
Premise
[edit]Maintain the heading on sandboxes, and clear them periodically.
Sandboxes checked
[edit](more TBA)
ChzzBot II program "Sandbox one"
[edit]Runs continuously. Checks whether the header exists, if not, prepend one.
Details
[edit]Every 1 minute (which could be adjusted), it checks the following sandboxes, to see if they start with either {{Sandbox heading}} or any of the following redirects to that;
- Template:Please leave this line alone (sandbox talk heading)
- Template:Please leave this line alone (Sandbox heading)
- Template:Sandbox heading/noedit
- Template:Please leave this line alone (sandbox talk heading)/noedit
- Template:PLTLA (SH)
- Template:Please leave this line alone (sandbox heading)
- Template:Please leave this line alone (sandbox heading)/noedit
- If the page starts with any of those, it does nothing.
- If they do not, it inserts {{Sandbox heading}} <!-- Please leave this line alone! --> (and two line breaks).
- It also checks for the existence of any of the templates elsewhere in the page (if the heading had just been moved down), and if it finds any (heading), it removes it.
Note: It does not reinsert the heading more than once every 5 minutes (configurable) - to avoid any possible 'warring'.
ChzzBot II program "Sandbox two"
[edit]Runs once per hour. Clears the sandboxes (replacing the content with the header).
Details
[edit]An hourly run is scheduled via CRON - so, if it fails, it should re-try in an hour.
If the sandbox has not been edited by anyone other than ChzzBot II, it replaces the entire sandbox page with this (which could be tweaked)...
Welcome to this sandbox page, a space to experiment with editing.
You can either edit the source code ("Edit source" tab above) or use VisualEditor ("Edit" tab above). Click the "Publish changes" button when finished. You can click "Show preview" to see a preview of your edits, or "Show changes" to see what you have changed.
Anyone can edit this page and it is automatically cleared regularly (anything you write will not remain indefinitely). Click here to reset the sandbox.
You can access your personal sandbox by clicking here, or using the "Sandbox" link in the top right.Creating an account gives you access to a personal sandbox, among other benefits.
Do NOT, under any circumstances, place promotional, copyrighted, offensive, or libelous content in sandbox pages. Repeatedly doing so WILL get you blocked from editing.
For more info about sandboxes, see Wikipedia:About the sandbox and Help:My sandbox. New to Wikipedia? See the contributing to Wikipedia page or our tutorial. Questions? Try the Teahouse!
|