Module:Room features: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
return { |
return { |
||
'[[Has subobject::<q>[[Located in::' .. location .. ']]</q>]]', |
'[[Has subobject::<q>[[Located in::' .. location .. ']]</q>]]', |
||
' |
'[[Category:' .. category, |
||
'?#-', |
'?#-', |
||
'?Name', |
'?Name', |
||
Line 29: | Line 29: | ||
for _,cat in ipairs(categories) do |
for _,cat in ipairs(categories) do |
||
⚫ | |||
local query = mw.smw.ask(base_query(location, cat)) |
local query = mw.smw.ask(base_query(location, cat)) |
||
if query ~= nil then |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end |
|||
⚫ | |||
mw.log(gallery) |
|||
⚫ | |||
⚫ | |||
end |
end |
||
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||
return ret |
|||
end |
end |
||