Module:Text

data = mw.loadData("Module:Text/characterInfo") p = {} local trim = mw.text.trim

function p.explode(div,str) if (div=='') then return false end local pos = 0 local arr = {} for st,sp in function return string.find(str,div,pos,true) end do		table.insert(arr,string.sub(str,pos,st-1)) pos = sp + 1 end table.insert(arr, string.sub(str,pos)) return arr end

function p.characterInfo(frame) local args = require("Module:Arguments").getArgs(frame,{parentFirst=true}) return p._characterInfo(args) end function p._characterInfo(args) local key = args[1] local entry = data[key] return entry end

return p