Module:InfoboxImage: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(add drafts with thumbnails to tracking category)
(Undid revision 755004686 by WOSlinker (talk). Per comment on talk page, this is flooding the category with Drafts that will never be articles.)
Line 162:
if mw.ustring.sub(image,1,2) == "[[" then
-- search for thumbnail images and add to tracking cat if found
if (mw.title.getCurrentTitle().namespace == 0 or mw.title.getCurrentTitle().namespace == 118) and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then
return image .. "[[Category:Pages using infoboxes with thumbnail images]]";
elseif mw.title.getCurrentTitle().namespace == 0 then