Module:ItemInfo

-- local p = {} local getArgs = require('Module:Arguments').getArgs local loader = require('Module:Loader') local string, table, yesno, color = loader.require('String', 'Table', 'Yesno', 'Color')

function p.test(frame) local args = getArgs(frame) local foo = args[1] local bar = args[2] if bar == "test-string" then return "yes" else return "no: " .. tostring(bar) end end

function p.foo(mode, key, alt, showName, noErr, noImagePadding, noLink) return tostring(mode, key, alt, showName, noErr, noImagePadding, noLink) end p.bar = bind(p.foo, 'mob') function p.baz return p.bar('villager', 'v', 'yes', nil, 'no', 'yes') end

return p