Editing Module:Room features
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 37: | Line 37: | ||
local ret = {} |
local ret = {} |
||
local location = args[1] or mw.title.getCurrentTitle().fullText |
local location = args[1] or mw.title.getCurrentTitle().fullText |
||
local query = mw.smw.ask(base_query(location)) |
local query = mw.smw.ask(base_query(location)) |
||
if query ~= nil then |
if query ~= nil then |
||
Line 46: | Line 46: | ||
for i,v in ipairs(query) do |
for i,v in ipairs(query) do |
||
local key = infobox_cat_map[v.infobox_sub or v.infobox] |
local key = infobox_cat_map[v.infobox_sub or v.infobox] |
||
⚫ | |||
-- Can be nil - See East Beach for example |
|||
if key ~= nil then |
|||
⚫ | |||
end |
|||
end |
end |
||
for cat,results in pairs(results_by_type) do |
for cat,results in pairs(results_by_type) do |