Module:Random slideshow/sandbox: Difference between revisions

Content deleted Content added
add a nomobile div
try hard limit of 10 for switcher on mobile
Line 39:
local sortedLines = nonRandom and galleryLines or randomModule.main('array', randomiseArgs)
for i = 1, #sortedLines do
if i < 10 then
sortedLines[i] = sortedLines[i]:gsub("__SWITCHLABELPLACEHOLDER__", "<span class='randomSlideshow-sr-only'>Image "..tostring(i).."</span>")
else
sortedLines[i] = sortedLines[i]:gsub('class%=%"switcher%-label%"', 'class="nomobile"')
end
end
local galleryContent = table.concat(sortedLines, '\n')