Module:Sprite: Difference between revisions

Add "wrap" arg to wrap text
m Remove inline background image for sprites with defined class
Line 42: Line 42:
local styles = {}
local styles = {}
if not setting( 'nourl' ) and setting( 'url' ) then
if not setting( 'nourl' ) and setting( 'url' ) and not setting( 'url' ).style then
styles[#styles + 1] = 'background-image:' .. ( setting( 'url' ).url or setting( 'url' ) )
styles[#styles + 1] = 'background-image:' .. ( setting( 'url' ).url or setting( 'url' ) )
end
end