Board Thread:Lua Help/@comment-1466854-20140820125533/@comment-1466854-20140820162536

Well, first off I need to recategorize a few hundred pages, though I'm thinking I may just make a template they all share do it for me. Other than that though, the templates in question are ones like this: Template:Basilisk.

Example API calls for the javascript option:

Template:Basilisk (json formatted)

Wood category pages, first 10 (xml formatted)

The idea is that every spirit in that game has a stat growth that follows a distinct growth rate, many of which are shared, and by compiling the known stats from all spirits I'd be able to generate a list of all known growth rates and fill in missing values using a quick comparison in the lua template when the page pulls those values to display. We've been doing that by hand already to a certain extent, but it's somewhat flawed, and using a lua script to do it would prevent misentered stats (which for reasons I won't go into is more common than we'd like) getting spread to multiples. Unfortunately, if the lua template itself doesn't have access to the stats of all spirits it won't be able to autocategorize suspected errors for review, but I can live with that.

After I have all of this working, I also plan on trying to work out the stat growth formula the game uses to estimate values it can't derive, but that's a problem for the future.