8,279
edits
No edit summary |
No edit summary |
||
Line 107: | Line 107: | ||
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 | ||
-- have to do this weird inner tostring here bc something about converting the spriteText table causes the text indentation to be correct | -- have to do this weird inner tostring here bc something about converting the spriteText table causes the text indentation to be correct | ||
spriteText = '[[' .. mw.ustring.gsub( link, "[Pp]arallel:", "" ):gsub("^%l", string.upper) .. '|' .. mw.ustring.gsub( tostring(spriteText), "[Pp]arallel:", "" ):gsub("^%l", string.upper) .. ']]' | |||
spriteText = '[[' .. mw.ustring.gsub( link, " | |||
else | else | ||
spriteText = '[[' .. link .. ' (Vanilla)' .. '|' .. tostring( spriteText ) .. ']]' | spriteText = '[[' .. link .. ' (Vanilla)' .. '|' .. tostring( spriteText ) .. ']]' |