User:ChzzBot II/doc

From Wikipedia, the free encyclopedia

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;

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)...