Module:Sandbox/FalterTest

Revision as of 12:24, 17 September 2020 by Falterfire (talk | contribs) (testing stuff in Lua)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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