Module:Sandbox/User:Alsang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
local query = { |
local query = { |
||
'[[Variant of::Flint||Andesite||Granite||Basalt||Deathstone||Iron Ore||Cabranese Ore||Adathril Ore||Flantium Ore]]', |
'[[Variant of::Flint||Andesite||Granite||Basalt||Deathstone||Iron Ore||Cabranese Ore||Adathril Ore||Flantium Ore||Mine Cart Work]]', |
||
'? #- = name', |
'? #- = name', |
||
'?Profession Level A = level', |
'?Profession Level A = level', |
||
'?Variant of = variant', |
'?Variant of = variant', |
||
'sort = |
'sort = Variant of,Profession Level A', |
||
'limit = 500' |
'limit = 500' |
||
} |
} |
||
Line 16: | Line 16: | ||
for _,page in ipairs(results) do |
for _,page in ipairs(results) do |
||
local result = mw.smw.ask('[['..page.name..' (skill node)]]|?Activity JSON = data') |
local result = mw.smw.ask('[['..page.name..' (skill node)]]|?Activity JSON = data') |
||
if page.variant=='Mine Cart Work' then |
|||
result = mw.smw.ask('[['..page.name..']]|?Activity JSON = data') |
|||
end |
|||
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 |