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

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
imported>Daniel Mietchen
Line 25: Line 25:
:'''The antidote''' to the above command would be  
:'''The antidote''' to the above command would be  
::<code><nowiki>python replace.py -pt:1 -cat:Bot-created_Related_Articles_subpages -regex "{{Bot-created_related_article_subpage}}" "\[\[Category:Bot-created Related Articles subpages\]\]" -summary:"Automated edit: Removing [[CZ:Workgroups]] from [[Category:Bot-created Related Articles subpages]]" -always</nowiki></code>
::<code><nowiki>python replace.py -pt:1 -cat:Bot-created_Related_Articles_subpages -regex "{{Bot-created_related_article_subpage}}" "\[\[Category:Bot-created Related Articles subpages\]\]" -summary:"Automated edit: Removing [[CZ:Workgroups]] from [[Category:Bot-created Related Articles subpages]]" -always</nowiki></code>
:'''Test edits for the antidote''' are documented [http://en.citizendium.org/wiki?title=Special:Contributions&offset=2010-01-10+21%3A53%3A35%2B00&limit=3&target=Daniel+Mietchen&month=&year= here].


==Irregular==
==Irregular==

Revision as of 16:56, 10 January 2010

Regular

This section lists automated 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 automated 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:"Automated edit: Adding [[CZ:Workgroups]] to [[Category:Bot-created Related Articles subpages]]" -always
Test edits are documented here.
The antidote to the above command would be
python replace.py -pt:1 -cat:Bot-created_Related_Articles_subpages -regex "{{Bot-created_related_article_subpage}}" "\[\[Category:Bot-created Related Articles subpages\]\]" -summary:"Automated edit: Removing [[CZ:Workgroups]] from [[Category:Bot-created Related Articles subpages]]" -always
Test edits for the antidote are documented here.

Irregular

This section lists automated 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