Content deleted Content added
allow for non-random output |
check for length of gallery args, as may not always get an excerpt |
||
Line 119:
local sortedTitles = nonRandom and titlesSequence or randomModule.main('array', {t=titlesSequence, limit=limit})
for _i, title in ipairs(sortedTitles) do
if
local excerpt = mw.text.trim(excerptModule.main({title}, options))
if excerpt and excerpt ~= '' and #excerpt > 10 then
|