Wikipedia:Bots/Requests for approval/Sambot 13: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
{{botTrialComplete}}
so far, so good
Line 37: Line 37:
:: {{BotTrial|edits=30}} [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 01:13, 6 May 2009 (UTC)
:: {{BotTrial|edits=30}} [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 01:13, 6 May 2009 (UTC)
{{botTrialComplete}} [https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Special:Contributions&dir=prev&offset=20090506083634&limit=30&target=Sambot 30 edits] [[User:Sam Korn|<nowiki>[[Sam Korn]]</nowiki>]] <sup>[[User talk:Sam Korn|(smoddy)]]</sup> 09:25, 6 May 2009 (UTC)
{{botTrialComplete}} [https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Special:Contributions&dir=prev&offset=20090506083634&limit=30&target=Sambot 30 edits] [[User:Sam Korn|<nowiki>[[Sam Korn]]</nowiki>]] <sup>[[User talk:Sam Korn|(smoddy)]]</sup> 09:25, 6 May 2009 (UTC)
:Looks good so far. <font color="red">[[User:DeFaultRyan|'''De''']]</font><font color="green">[[User Talk:DeFaultRyan|'''Fault''']]</font><font color="blue">[[Special:Contributions/DeFaultRyan|'''Ryan''']]</font> 14:50, 6 May 2009 (UTC)

Revision as of 14:50, 6 May 2009

Operator: [[Sam Korn]] (smoddy)

Automatic or Manually Assisted:

Programming Language(s): PHP, using Pillar

Function Overview: WikiProject article-assessment

Edit period(s): As needed

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

Function Details: Automatically fill in article ratings in WikiProject banners taking information from, in order:

  • Are there existing ratings we can copy? If so, use the highest one.
  • Is the article a redirect?
  • Is the article in any stub categories?
  • Is the article in Category:All disambiguation pages?

The task currently in mind is this request, but I am going to ask for approval for doing this with any WikiProject banner upon request, as it's a standard and fairly simple task.

Code available here. Thanks to Anomie for his suggestion re disambiguations.

[[Sam Korn]] (smoddy) 16:28, 5 May 2009 (UTC)[reply]

Discussion

A few comments on the code:

  • You convert the values gotten from the other templates to lowercase, so in_array("FA", $classes) and the like won't ever match.
  • It looks like you'll only process the first 500 articles in the category, as you don't even get the $continue from get_categorymembers.

Anomie 21:12, 5 May 2009 (UTC)[reply]

Oops. Fixed. Thanks. [[Sam Korn]] (smoddy)
Approved for trial (30 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Anomie 01:13, 6 May 2009 (UTC)[reply]

Trial complete. 30 edits [[Sam Korn]] (smoddy) 09:25, 6 May 2009 (UTC)[reply]

Looks good so far. DeFaultRyan 14:50, 6 May 2009 (UTC)[reply]