Module:Icons: Difference between revisions

Changed nolink to still link the image unless notext is also specified
(Added NoLink option)
(Changed nolink to still link the image unless notext is also specified)
Line 31: Line 31:
   if type ~= nil and type ~= '' then result = result..'_('..type..')' end
   if type ~= nil and type ~= '' then result = result..'_('..type..')' end
   result = result..'.'..ext..'|'..tostring(imgSize)..'px'  
   result = result..'.'..ext..'|'..tostring(imgSize)..'px'  
   if not nolink then result = result..'|link='..link end
   if not (nolink and notext) then result = result..'|link='..link end
   result = result..']]'
   result = result..']]'