Wikipedia:Bots/Requests for approval/DannyS712 bot 9
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: DannyS712 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 10:11, Friday, March 1, 2019 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AutoWikiBrowser
Source code available: AWB
Function overview: The task of the bot would be to identify all articles in Category:Articles needing translation from French Wikipedia who have a French Commune infobox, then add the |topic=geo parameter to their Expand French template, to categorize them in Category:Geography articles needing translation from French Wikipedia. (copied from bot request)
Links to relevant discussions (where appropriate): WP:BOTREQ#Bot to reorganize the French Communes articles in Category:Articles needing translation from French Wikipedia
Edit period(s): One time run at first, potentially as needed afterwards
Estimated number of pages affected: 5173 at first (https://petscan.wmflabs.org/?psid=8047028)
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: Go through Category:Articles needing translation from French Wikipedia. If {{Infobox French commune}} is present, set the {{Expand French}} |topic
parameter to be |topic=geo
Discussion
edit- @Sadenar40000: filed! --DannyS712 (talk) 10:13, 1 March 2019 (UTC)[reply]
- {{BAGAssistanceNeeded}} --DannyS712 (talk) 19:33, 10 March 2019 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 19:46, 10 March 2019 (UTC)[reply]
- @Primefac and Sadenar40000: Trial complete. - I didn't spot any errors. 50 edits made here (search for "topic=geo"). Thanks, --DannyS712 (talk) 22:59, 10 March 2019 (UTC)[reply]
- @DannyS712: Not sure if the bot is the cause, but Bouzeron and Amelécourt, the 2 first articles of the trial, have an added redlinked category named Category:Geo articles needing translation from French Wikipedia, although the 48 others are perfect. Sadenar40000 (talk) 00:05, 11 March 2019 (UTC)[reply]
- @Sadenar40000: All of the other pages had {{Expand French}} - those 2 had {{expand language}}. My mistake - those 2 I did manually before telling AWB to auto save. I'll adjust the regex to skip pages with {{expand language}} instead of {{Expand French}}; Ideally, all {{expand language}}s should be replaced by the language corresponding to
langcode
, but that is a task for later. Sorry, --DannyS712 (talk) 00:08, 11 March 2019 (UTC)[reply]- No problem, I'll post another request for that task tomorrow then.Sadenar40000 (talk) 00:10, 11 March 2019 (UTC)[reply]
- Alternatively, it works with {{expand language}} if the topic is set to
Geography
([1] [2]) so I could try that instead, but maybe that should be a separate task --DannyS712 (talk) 00:11, 11 March 2019 (UTC)[reply]- It would be added complexity for no benefit, a switch would be wiser, but that is, once again, a discussion for another request. Sadenar40000 (talk) 00:14, 11 March 2019 (UTC)[reply]
- @DannyS712: All of the 41 communes that turned up after a petscan of Category:Articles needing translation from French Wikipedia have had their expand language template switched to expand French, I am pretty sure there is no need to add a skip anymore. Sadenar40000 (talk) 23:44, 11 March 2019 (UTC)[reply]
- @Sadenar40000: Okay. Thanks for running through that - I think this is ready to go then? @Primefac? --DannyS712 (talk) 23:46, 11 March 2019 (UTC)[reply]
- @DannyS712: All of the 41 communes that turned up after a petscan of Category:Articles needing translation from French Wikipedia have had their expand language template switched to expand French, I am pretty sure there is no need to add a skip anymore. Sadenar40000 (talk) 23:44, 11 March 2019 (UTC)[reply]
- It would be added complexity for no benefit, a switch would be wiser, but that is, once again, a discussion for another request. Sadenar40000 (talk) 00:14, 11 March 2019 (UTC)[reply]
- @Sadenar40000: All of the other pages had {{Expand French}} - those 2 had {{expand language}}. My mistake - those 2 I did manually before telling AWB to auto save. I'll adjust the regex to skip pages with {{expand language}} instead of {{Expand French}}; Ideally, all {{expand language}}s should be replaced by the language corresponding to
- @DannyS712: Not sure if the bot is the cause, but Bouzeron and Amelécourt, the 2 first articles of the trial, have an added redlinked category named Category:Geo articles needing translation from French Wikipedia, although the 48 others are perfect. Sadenar40000 (talk) 00:05, 11 March 2019 (UTC)[reply]
- Approved. though @DannyS712: unless there is a good reason not to, you should additionally use the 'minor' flag on this run. Will leave that option to your discretion. — xaosflux Talk 13:23, 12 March 2019 (UTC)[reply]
- 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.