Documentation for this module may be created at Module:EquipmentPage/doc
local Utils = require("Module:Utils")
local Equipment = require('Module:Equipment')
function getEquipment(frame)
local args = Utils.getTemplateArgs(frame)
local name = args.explicit[1] or args.implicit.pagename or ""
return Equipment(name)
end
return {
info = function(frame)
return getEquipment(frame):info()
end,
wikipedia = function(frame)
return getEquipment(frame):wikipedia()
end,
buildable = function(frame)
return getEquipment(frame):buildable() and "true" or ""
end,
improvable = function(frame)
return getEquipment(frame):improvable() and "true" or ""
end,
}