Module:Sprite: Difference between revisions
m Remove inline background image for sprites with defined class |
m Revert edits by MarkusRost (talk): Accidentally broke something |
||
| Line 42: | Line 42: | ||
local styles = {} | local styles = {} | ||
if not setting( 'nourl' ) and setting( 'url' ) | if not setting( 'nourl' ) and setting( 'url' ) 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 | ||