Module:UtilsCargo

local p = {} local cargo = mw.ext.cargo local frame = mw.getCurrentFrame

function p.declare(cargoTable, fields) return frame:callParserFunction{ name = '#cargo_declare:_table=' .. cargoTable, args = fields } end

function p.attach(cargoTable) return frame:callParserFunction{ name = '#cargo_attach:_table=' .. cargoTable } end

function p.store(cargoTable, fields) frame:callParserFunction{ name = '#cargo_store:_table=' .. cargoTable, args = fields } end

return setmetatable(p, {__index=cargo})