User:Daniel Mietchen/bot-recent: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
imported>Daniel Mietchen
Line 15: Line 15:


==Planned==
==Planned==
This section lists bot actions which I intend to perform in the next few days, sorted by priority. When put here, these scripts have already been tested in debug mode (i.e. without actually making any edit).
This section lists bot actions which I intend to perform in the next few days, sorted by priority. When put here, the code has already been tested in debug mode (i.e. without actually making any edit).
;Adding [[CZ:Workgroups]] to [[:Category:Bot-created Related Articles subpages]], as per [http://forum.citizendium.org/index.php/topic,2823.msg23521.html#msg23521 problem description] and [http://en.citizendium.org/wiki?title=User_talk%3AChris_Day&diff=100616686&oldid=100612166#Extension_of_the_tag_principle chosen solution]
;Adding [[CZ:Workgroups]] to [[:Category:Bot-created Related Articles subpages]], as per [http://forum.citizendium.org/index.php/topic,2823.msg23521.html#msg23521 problem description] and [http://en.citizendium.org/wiki?title=User_talk%3AChris_Day&diff=100616686&oldid=100612166#Extension_of_the_tag_principle chosen solution]
:<code><nowiki>python replace.py -pt:1 -cat:Bot-created_Related_Articles_subpages -regex "\[\[Category:Bot-created Related Articles subpages\]\]" "{{Bot-created_related_article_subpage}}" -summary:"Robot: Adding \[\[CZ:Workgroups\]\] to \[\[Category:Bot-created Related Articles subpages\]\]" -always</nowiki></code>
:<code><nowiki>python replace.py -pt:1 -cat:Bot-created_Related_Articles_subpages -regex "\[\[Category:Bot-created Related Articles subpages\]\]" "{{Bot-created_related_article_subpage}}" -summary:"Robot: Adding \[\[CZ:Workgroups\]\] to \[\[Category:Bot-created Related Articles subpages\]\]" -always</nowiki></code>

Revision as of 04:16, 8 January 2010

Regular

This section lists bot actions that I may perform on a regular basis. If you feel it's been too long since one of them ran the last time, please email me or leave a note on my talk page.

Creating Related Articles on the basis of their Whatlinkshere, with this script.
python cg_related.py -always -start:! -log
Checking the activity status of editors, as per CZ:Editorial Council Resolution 0012, with this script.
python cg_inactiveeditor.py -always
Fixing double redirects
python redirect.py double -always
Removing occurences of Template:Fact (leftovers of imports from Wikipedia)
python template.py "Fact" -remove -namespace:0 -always

Planned

This section lists bot actions which I intend to perform in the next few days, sorted by priority. When put here, the code has already been tested in debug mode (i.e. without actually making any edit).

Adding CZ:Workgroups to Category:Bot-created Related Articles subpages, as per problem description and chosen solution
python replace.py -pt:1 -cat:Bot-created_Related_Articles_subpages -regex "\[\[Category:Bot-created Related Articles subpages\]\]" "{{Bot-created_related_article_subpage}}" -summary:"Robot: Adding \[\[CZ:Workgroups\]\] to \[\[Category:Bot-created Related Articles subpages\]\]" -always

Irregular

This section lists recent bot actions which I have performed once or a few times only, with the most recent at the top.

De-encapsulating subpages template from duplicate noinclude tag
python replace.py -pt:1 -cat:Subpages -regex "<noinclude><noinclude>{{subpages}}</noinclude></noinclude>" "<noinclude>{{subpages}}</noinclude>" -summary:"Robot: encapsulating subpages template in simple (not double) noinclude tags" -always
Encapsulating subpages template in noinclude tag
python replace.py -pt:1 -cat:Subpages -regex "{{subpages}}" "<noinclude>{{subpages}}</noinclude>" -summary:"Robot: encapsulating subpages template in noinclude tags" -always
Correcting text bits in various categories
python replace.py -pt:1 -start:Category:! -regex "due to either \(i\) them not containing any intrawiki links or \(ii\)" "due to either (i) them not being linked from other articles, (ii) them not containing any intrawiki links or (iii)" -summary:"Robot: expanding documentation" -always
Encapsulating subpages template in noinclude tag, per bug report
python replace.py -pt:1 -cat:Bot-created_Related_Articles_subpages -regex "{{subpages}}" "<noinclude>{{subpages}}</noinclude>" -summary:"Robot: encapsulating subpages template in noinclude tags" -always
Replacing "all each article" with "all articles", per request
python replace.py -pt:2 -start:Category:! -regex "all each article" "all articles" -summary:"Robot: replacing phrase <all each article>" -always
Trying out the bot that checks for functional external links
python weblinkchecker.py -start:! -log
Found thousands of dead ones in first run. Will check back later.
Trying out the cosmetic changes bot.
python cosmetic_changes.py -start:Gyr -log