Board Thread:Lua Help/@comment-5068292-20150115153725/@comment-24473195-20160624115952

Bennie wrote: I tried to set this up on tibia.wikia.com with some advice from this thread, but I don't know what to do with this error:

Lua error: bad argument #1 to 'gsub' (string expected, got number). Backtrace: [C]: in function "v" mw.ustring.lua:61: in function "v" (tail call): ? mw.html.lua:121: in function "_build" mw.html.lua:136: in function "_build" mw.html.lua:52: in function "_build" [C]: in function "tostring" Module:Navbox:386: in function "tostring" (tail call): ? mw.lua:425: ?

Any ideas? Why would a number appear in that spot is behind me. Try following the instructions in these docs:


 * http://dev.wikia.com/wiki/Global_Lua_Modules/NavboxBuilder  OR
 * http://dev.wikia.com/wiki/Global_Lua_Modules/Navbox