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.variant~='Mine Cart Work' then
local result = mw.smw.ask('[['..page.name..' (skill node)]]|?Activity JSON = data')
page.node = page.name
if page.variant=='Mine Cart Work' then
else
result = mw.smw.ask('[['..page.name..']]|?Activity JSON = data')
page.node = page.name .. ' (skill node)'
end
end
page.JSON = (result and result[1] and result[1].data) or ''
local result = mw.smw.ask('[['..page.node..' (skill node)]]|?Activity JSON = data')
if type(page.JSON)=='table' then
page.JSON = table.concat(page.JSON,'<br>')
page.JSON = (result and result[1] and result[1].data) or ''
if type(page.JSON)=='table' then
end
page.JSON = table.concat(page.JSON,'<br>')
end
end
end
Line 59: Line 61:
:done()
:done()
:tag('td')
:tag('td')
:wikitext('[['..item.name..' (skill node)]]')
:wikitext('[['..item.node..']]')
:done()
:done()
:tag('td')
:tag('td')