Module:SpriteFile: Difference between revisions

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

Navigation menu