Module:SpriteFile: Difference between revisions

m fix linkprefix
No edit summary
Line 50: Line 50:
if link ~= '' then
if link ~= '' then
altText = altText .. ' linking to ' .. link
altText = altText .. ' linking to ' .. link
end
if id == '' then
file = 'Grid Unknown.png'
altText = 'Unknown sprite image'
end
end
local sprite = mw.html.create( 'span' ):addClass( 'sprite-file' )
local sprite = mw.html.create( 'span' ):addClass( 'sprite-file' )