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')

local bar = { ['string'] = 'a', ['int'] = '1', ['bool'] = 'true', } local prefixes = table.Map({	['Helmet'] = 'h',	['Chestplate'] = 'c',	['Leggings'] = 'l',	['Boots'] = 'b', })

local something = table.keys(prefixes) local pieces = table.keys(prefixes)

local baz = table.keys(bar)

function p.foo return string.wrapHtml(something[1], 'span', {style="color:red"}) end

function p.bar return string.wrapHtml(bar['string'], 'span', {style="color:red"}) end

function p.test return tostring(mw.title.getCurrentTitle) end

return p