Module:SpriteFile: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 107: Line 107:
spriteText = '[' .. link .. ' ' .. tostring( spriteText ) .. ']'
spriteText = '[' .. link .. ' ' .. tostring( spriteText ) .. ']'
else
else
spriteText = '[[' .. link .. '|' .. tostring( spriteText ) .. ']]'
if string.find(link, "parallel:") then
spriteText = '[[' .. mw.ustring.lower( link ):gsub( 'parallel:', '' ) .. '|' .. tostring( spriteText ) .. ']]'
else
spriteText = '[[' .. link .. '|' .. tostring( spriteText ) .. ']]'
end
end
end
end
end