Thread:AquaMage2459/@comment-3215248-20140121014708/@comment-3215248-20140121023601

I figured out what was wrong, the code I made basically finds the template for bonuses in the page, starting at, and it returns all the parameters and values, for example  |prayer=blah blah  where prayer is the parameter and blah blah is the value. If you click on a compare items link and the error message "No bonus data found for the item.", then that means that the template Infobox bonuses isn't inside the page. So basically if you edit the page and click on view source, you'll see that I've used "{{Bonuses" instead of "{{Infobox bonuses" the template:Bonuses" redirects to "template:infobox bonuses", so visually you won't see a problem, but because of this the bonus data won't be extracted from the template, so you'll need to change            "{{Bonuses" to "{{Infobox bonuses" and it should work

Secondly, if you see the line   then move this line so that it's at the end of the template. If it's not at the end, then some of the stats for the item won't appear in the compare box.