Content deleted Content added
use sandbox styles |
Start setting up for Template:Switcher style fallback mode for mobile, which doesn't support slideshow galleries |
||
Line 39:
local sortedLines = nonRandom and galleryLines or randomModule.main('array', randomiseArgs)
local galleryContent = table.concat(sortedLines, '\n')
local output = '<div class="' .. containerClassName .. '" style="max-width:' .. normaliseCssMeasurement(maxWidth) .. '; margin:-4em auto;">{{#tag:gallery|' .. galleryContent .. '|mode=slideshow|class=switcher-container}}</div>'
return output
end
Line 50:
end
local creditLine = ( credit and '<p><span style="font-size:88%">' .. credit .. '</span></p>' or '' )
return title.prefixedText .. '{{!}}<span class="switcher-label" style="display:none">_</span>' .. ( caption or '' ) .. creditLine
end
|