Module:Room features: Difference between revisions
Change fallback image to a questionmark, link image to the target page
(Use h3 tag instead of === to try to prevent broken "edit section" link) |
Im Wired In (talk | contribs) (Change fallback image to a questionmark, link image to the target page) |
||
Line 57:
local gallery_lines = {}
for i,v in ipairs(results) do
local image = v.image_sub or v.image or 'File:
local quantity = ''
if v['Location quantity'] and (v['Location quantity'] ~= 'Unknown' and v['Location quantity'] ~= '1') then
Line 69:
end
local display_name = v.name_sub or v.name
table.insert(gallery_lines, string.format('%s|link=%s|%s[[%s|%s%s]]', image, obj_name, quantity, obj_name, display_name, version_name))
end
|