Snippets/Autoedit

Autoedit is Lupin's user-space script giving able of automatic editing pages by commands in URLs (see also: Manual:Parameters to index.php). For use one, you've to include autoedit.js in your or global JavaScript (if you have working Pop-ups, you must also have included that) by following lines: document.write(' ');

Arguments
?title=Article &action=edit &autoedit=s~...~...~g;s~...~...~g &autoclick=wpDiff &autominor=false &autosummary=Summary  – article title  – action  – autoedit script  – begin of replace command  – it will be replaced by next text (may be a regular expression); cannot contain   chars, for enter text to empty page (or new section in existing one) keep it empty    – next text <tt>;)</tt>; cannot contain   chars</li>   – end of replace command</li></ul> Script can contain multiple commands, separated by    – button pressed after autoedit </li>   – is change minor</li>   – summary of edit</li></ol>

Example
For replace all  words by   in article , you can use this command: http://www.yourwiki.org/w/index.php?title=Animals&action=edit&autoedit=s~cat~dog~g&autoclick=wpSave&autominor=false&autosummary=Replace%20cat%20by%20dog

Using in
This function is using in Lupin's Pop-ups script.