Layout fix

There have been some problems with the layout around the catlinks and
semantic factbox recently, and I've discovered this was caused by an extra
</div>, I think coming from the MW-generated code. I've removed one of
ours, which fixes the problem, though I'm still not sure how the extra one
is getting in there. Also added some padding on the catlinks