Module:Room features: Difference between revisions
no edit summary
(Created page with "local p = {} function p.main(frame) local args = frame:getParent().args return p._main(args) end local categories = { 'Non-player characters', 'Monsters', 'Skill nodes', 'Scenery' } function base_query(location, category) return { '[[Has subobject::<q>Located in::' .. location .. '</q>]]', 'category=' .. category, '?#-', '?Name', '?Image#-', } end function p._main(args) local ret = '' local location = args[1] or mw.title.getCurrentTitle() f...") |
No edit summary |
||
Line 29:
for _,cat in ipairs(categories) do
ret = ret .. '===' .. cat .. '===\n'
local query = mw.smw.ask(base_query(location,
local gallery = '<gallery>\n'
|