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 57: | Line 57: | ||
local gallery_lines = {} |
local gallery_lines = {} |
||
for i,v in ipairs(results) do |
for i,v in ipairs(results) do |
||
local image = v.image_sub or v.image or 'File: |
local image = v.image_sub or v.image or 'File:Section anchor light.svg' |
||
local quantity = '' |
local quantity = '' |
||
if v['Location quantity'] and (v['Location quantity'] ~= 'Unknown' and v['Location quantity'] ~= '1') then |
if v['Location quantity'] and (v['Location quantity'] ~= 'Unknown' and v['Location quantity'] ~= '1') then |
||
Line 69: | Line 69: | ||
end |
end |
||
local display_name = v.name_sub or v.name |
local display_name = v.name_sub or v.name |
||
table.insert(gallery_lines, string.format(' |
table.insert(gallery_lines, string.format('%s|%s[[%s|%s%s]]', image, quantity, obj_name, display_name, version_name)) |
||
end |
end |
||