Module:Sandbox/User:Alsang: Difference between revisions

Replaced content with "local p = {} function p.main() return end return p"
No edit summary
(Replaced content with "local p = {} function p.main() return end return p")
Tag: Replaced
 
(16 intermediate revisions by the same user not shown)
Line 1:
local p = {}
 
function p.main()
 
return out
local query = '[[Category:Hammermage Equipment]] OR [[Category:Guardian Equipment]] OR [[Category:Cryoknight Equipment]]|?#-=name|limit=500'
local results = mw.smw.ask(query)
local out = mw.html.create('table')
for _,page in ipairs(results) do
out:wikitext(page.name)
out:wikitext(mw.getCurrentFrame():preprocess('{{ItemSources|' .. page.name .. '}}'))
end
return out
end
20,856

edits