Module:Sprite: Difference between revisions

removed stringify so that html object can still be used
(👌)
 
(removed stringify so that html object can still be used)
Line 85: Line 85:
end
end


function Sprite:generateHTML ()
function Sprite:GenerateHTML ()
local sprite = mw.html.create( 'div' ):addClass( 'sprite' )
local sprite = mw.html.create( 'div' ):addClass( 'sprite' )


Line 99: Line 99:
sprite:cssText( table.concat( styles, '; ' ) )
sprite:cssText( table.concat( styles, '; ' ) )


return tostring(sprite)
return sprite
end
end


return Sprite
return Sprite
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154

edits