Module:Excerpt slideshow/sandbox: Difference between revisions

Content deleted Content added
enable ignoreOnlyincludes by default
shuffle around
 
Line 170:
options.paraflags = excerptModule.numberFlags(args.paragraphs or "") -- parse paragraphs, e.g. "1,3-5" → {"1","3-5"}
options.fileflags = excerptModule.numberFlags(args.files or "") -- parse file numbers
options.ignoreOnlyincludes = options.ignoreOnlyincludes or== "yes"nil --and true byor options.ignoreOnlyincludes -- default ifto unspecifiedtrue
if args.nostubs and isDeclined(args.nostubs) then
options.nostubs = false
Line 175 ⟶ 176:
options.nostubs = true
end
options.ignoreOnlyincludes = options.ignoreOnlyincludes or "yes" -- true by default if unspecified
return options
end