Changes

Jump to navigation Jump to search
300 bytes added ,  16:12, 25 October 2017
m
1 revision imported
Line 164: Line 164:  
         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 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
 +
            return image .. "[[Category:Pages using deprecated image syntax]]";
 
         else
 
         else
 
             return image;
 
             return image;
Line 219: Line 221:  
         if (tonumber(size) or 0) > 0 then
 
         if (tonumber(size) or 0) > 0 then
 
             size = size .. "px";
 
             size = size .. "px";
 +
        end
 +
        -- add px to sizedefault if just a number
 +
        if (tonumber(sizedefault) or 0) > 0 then
 +
            sizedefault = sizedefault .. "px";
 
         end
 
         end
 
          
 
          
Bureaucrats, private-view, public-view, Administrators
97,692

edits

Navigation menu