Module:SpriteFile: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 108: Line 108:
else
else
if string.find(link, "parallel:") then  -- <---- this sub-if/else statement is new
if string.find(link, "parallel:") then  -- <---- this sub-if/else statement is new
spriteText = '[[' .. mw.ustring.gsub( link, "parallel:", "" ) .. '|' .. mw.ustring.gsub( tostring(spriteText), "parallel:", "" ) .. ']]'
spriteText = '[[' .. mw.ustring.gsub( link, "parallel:", "" ) .. '|' .. mw.ustring.gsub( tostring(spriteText), "parallel:", "" ) .. ']]'   -- <-- have to do this weird inner tostring here bc something about converting the spriteText table causes the text indentation to be correct
else
else
spriteText = '[[' .. link .. '|' .. tostring( spriteText ) .. ']]'
spriteText = '[[' .. link .. '|' .. tostring( spriteText ) .. ']]'

Navigation menu