Module:Sandbox/BrandonXLF/3: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 37:
end
if existingFile == '' and mw.title.new('File:RR ' .. fileNameroute .. ' jct.svg').file.exists then -- Check if the fallback file exists and record if it does
if existingFile == '' then
fileNameexistingFile = 'RR ' .. route .. ' jct.svg' -- Try fallback file
if mw.title.new('File:' .. fileName).file.exists then -- Check if the fallback file exists and record if it does
existingFile = fileName
end
end