Module:Excerpt slideshow/sandbox: Difference between revisions

Content deleted Content added
fix indents
Update calls to Excerpt module to latest changes
Line 129:
for _i, title in ipairs(sortedTitles) do
if (#galleryArgs / 2) < limit then
local excerpt = mw.text.trim(excerptModule.mainget({title}, options))
if excerpt and excerpt ~= '' and #excerpt > 10 then
-- temporarily take off the '''[[Page title|Read more...]]''' link if present
Line 175:
local makeOptions = function(args)
local options = args -- pick up miscellaneous options: more, errors, fileargs
options.paraflags = excerptModule.numberflagsnumberFlags(args.paragraphs or "") -- parse paragraphs, e.g. "1,3-5" → {"1","3-5"}
options.fileflags = excerptModule.numberflagsnumberFlags(args.files or "") -- parse file numbers
if args.nostubs and isDeclined(args.nostubs) then
options.nostubs = false
Line 201:
local text = pageContent
if pageSection then -- check relevant section only
text = excerptModule.getsectiongetSection(pageContent, pageSection, sectionOnly) or pageContent
end
-- begin BHG addition for tracking source pages