Agreed bot tasks[edit | edit source]
Uncontroversial or agreed-upon tasks should be listed here:
- Replace {{lit}} with {{MOST lit}} - should just be in Category:MOST literature reviews.
Routine bot tasks[edit | edit source]
Actual commands are in bold.
Most are currently performed by ChriswaterguyBot, but may be performed by any bot. Use appropriate care.
- fix double-redirects: python redirect.py double (browse the outputs for anything odd, and manually fix anything that needs fixing.)
- delete broken redirects: python redirect.py broken (Requires adminship. Be extra careful)
- fix format of redirects to categories:
- python replace.py -xml:currentdump.xml -nocase "#REDIRECT [[Category:" "#REDIRECT [[:Category:"
- python replace.py -xml:currentdump.xml -nocase "#REDIRECT[[Category:" "#REDIRECT [[:Category:"
- add "|{{PAGENAME}}" to category tags, for pages not in the main or category namespaces.
Occasional[edit | edit source]
- Correcting capitalization of headers, e.g. See Also to See also:
- python replace.py -regex -xml:currentdump.xml "(== ?See )Also" "\\1also"
- python replace.py -regex -xml:currentdump.xml "(== ?External )Links" "\\1links"
[check that this new regex version works]
See if this works instead - \l to create lower case of first character in a string
- python replace.py -regex -xml:currentdump.xml "(== ?External]]