42
edits
(Infobox image) |
|||
Line 18: | Line 18: | ||
local link = clean(args.link) | local link = clean(args.link) | ||
local | local result | ||
if link then | |||
result = string.format('[[File:%s|%s|alt=%s|link=%s', image, size, alt, link) | |||
else | |||
result = string.format('[[File:%s|%s|alt=%s', image, size, alt) | |||
end | |||
if title then | |||
result = result .. '|' .. title | |||
end | end | ||
return | result = result .. ']]' | ||
return result | |||
end | end | ||
return p | return p |
edits