Module:Portal: Difference between revisions

Content deleted Content added
fix tracking bug when portal=no and error is generated
add nostrip argument to image()
Line 234:
end
 
function p._image(portals,nostrip)
-- Wrapper function to allow getImageName() to be accessed through #invoke.
local name = getImageName(portals[1])
-- If nostrip is yes (or equivalent), then allow all metadata (like image borders) to be returned
return name:match('^(.-)|') or name -- FIXME: use a more elegant way to separate borders etc. from the image name
local strip = not yesno(nostrip)
return strip and name:match('^(.-)|') or name -- FIXME: use a more elegant way to separate borders etc. from the image name
end