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 = { ['Helmet'] = 'h', ['Chestplate'] = 'c', ['Leggings'] = 'l', ['Boots'] = 'b', }

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

local baz = table.keys(bar)

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

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

function p.test return string.wrapHtml(pieces[1]..' '..pieces[2]..' '..pieces[3]..' '..pieces[4], 'span', {style="color:red"}) end

return p