モジュール:Infobox/Item

提供:Azipedia
ナビゲーションに移動 検索に移動

このモジュールについての説明文ページを モジュール:Infobox/Item/doc に作成できます

local p = {}

local g = require("Module:FTBCommon")
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 = "アイテム" end
	
	local l = ""
	
	l = l .. box.condRow("耐久度", 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