Module:InfoboxImage: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(add tracking for Category:Pages using deprecated image syntax as per talk page request) |
(add drafts with thumbnails to tracking category) |
||
Line 162: | Line 162: | ||
if mw.ustring.sub(image,1,2) == "[[" then |
if mw.ustring.sub(image,1,2) == "[[" then |
||
-- search for thumbnail images and add to tracking cat if found |
-- search for thumbnail images and add to tracking cat if found |
||
if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then |
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]]"; |
return image .. "[[Category:Pages using infoboxes with thumbnail images]]"; |
||
elseif mw.title.getCurrentTitle().namespace == 0 then |
elseif mw.title.getCurrentTitle().namespace == 0 then |