Module:Sandbox/User:Alsang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
for _,page in ipairs(results) do |
for _,page in ipairs(results) do |
||
if page. |
if string.find(page.name,'Mine') then |
||
page.node = page.name |
page.node = page.name |
||
else |
else |
||
page.node = page.name .. ' (skill node)' |
page.node = page.name .. ' (skill node)' |
||
end |
end |
||
local result = mw.smw.ask('[['..page.node..' |
local result = mw.smw.ask('[['..page.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 '' |
||
if type(page.JSON)=='table' then |
if type(page.JSON)=='table' then |