Board Thread:Support Requests - Getting Technical/@comment-4704436-20150115205046

I'm currently developing a wiki for my d&d gaming group to keep track of the world. I have just implimented the infobox template from wikipedia and I got this error and back trace

Lua error in mw.html.lua at line 253: Invalid class given: The name must be either a string or a number.

Backtrace:
 * [C]: in function "error"
 * 1) mw.html.lua:253: in function "addClass"
 * 2) Module:Infobox:233: in function "addClass"
 * 3) (tail call): ?
 * 4) mw.lua:425: ?

I was wonding if there was an easy solution for this? 