Module:Random slideshow/sandbox: Difference between revisions

Content deleted Content added
try a different way
try a bigger limit
Line 4:
local randomModule = require('Module:Random')
local redirectModule = require('Module:Redirect')
 
local MAX_IMAGES_FOR_MOBILE = 20
 
function cleanupArgs(argsTable)
Line 39 ⟶ 41:
local sortedLines = nonRandom and galleryLines or randomModule.main('array', randomiseArgs)
for i = 1, #sortedLines do
if i < 10MAX_IMAGES_FOR_MOBILE then
sortedLines[i] = sortedLines[i] .. '<span class="switcher-label" style="display:none"><span class="randomSlideshow-sr-only">Image ' .. tostring(i) .. '</span>'
end