User:Daniel Mietchen/bot-recent: Difference between revisions
Jump to navigation
Jump to search
imported>Daniel Mietchen |
imported>Daniel Mietchen |
||
Line 21: | Line 21: | ||
==Irregular== | ==Irregular== | ||
This section lists automated actions which I have performed once or a few times only, with the most recent at the top. | This section lists automated actions which I have performed once or a few times only, with the most recent at the top. | ||
;Removing [[:Category:True vipers - Common names]] tag | ;Removing [[:Category:True vipers - Common names]] tag ([http://en.citizendium.org/wiki?title=Special:Contributions&offset=2010-02-27+15%3A37%3A17%2B00&limit=2&target=Daniel+Mietchen&month=&year= test edits]) | ||
:<code><nowiki>python category.py remove -summary:"Bot test edit for automated removal of [[Category:True vipers - Common names]]."</nowiki></code> | :<code><nowiki>python category.py remove -summary:"Bot test edit for automated removal of [[Category:True vipers - Common names]]."</nowiki></code> | ||
:Entered <code>< | :Entered <code><nowiki>True_vipers_-_Common_names</nowiki></code> at prompt | ||
;Demo [http://en.citizendium.org/wiki?title=Arthur_Ashe/Related_Articles&curid=100117004&diff=100630985&oldid=100630983 test edit] — Changing [[Catalog of World No. 1 male tennis players|'''World No. 1''']] to [[Tennis/Catalogs/World No. 1 male players|'''World No. 1''']], as per [http://forum.citizendium.org/index.php/topic,3039.msg27133.html#msg27133 Forum request]. [http://en.citizendium.org/wiki?title=Special:WhatLinksHere/Catalog_of_World_No._1_male_tennis_players&limit=500&namespace=0 List of affected pages]. | ;Demo [http://en.citizendium.org/wiki?title=Arthur_Ashe/Related_Articles&curid=100117004&diff=100630985&oldid=100630983 test edit] — Changing [[Catalog of World No. 1 male tennis players|'''World No. 1''']] to [[Tennis/Catalogs/World No. 1 male players|'''World No. 1''']], as per [http://forum.citizendium.org/index.php/topic,3039.msg27133.html#msg27133 Forum request]. [http://en.citizendium.org/wiki?title=Special:WhatLinksHere/Catalog_of_World_No._1_male_tennis_players&limit=500&namespace=0 List of affected pages]. |
Revision as of 09:39, 27 February 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). If test edits were done, they will be linked from here.
Irregular
This section lists automated actions which I have performed once or a few times only, with the most recent at the top.
- Removing Category:True vipers - Common names tag (test edits)
python category.py remove -summary:"Bot test edit for automated removal of [[Category:True vipers - Common names]]."
- Entered
True_vipers_-_Common_names
at prompt
- Demo test edit — Changing World No. 1 to World No. 1, as per Forum request. List of affected pages.
python replace.py -pt:1 -cat:Sports_Content -regex "Catalog of World No. 1 male tennis players" "Tennis/Catalogs/World No. 1 male players" -summary:"Bot test edit: Changing [[Catalog of World No. 1 male tennis players|'''World No. 1''']] to [[Tennis/Catalogs/World No. 1 male players|'''World No. 1''']]"
- For clarity, the summary in this example should perhaps be changed in future runs:
python replace.py -pt:1 -cat:Sports_Content -regex "Catalog of World No. 1 male tennis players" "Tennis/Catalogs/World No. 1 male players" -summary:"Bot test edit: Changing '''Catalog of World No. 1 male tennis players''' to Tennis/Catalogs/World No. 1 male players'''"
- This assumes that all affected pages are categorized as Sports Content, but missing cases would remain on the list quoted in point two and could be done one by one.
- Antidote test edit:
python replace.py -pt:1 -cat:Sports_Content -regex "Tennis/Catalogs/World No. 1 male players" "Catalog of World No. 1 male tennis players" -summary:"Bot antidote test edit: Changing '''Tennis/Catalogs/World No. 1 male players''' back to '''Catalog of World No. 1 male tennis players'''"
- This simple antidote, however, would change all occurences of Tennis/Catalogs/World No. 1 male players into Catalog of World No. 1 male tennis players and not just those previously converted by the bot (e.g. also in Pancho Gonzales, which currently links to Tennis/Catalogs/World No. 1 male players.
- 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
- List of edits made
- 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.
- No edit made.
- Trying out the cosmetic changes bot.
python cosmetic_changes.py -start:Gyr -log
- The only test edit