Module:TestModule: Difference between revisions

From Kerbal Space Program 2 Wiki
Jump to navigation Jump to search
testing module, using to identify expensive parser functions in Data pulls
(No difference)

Revision as of 16:35, 29 March 2025

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