Wikipedia:Bots/Requests for approval/William Avery Bot
[[User:William Avery Bot|William Avery Bot]]
{{Newbot|William Avery Bot|}}
Operator: {{botop|William Avery}}
Time filed: 20:04, Sunday, March 4, 2018 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Javascript (Node.js)
Source code available: https://bitbucket.org/WilliamAvery/willsnodebot/src
Function overview: Move all pages for mollusc taxa that have a year of description to the appropriate year category under :Category:Molluscs_by_century_of_formal_description. Many are currently directly under the "Animals described in..." categories. Move gastropod taxa to subcategories of the molluscs-by-year-of-description categories, with names beginning "Gastropods described in". None of the gastropod-by-year-of-description categories have been set up yet, as far as I know.
Links to relevant discussions (where appropriate):
- Wikipedia_talk:WikiProject_Gastropods#Populating_the_"Molluscs_described_in_YYYY"_categories
- Wikipedia_talk:WikiProject_Bivalves#Populating_the_"Molluscs_described_in_YYYY"_categories
- Wikipedia_talk:WikiProject_Cephalopods#Populating_the_"Molluscs_described_in_YYYY"_categories
Edit period(s): A series of one-time runs, tackling one year of description at a time
Estimated number of pages affected: 30 thousand. See for instance :Category:Stub-Class_Gastropods_articles
Namespace(s): Mainspace/articles
Exclusion compliant (Yes/No): Yes
Function details:
- For non-gastropod molluscs currently placed in animal categories
:Regular expression "(\\[\\[\\s*Category\\:\\s*)(Animals)(\\s*described\\s*in\\s*\\d\\d\\d\\d\\s*\\|?[^\\]]*\\]\\])"
:Substitution string "$1Molluscs$3"
- For gastropod molluscs currently placed in animal or mollusc categories
:Regular expression "(\\[\\[\\s*Category\\:\\s*)(Animals|Molluscs)(\\s*described\\s*in\\s*\\d\\d\\d\\d\\s*\\|?[^\\]]*\\]\\])"
:Substitution string "$1Gastropods$3"
Candidate pages for each kind of update can be generated from PetScan queries. e.g. for year 1880
- [https://petscan.wmflabs.org/?language=en&project=wikipedia&categories=Animals%20described%20in%201880%7C0%0D%0AMolluscs%7C10&negcats=Gastropods%7C10&ns%5B0%5D=1&interface_language=en&active_tab= Non-gastropods under animal category]
- [https://petscan.wmflabs.org/?language=en&project=wikipedia&categories=Animals%20described%20in%201880%7C0%0D%0AGastropods%7C10&ns%5B0%5D=1&interface_language=en&active_tab= Gastropods under animal category]
- [https://petscan.wmflabs.org/?language=en&project=wikipedia&categories=Molluscs%20described%20in%201880%7C0%0D%0AGastropods%7C10&ns%5B0%5D=1&interface_language=en&active_tab= Gastropods under mollusc category]
=Discussion=
:{{BotTrial|edits=50}} Please do 25 of each type and report back here. — xaosflux Talk 02:15, 17 March 2018 (UTC)
::{{BotTrialComplete}} [https://tools.wmflabs.org/sigma/summary.py?name=William+Avery+Bot&search=adding+%5B%5B%3ACategory%3A+Molluscs+described+in+&max=500&server=enwiki Edits to non-gastropod molluscs] [https://tools.wmflabs.org/sigma/summary.py?name=William+Avery+Bot&search=adding+%5B%5B%3ACategory%3A+Gastropods+described+in+&max=500&server=enwiki Edits to gastropod molluscs]
::Thank you for allowing me to run this germ of a tool at an early stage. The PetScan queries correctly selected candidate pages. The changes to categorisation of the pages were as specified. I have noticed a slight problem with the link in the edit summaries intended to take users to this page, in that I mistakenly used "
::Checking back later, I noticed that :Category:Gastropods described in 1880 was now one snail short of the 25 previously present. I have invited comment at User talk:Simuliid#Your edit to Hydrobia glyca. William Avery (talk) 21:54, 18 March 2018 (UTC)
Anything further required? I'm not getting any younger :-)
{{tl|BAG assistance needed}}
:The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.