Module:Room features: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(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: | 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:Unknown episode infobox icon.png' |
||
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('%s|%s[[%s|%s%s]]', image, quantity, obj_name, display_name, version_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 |
end |
||