Module:Sandbox/User:Alsang: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 5:
 
local query = {
'[[Variant of::Flint||Andesite||Granite||Basalt||Deathstone||Iron Ore||Cabranese Ore||Adathril Ore||Flantium Ore||Mine Cart Work]]',
'? #- = name',
'?Profession Level A = level',
'?Variant of = variant',
'sort = Profession B,Variant of,Profession Level A',
'limit = 500'
}
Line 16:
for _,page in ipairs(results) do
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 ''
if type(page.JSON)=='table' then
12,633

edits