Module:Excerpt slideshow/sandbox: Difference between revisions

Content deleted Content added
sync from live
Line 11:
local sourcepgagesusedcounter = 0;
local articlelistcount = -1;
local usesEmbeddedList = false;
-- end BHG addition for tracking source pages
 
Line 201 ⟶ 202:
if pageSection then -- check relevant section only
text = excerptModule.getsection(pageContent, pageSection, sectionOnly) or pageContent
-- begin BHG addition for tracking source pages
local thispage = mw.title.getCurrentTitle()
if (thispage.text == args[ii]) then
usesEmbeddedList = true;
end
-- end BHG addition for tracking source pages
end
-- replace annotated links with real links
Line 351 ⟶ 358:
elseif (articlelistcount > 1000) then
retval = retval .. "[[Category:Automated portals with over 1000 articles in article list]]"
end
if usesEmbeddedList then
retval = retval .. "[[Category:Automated portals with embedded list]]"
end
return retval