Module:Random slideshow/sandbox: Difference between revisions

Content deleted Content added
remove hanging open braces and subsequent content, following expansion of templates; add comments to explain what's happening
check gallery files for non-free content
Line 113:
if galleryFiles then
for _, f in pairs(galleryFiles) do
local filename = string.gsub(f, '{{!}}.*', '')
table.insert(lines, f)
local isOkay = excerptModule.checkimage(filename)
if isOkay then
table.insert(lines, f)
end
end
end