User:Beetstra/PageCleanup
If you are here because my AWB-run made a bad mistakes in editing a page, please notify me on my talk-page or on the talk-page of this page. Remember, I try to do my best to make good changes, but the finger hitting the save-button in AWB is still human. Sorry if there are things really going wrong, just revert my edit, and notify me. I will try and repair the script I am using (or ignore the page, and do the edit by hand). Things done here are a subset of the settings here, I sometimes forget to put one out, hope to do it right.
On the other hand, if you think, there is something I could do to pages, which you think could be done with AWB, please add it to the 'things to be programmed' section (and I will think about it).
Things that have been programmed
[edit]I am currently programming AWB to automatically clean up chemical compound related pages (seehere for settings and script). I saw that the script can also be used to cleanup other pages.
It tries to do a lot of things in one run:
- General fixes (interwiki sort, stub to bottom, etc.) (internal AWB machine).
- Unicodify (internal AWB machine).
- RegEx typo fix User:Mboverload/RegExTypoFix (internal AWB machine).
- Change {{cleanup}} into {{cleanupdate}}.
- Remove the space from ' ]'.
- "url" becomes "[url url]".
- Move inline url's into refs.
- "[url text]" becomes "text<ref name=url>[url text]</ref>".
- [url] becomes <ref name=url>[url url]</ref>.
- Rebuilding {{Maintenance}} template into seperate stubs
- Format the <references/>-tag # Attempt to automatically add a <nowiki><references/> tag to an article containing <ref>whatever</ref>-tags.
- Remove some empty lines before headers.
'Problems'
[edit]- The replacing of inline url's does not 'see' that it is sometimes doing the replacing in wrong places (e.g. external links sections). For now it is paranoid, and now it does not edit in the places where it should .. :-( .. can someone tell me how to tell regex to discard anything in e.g. the 'references'-section, some codes work half of the time, but I can't get it to foolproof
- For now I am not making references for all URL-s after the ==Notes==, ==References== or ==External links== sections.
Tasks done by hand in the same runs
[edit]- 'Stub-sort'-ing
- moving around paragraphs, adding/removing {{Cleanup}}, {{Notability}}, {{Citation needed}}-tags.
Tasks to be programmed
[edit]If you know strings of data that could be replaced, put them in this section.