Module:TestModule: Difference between revisions
Jump to navigation
Jump to search
update to fix arg call |
already seeing expensive count go up 1, confirming... |
||
Line 6: | Line 6: | ||
local dataJson = mw.loadJsonData('GameData:LV-SW_"SWERV"') | local dataJson = mw.loadJsonData('GameData:LV-SW_"SWERV"') | ||
dataJson = 'test output' | |||
-- Send the final, requested value back to the main function | -- Send the final, requested value back to the main function | ||
return dataJson | return dataJson |
Revision as of 16:41, 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)
-- Load the data from the JSON page, parsed as a table of tables
local dataJson = mw.loadJsonData('GameData:LV-SW_"SWERV"')
dataJson = 'test output'
-- Send the final, requested value back to the main function
return dataJson
end
return p