Module:Test

local p = {} local data = require("Module:Datatable") local cargo = mw.ext.cargo

frame = mw.getCurrentFrame

function round(num, decPlaces) local mult = 10^(decPlaces or 0) return math.floor(num * mult + 0.5) / mult end

function p.foo(param) result = frame:expandTemplate{ title = 'perk desc', args = {param.args[1]} } --string.char(10) result = result .. "\n\nHello There, your parm is: " .. param.args[1] .. "\n\nRealm: " .. realms[1][1] return result end

function p.title return mw.title.getCurrentTitle end

return p