Module:SpriteFile: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 107: Line 107:
spriteText = '[' .. link .. ' ' .. tostring( spriteText ) .. ']'
spriteText = '[' .. link .. ' ' .. tostring( spriteText ) .. ']'
else
else
if string.find(link, "parallel:") then
if string.find(link, "parallel:") then   -- <---- this sub-if/else statement is new
spriteText = '[[' .. mw.ustring.lower( link ):gsub( 'parallel:', '' ) .. '|' .. tostring( spriteText ) .. ']]'
spriteText = '[[' .. mw.ustring.lower( link ):gsub( 'parallel:', '' ) .. '|' .. tostring( spriteText ) .. ']]'
else
else

Navigation menu