Module:AutomaticInfoboxItem

local p = {} local cargo = mw.ext.cargo

function p.Main( frame ) local tables = 'item' local fields = 'name,description,category,tier,rarity,price,stackSize,twoHanded,upgradeable,wikiPage,id,colonyTags,itemTags' local args = { where = 'item.id=fu_carbon', limit = 1 }   local ret = '' local results = cargo.query( tables, fields, args ) for _, result in ipairs(results) do       -- Do something with the result table, e.g. result.alias1 for key, val in pairs(result) do         ret = ret .. key .. " = " .. val .. "\n" end end end

return p