Wikipedia:Bots/Requests for approval/Dexbot 12
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
Operator: Ladsgroup (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 20:36, Friday, September 10, 2021 (UTC)
Function overview: Adding sortkey to categories based on pattern recognition of sister categories.
Automatic, Supervised, or Manual: Automatic
Programming language(s): python
Source code available: From pywikibot
Links to relevant discussions (where appropriate):
Edit period(s): Monthly
Estimated number of pages affected: A couple thousand categories every month
Namespace(s): Category
Exclusion compliant (Yes/No): Yes
Function details: Here is a link to some test edits [1] and [2] and [3]
Discussion
[edit]Test edits 1 & 2 were not actually needed due to the DEFAULTSORT already matching the key value. Is there anyway to also check what that is set to before deciding if an edit is needed? -- WOSlinker (talk) 20:49, 10 September 2021 (UTC)[reply]
- You could do like https://wiki.riteme.site/w/api.php?action=query&titles=Category:People%20from%20Raunds&prop=pageprops&ppprop=defaultsort&formatversion=2 Anomie⚔ 16:21, 11 September 2021 (UTC)[reply]
- @Anomie@WOSlinker Thanks. Fixed. Can you take a look at the recent edits? Special:Diff/1045097487 Special:Diff/1045097468 Special:Diff/1045097446 Special:Diff/1045097508 Ladsgroupoverleg 19:52, 18 September 2021 (UTC)[reply]
- Please notify WikiProject Categories, and expand the function details a bit (does "sister categories" mean the categories in the category hierarchy having the same parent cat, or the other categories present on the same page?). – SD0001 (talk) 14:53, 20 September 2021 (UTC)[reply]
- @SD0001 Former (sister as having the same parent). I will notify WikiProject Categories Ladsgroupoverleg 12:40, 22 September 2021 (UTC)[reply]
- Done: Wikipedia_talk:WikiProject_Categories#Adding_sortkey_to_categories_based_on_pattern_recognition_of_sister_categories Ladsgroupoverleg 12:42, 22 September 2021 (UTC)[reply]
- Would it be possible to link to the source code? I'd be interested in seeing the pattern recognition heuristics you're using. Colin M (talk) 16:46, 22 September 2021 (UTC)[reply]
- Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. For the trial edits, please link to this BRFA in the edit summary so that people know where to give feedback. – SD0001 (talk) 11:43, 28 September 2021 (UTC)[reply]
Trial complete. Ladsgroupoverleg 21:10, 2 November 2021 (UTC)[reply]
- Approved. Primefac (talk) 11:38, 11 November 2021 (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 Wikipedia:Bots/Noticeboard.