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: Rich Farmbrough (talk · contribs)

Automatic or Manually assisted: Automatic

Programming language(s): Perl/AWB

Source code available: AWB, yes; Perl no.

Function overview: Clean up certain members of YEAR in categories.

Links to relevant discussions (where appropriate):

Edit period(s): Continuous

Estimated number of pages affected: Several hundred at least.

Exclusion compliant (Y/N): Yes

Already has a bot flag (Y/N): Yes

Function details: Set the sort order for members of "YEAR in topic" categories, which begin with "YEAR" to a sensible value.Specifically: For each member of a YEAR in topic category, whose name begins with YEAR and currently sorts under YEAR in that category:


Discussion

[edit]

Purpose is to make the sort more useful.Rich Farmbrough 19:41, 1 November 2010 (UTC)[reply]

Could you link to a category that's currently in need of this type of repair? I think I see what you are saying but an example would be good. Gigs (talk) 02:44, 2 November 2010 (UTC)[reply]
Category:2004_in_Canada You will see
  • 2004 IBF World Junior Championships
  • 2004 Women's Baseball World Cup
  • 2004 reasons of the Supreme Court of Canada
under the section "2" whereas 2004 Governor General's Awards (for example) is under "G". Rich Farmbrough, 09:18, 3 November 2010 (UTC).[reply]

((BAG assistance needed)) Rich Farmbrough 07:02, 5 November 2010 (UTC)[reply]

Is your bot going to be smart enough to catch the piped categories as well as transcluded defaultsort directives? Gigs (talk) 13:21, 5 November 2010 (UTC)[reply]
Yes, the piped sorts are the key for this task. For example "2004 IBF World Junior Championships" should be sorted under "2004" in "IBF World Championships", so it would be inappropriate to mess with the DEFAULTSORT. Rich Farmbrough, 13:38, 5 November 2010 (UTC).[reply]

Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's see the task in action. Try to perform edits on a variety of different pages (with default sort, without default sort, etc.) so we can see how it will act in different situations. - EdoDodo talk 11:06, 4 December 2010 (UTC)[reply]

((OperatorAssistanceNeeded)) Any updates? - Jarry1250 [Who? Discuss.] 11:57, 12 December 2010 (UTC)[reply]
Trial complete. here. Only problem I saw was picking up "decade" categories in two articles, this is now fixed, as of build 002. Rich Farmbrough, 00:58, 6 February 2011 (UTC).[reply]
Ok, looks good. Tim1357 talk 02:09, 8 February 2011 (UTC)[reply]
 Approved. Tim1357 talk 02:09, 8 February 2011 (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.