Content deleted Content added
add class to output, per live module |
sync |
||
Line 29:
end
function makeOutput(galleryLines, maxWidth, containerClassName)
local randomiseArgs = { ['t'] = galleryLines }
local randomisedLines = randomModule.main('array', randomiseArgs)
local galleryContent = table.concat(randomisedLines, '\n')
local output = '<div class="
return output
end
Line 39:
function makeGalleryLine(file, caption, credit)
local title = mw.title.new(file, "File" )
local creditLine = ( credit and '<p><span style="font-size:88%">' .. credit .. '</span></p>' or '' )
return title.prefixedText .. '{{!}}' .. ( caption or '' ) .. creditLine
end
Line 116:
end
p._main = function(args, transclude, containerClassName)
if not args[1] then
return error(linked and 'No page specified' or 'No page specified', 0)
end
local lines = transclude and makeTranscludedGalleryLinesTables(args) or makeGalleryLinesTable(args)
return makeOutput(lines, args.width or '100%', containerClassName or 'randomSlideshow-container')
end
Line 137:
local args = cleanupArgs(parentArgs)
local output = p._main(args, true)
return frame:preprocess(output)
end
|