Wikipedia:Bots/Requests for approval/Polbot 9
- The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Approved.
Automatic or Manually Assisted: Automatic, then manually checked retroactively
Programming Language: Perl, with perlwikipedia
Function Summary: Changes to category sorting for time periods
Edit period: one-time run
Already has a bot flag: Yup.
Function Details: For articles and subcategories under time-period categories, this bot would change the piped sort order for clarity and accuracy. Details are spelled out pretty thoroughly at Wikipedia:Bot requests#Automatic time period category sorting (update). Examples of changes this bot would make:
- If the category page for Category:1st century deaths contains "[[Category:1st century]]", this bot would change it to "[[Category:1st century|Deaths]]".
- If the 1880s article contains "[[Category:1880s]]", this bot would change it to "[[Category:1880s| ]]" (with a space as the sort key).
- If Category:1925 in aviation contains "[[Category:1925]]", this bot would change it to "[[Category:1925|Aviation]]".
It will not change any categorization that is provided by templates such as {{DeathsInCentury}} or {{milhistyearcat}}.
Discussion
[edit]- This is based on a bot request by User:Arthur Rubin, who asked for feedback at Wikipedia:WikiProject Years and got no objections. This requests does seem to be in line with the guidelines at Wikipedia:Categorization. – Quadell (talk) 12:55, 31 July 2008 (UTC)[reply]
{{BAGAssistanceNeeded}} Hey there, fellow BAGgers. It's been a week now. What say thee? – Quadell (talk) 10:56, 7 August 2008 (UTC)[reply]
Approved for trial (3 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. -- Tawker (talk) 20:01, 7 August 2008 (UTC)[reply]
- You're evil, Tawker. – Quadell (talk) 20:18, 7 August 2008 (UTC)[reply]
Approved for trial (0.1 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. now thats evil -- Tawker (talk) 00:17, 8 August 2008 (UTC)[reply]
Okay, I made three edits.
- Change to a year-related category: [1]
- Change to a decade article: [2]
- Change to a century-related category: [3]
The 0.1 trial was concurrent. It covered a tenth of the decade-article change. – Quadell (talk) 02:32, 8 August 2008 (UTC)[reply]
Approved for trial (.080808 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. - I think its looking sound but one more trial might be good -- Tawker (talk) 18:11, 8 August 2008 (UTC)[reply]
Rounding up, here's another edit: [4]. This one has a subtle difference, in that it changes the sortkey to a "[time period] in [subject]" category, rather than to a "[time period]" category. – Quadell (talk) 19:16, 8 August 2008 (UTC)[reply]
- (You mean, here for that last one?) Looks fine, so far. I was hoping it would keep a separate log file (doubling the number of edits :( ), but it seems very likely that "undo" would work on each edit if a family of edits turns out wrong. — Arthur Rubin (talk) 21:09, 8 August 2008 (UTC)[reply]
- I'll change the code to include a logfile. By the way, the sourcecode is at User:Polbot/source/Time sorting.pl. – Quadell (talk) 21:57, 8 August 2008 (UTC)[reply]
- Okay, it produces a logfile now at User:Polbot/time_sorting_log. The source code has been updated to show this. – Quadell (talk) 23:09, 8 August 2008 (UTC)[reply]
- I didn't intend a requirement that the year be past, or that the year be "AD". Otherwise, it's fine, as far as I can tell. I haven't learned Perl yet.... — Arthur Rubin (talk) 23:16, 8 August 2008 (UTC)[reply]
- Okay, it produces a logfile now at User:Polbot/time_sorting_log. The source code has been updated to show this. – Quadell (talk) 23:09, 8 August 2008 (UTC)[reply]
- I'll change the code to include a logfile. By the way, the sourcecode is at User:Polbot/source/Time sorting.pl. – Quadell (talk) 21:57, 8 August 2008 (UTC)[reply]
Approved. - all seems well. Tagged and done. -- Tawker (talk) 16:11, 9 August 2008 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.