View source for Module:TestModule
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
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"')
-- Iterate through dataJson using the args values as keys to
-- step down into the table per argument
for k, v in pairs(args) do
if k > 1 then
dataJson = dataJson[v]
end
end
-- Send the final, requested value back to the main function
return dataJson
end
return p
000
1:0
Template used on this page:
Return to Module:TestModule.