Module:InstantiateEntity

local util_args = require("Module:ArgsUtil") local util_vars = require("Module:VarsUtil")

local p = {} function p.main(frame) local args = util_args.merge local Entity = require('Module:' .. args.entityType) local object = Entity(args[1], args) if not args[2] then return object:get(args.len) end return object[args[2]](object, args) end return p