Wikipedia:Bots/Requests for approval/SmackBot 40


 * 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 Symbol keep vote.svg Approved.

SmackBot 40
Operator: Rich Farmbrough

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:
 * If there is a sort order specified for the category skip the article
 * Set the sort order to the name of the article, in Title Case, sans the leading year and "small words" like "in, of" etc...

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


 * 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)
 * 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).

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


 * 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)
 * 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).

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)
 * D Any updates? - Jarry1250 [Who? Discuss.] 11:57, 12 December 2010 (UTC)
 * 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).


 * Ok, looks good. Tim  1357  talk  02:09, 8 February 2011 (UTC)
 * Tim 1357  talk  02:09, 8 February 2011 (UTC)


 * 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.