Content deleted Content added
fix |
Anomalocaris (talk | contribs) Sync with N−3 version by Frietjes 14:50, 10 March 2021 |
||
Line 38:
local randomiseArgs = { ['t'] = galleryLines }
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;"
return output
end
Line 183 ⟶ 176:
end
p._main = function(args, transclude,
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)
end
Line 198 ⟶ 189:
local args = cleanupArgs(parentArgs)
local output = p._main(args, false)
return frame:extensionTag{ name='templatestyles', args = { src='Module:Random slideshow
.. frame:preprocess(output)
end
Line 207 ⟶ 198:
local args = cleanupArgs(parentArgs)
local output = p._main(args, true)
return frame:extensionTag{ name='templatestyles', args = { src='Module:Random slideshow
.. frame:preprocess(output)
end
|