User:Razr Nation/FL Bot

From Wikipedia, the free encyclopedia
  1. Watchlist the FLC and FLRC logs.
    1. Check each new delegate/director edit on that page.
    2. Get all the transclusions of pages the delegate added in his edit. The bot has to make sure that the transclusions it gets are in the form of Wikipedia:Featured list candidates/ARTICLENAME/archiveN
      • Example of an edit made by a delegate on that page.
  2. Edit the nomination pages to archive them using the {{subst:User:Hahc21/FCloseTop}} and {{subst:User:Hahc21/FCloseBottom}} templates, substed.
    1. {{subst:User:Hahc21/FLTop|result=|closer=|time=|link=}}
      1. For |result= If the nomination page was listed on the featured log, write promoted; if listed on the failed log, write not promoted. If the nomination page was listed on the Kept section of the FLRC log, write kept; if listed in the Delisted section of that page, write removed.
      2. For |closer= add the username of the delegate/director that added the transclusion to the correspondent log.
      3. For |time= Write the time of the revision of the edit of the delegate/director on the correspondent log.
      4. For |link= Add the diff and the oldid parameters of the edit made by the delegate on the log page.
        • In this example, the diff is 538262711 and the oldid is 8153384. So, the bot should add diff=538262711&oldid=538153384 to this parameter.
    2. Check that all nomination pages added to the featured log are not transcluded in the main WP:FLC page. If they are transcluded, remove them from WP:FLC before adding the closing templates.
  3. Edit each article's talk page, adding/updating the Article History template and modifying the assessment, if needed.
  4. Add FL star if list was promoted, remove FL star if delisted.