Module:TestModule

From Kerbal Space Program 2 Wiki
Revision as of 16:35, 29 March 2025 by KiwiShark (talk | contribs) (testing module, using to identify expensive parser functions in Data pulls)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local p = {}
local getArgs = require('Module:Arguments').getArgs

function p.getData(frame)
	-- Get arguments from the invoke
	-- E.g., args = {"Example/engine", "modules", "engine", "isp", "vac"}
	local args = getArgs(frame, {frameOnly = true})
	-- Pass arguments to the helper function
	dataJson = p._getData(args)
	return dataJson
end

function p._getData(args)
	return "test output"
end

return p