Module:Sprite: Difference between revisions

m
no edit summary
m (add the "hideDefaultTooltip" class back)
mNo edit summary
Line 244: Line 244:


sprite:addClass("sprite")
sprite:addClass("sprite")
sprite:addClass("hideDefaultTooltip")


if self.__settings.hideTooltip ~= true then
if self.__settings.hideTooltip ~= true then
Line 252: Line 251:
local source = self.__source
local source = self.__source
sprite:addClass(source.settings.classname)
sprite:addClass(source.settings.classname)
sprite:attr( "title", self.__settings.name )
 
if self.__settings.hideTooltip ~= true then
sprite:attr( "title", self.__settings.name )
end


sprite:attr( "data-title", self.__settings.title )
sprite:attr( "data-title", self.__settings.title )
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564

edits