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

From Wikipedia, the free encyclopedia
Content deleted Content added
suggestion
Sambot (talk | contribs)
→‎Discussion: sounds sensible to me
Line 39: Line 39:
: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)
: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)
Many of these football templates are assessed as "stub" because the bio tag had previously been auto-assessed as a stub for having a stub template in the article. The trouble is, a few of them no longer have stub templates, but never got reassessed. For instance, see [[Jon Runyan]]. I'd suggest that ''if'' all previous stub assessments are auto=yes '''and''' ''if'' the article no longer is in a stub category, that this bot not assume the article is a stub. Does this sound like a positive change? &ndash; [[User:Quadell|Quadell]] <sup>([[User_talk:Quadell|talk]])</sup> 17:21, 6 May 2009 (UTC)
Many of these football templates are assessed as "stub" because the bio tag had previously been auto-assessed as a stub for having a stub template in the article. The trouble is, a few of them no longer have stub templates, but never got reassessed. For instance, see [[Jon Runyan]]. I'd suggest that ''if'' all previous stub assessments are auto=yes '''and''' ''if'' the article no longer is in a stub category, that this bot not assume the article is a stub. Does this sound like a positive change? &ndash; [[User:Quadell|Quadell]] <sup>([[User_talk:Quadell|talk]])</sup> 17:21, 6 May 2009 (UTC)
:So basically don't copy any stub ratings that are in templates marked as auto=yes? Sounds eminently sensible to me. [[User:Sambot|Sambot]] ([[User talk:Sambot|talk]]) 17:32, 6 May 2009 (UTC)

Revision as of 17:32, 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]

Many of these football templates are assessed as "stub" because the bio tag had previously been auto-assessed as a stub for having a stub template in the article. The trouble is, a few of them no longer have stub templates, but never got reassessed. For instance, see Jon Runyan. I'd suggest that if all previous stub assessments are auto=yes and if the article no longer is in a stub category, that this bot not assume the article is a stub. Does this sound like a positive change? – Quadell (talk) 17:21, 6 May 2009 (UTC)[reply]

So basically don't copy any stub ratings that are in templates marked as auto=yes? Sounds eminently sensible to me. Sambot (talk) 17:32, 6 May 2009 (UTC)[reply]