Board Thread:Support Requests - Getting Technical/@comment-3271569-20130428132942/@comment-303594-20130428142716

Sorry, I made an error, I didn't see that Damage/Alternate/d was calling fight - which then calls 7 of it's own templates. That just compounds your problem.

I can't think of a nice way to do this that doesn't require a refactor of all your code. What I'd suggest you do is, instead of looking up stats with Template:Attacks - you can put the data in the orginal template call (to tabber/Attacks).

If there's some way to put the data on the page in a JS readable format (perhaps including the data blocks in common.js, but I'm not sure how much data that is so it might not be feasable) - then you can calculate this much faster with some JS, MediaWiki is not designed to work well with database-heavy lookups).