Module:Infobox/Item

local p = {}

local g = require("Module:Common") local box = require("Module:Infobox") local invItem = require("Module:Infobox/InvItem")

-- returns MW code for an item (NOT block) infobox function p.main(frame) local frame, args = g.getFrameAndArgs(frame) if not g.isGiven(args.type) then args.type = "Item" end local l = "" l = l .. box.condRow("Durability", args.durability) if g.isGiven(args.rows) then l = l .. args.rows end args.rows = l	frame.args = args return invItem.main(frame) end

return p