Module:Category handler: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
pass the demospace parameter to Module:Namespace detect
(hmm, looks like the computer I was editing this on doesn't like the negation symbol)
(pass the demospace parameter to Module:Namespace detect)
Line 205:
end
ndargs.page = args.page
ndargs.pagedemospace = args.pagedemospace
local ndresult = nsDetect.main(ndargs)
if ndresult then
Line 212 ⟶ 213:
-- Namespace parameters exist; advanced usage.
-- If the all parameter is specified, return it.
iflocal all = args.all then
if rettype(all) == ret'string' .. args.allthen
ret = ret .. all
end
Line 223 ⟶ 225:
end
end
ifndargs.other = args.other then
ndargs.otherpage = args.otherpage
endndargs.demospace = args.demospace
if args.page then
ndargs.page = args.page
end
local data = nsDetect.main(ndargs)
Line 238 ⟶ 237:
-- Remove non-positive integer values, as only positive integers
-- from 1-10 were used with the old template.
if datanum > 0 and math.floor(datanum) == datanum then
andlocal math.floor(datanum)dataArg == args[datanum]
andif args[datanum]type(dataArg) == 'string' then
ret = ret .. args[datanum]dataArg
if args.page then end
end
else
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu