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