Module:EquipmentPage

Revision as of 15:04, 27 October 2017 by がか (talk | contribs) (Created page with "local Utils = require("Module:Utils") local Equipment = require('Module:Equipment') return { buildable = function(frame) local args = Utils.getTemplateArgs(frame)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:EquipmentPage/doc

local Utils = require("Module:Utils")
local Equipment = require('Module:Equipment')

return {
    buildable = function(frame)
        local args = Utils.getTemplateArgs(frame)
        local name = args.explicit[1] or args.implicit.pagename or ""
        local equip = Equipment(name)
        return equip:buildable() and "true" or ""
    end,
}