Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Wikipedia:Bots/Requests for approval/JJMC89 bot 4





Project page  

Talk  



Language  

Watch  

Edit  


< Wikipedia:Bots | Requests for approval
 


JJMC89 bot 4

edit
  • Approved BRFAs
  • talk
  • contribs
  • count
  • SUL
  • logs
  • page moves
  • block log
  • rights log
  • flag)
  • Operator: JJMC89 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

    Time filed: 05:54, Wednesday, March 23, 2016 (UTC)

    Automatic, Supervised, or Manual: Automatic

    Programming language(s): AutoWikiBrowser

    Source code available: AWB (User:Magioladitis/WikiProjects)

    Function overview: Complete discontinuation of comments subpages.

    Links to relevant discussions (where appropriate):

    Edit period(s): One time run initially, upon request afterwards if needed

    Estimated number of pages affected: 35,000 per part initially

    Exclusion compliant (Yes/No): Yes

    Already has a bot flag (Yes/No): Yes

    Function details: Complete discontinuation of comments subpages.

    Part A will be run with all automatic changes and User:Magioladitis/WikiProjects.

    Discussion

    edit

    Code

    public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
    {
      Skip = false;
      Summary = "";
      string zerothSection = WikiRegexes.ZerothSection.Match(ArticleText).Value;
      string restOfArticle = ArticleText.Replace(zerothSection, "");
      string archives = @"\{\{\s*(archives|archive[ _]*box)(\s*\|([^{]|\{[^{]|\{\{[^{}]+\}\})+)\}\}";
      
      if ( Regex.IsMatch(zerothSection, archives, RegexOptions.IgnoreCase) ) {
        ArticleText = Regex.Replace(zerothSection, archives, "{{$1|\n* [[/Comments|Article assessment comments]]\n$2}}", RegexOptions.IgnoreCase) + restOfArticle;
      } else {
        ArticleText = zerothSection + "{{Archives|auto=yes|search=yes|\n* [[/Comments|Article assessment comments]]\n}}\n\n" + restOfArticle;
      }
      
      return ArticleText;
    }
    

    I don't think its worth the trouble. If talk page participants want to archive the substituted text or place it in chronological order, they are free to do so. — JJMC89(T·C) 04:29, 30 March 2016 (UTC)[reply]

    Break

    edit

    Trial complete. Edits: part A, part B, and one incorrect redirect due to loading the wrong page list. — JJMC89(T·C) 01:45, 15 April 2016 (UTC)[reply]

    I don't see any issues, apart from the one identified. Perhaps the edit summaries could be a bit more descriptive, but the links to WP:DCS should suffice. — Martin (MSGJ · talk) 08:59, 15 April 2016 (UTC)[reply]
    Perhaps it is worth pointing out to other editors on this page that the bot is only dealing with pages which don't have any archive pages (or at least not one of the form /Archive 1 which seems overwhelmingly the favoured naming scheme). Those with archive pages are being dealt with manually for now. — Martin (MSGJ · talk) 09:00, 15 April 2016 (UTC)[reply]
    While a minority, there are a significant number of archive pages not using that naming scheme. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 08:57, 16 April 2016 (UTC)[reply]
    If you could give me some examples, I will be happy to add them to the logic that detects the archive pages. Thanks — Martin (MSGJ · talk) 07:57, 18 April 2016 (UTC)[reply]

    There are 0 talk pages which have precisely one archive (Archive 1). In addition to option 1, could we please get approval to substitute the comments onto /Archive 1 for these pages? Thanks — Martin (MSGJ · talk) 19:48, 20 April 2016 (UTC)[reply]

     Approved.
    We can't be perfect, but if a talk page is old enough to have comments and yet has no archives, chances are that activity is so infrequent that the substitution won't occur during active discussion. Even if it were to, it's hard to imagine that the message will actually disrupt anything, and we already have other bots that post talk page messages. As for archive substitution, the interpolating comments requires a fair bit of work for little benefit (and is possibly a bit misguided, since it's not an accurate picture of how the talk page looked). So, I see enough support and no convincing objections. — Earwig talk 16:44, 27 April 2016 (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.

    Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Bots/Requests_for_approval/JJMC89_bot_4&oldid=717425733"
     



    Last edited on 27 April 2016, at 16:44  


    Languages

     



    This page is not available in other languages.
     

    Wikipedia


    This page was last edited on 27 April 2016, at 16:44 (UTC).

    Content is available under CC BY-SA 4.0 unless otherwise noted.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Terms of Use

    Desktop