Module:Sandbox/User:Alsang: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 179: Line 179:
for _,page in ipairs(results) do
for _,page in ipairs(results) do
local result = mw.smw.ask('[['..page.name..']]|Activity JSON = data')
local result = mw.smw.ask('[['..page.name..' (skill node)]]|Activity JSON = data')
page.JSON = (result and result[1] and result[1].data) or ''
page.JSON = (result and result[1] and result[1].data) or ''
end
end