User:MelonBot/ArticleHistory

An approved MelonBot task is to replace instances of the following templates with Properly formatted, ArticleHistory provides a much more streamlined and elegant way of displaying these milestone events without cluttering up the top of the talk page. However, given the variety of possible implementations of these templates, coding a truly autonomous bot to perform the transfer is extremely difficult. MelonBot effectively functions as a userscript to make the transfer easier - if everything is as expected, it is a one-click process. If there are any unexpected variables, more intervention is required.

MelonBot first breaks down the ArticleHistory template, if one is present, into individual events, compiling them into an unsorted list. It then searches for other templates, decompiling them into similarly formatted events. Once the complete list of events has been assembled, MelonBot reassembles them into a new ArticleHistory template with the correct formatting. Happy‑melon 22:50, 27 December 2007 (UTC)