Module:Sandbox/FalterTest: Difference between revisions

From Melvor Idle
(testing stuff in Lua)
(No difference)

Revision as of 12:24, 17 September 2020

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

local p = {}

function p.test(frame)
    local thing = mw.text.jsonDecode('{"id":0,"category":"Thieving","type":"Logs","name":"Normal Logs","sellsFor":1,"media":"assets/media/bank/logs_normal.svg?2","masteryID":[2,0],"firemakingID":0}')
    --local thing = {Name = "Blah", Number = 7}
    mw.logObject(thing)
    mw.log(mw.text.jsonEncode(thing))
    mw.log("Doing stuff")
    return 7
end

return p