Module:SpriteFile: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 113: Line 113:
spriteText = '[[' .. link .. '|' .. tostring( spriteText ):gsub("(Vanilla)", "") .. ']]'
spriteText = '[[' .. link .. '|' .. tostring( spriteText ):gsub("(Vanilla)", "") .. ']]'
elseif string.find(tostring(spriteText), "[Pp]arallel:") then
elseif string.find(tostring(spriteText), "[Pp]arallel:") then
spriteText = '[[' .. link .. '|' .. mw.ustring.gsub( tostring( spriteText ):gsub("[Pp]arallel:", ""):gsub("%a", string.upper, 1), "^%l", string.upper ) .. ']]'
spriteText = '[[' .. link .. '|' .. mw.ustring.gsub( (tostring( spriteText ):gsub("[Pp]arallel:", ""):gsub("%a", string.upper, 1)), "^%l", string.upper ) .. ']]'
else
else
spriteText = '[[' .. link .. '|' .. tostring( spriteText ) .. ']]'
spriteText = '[[' .. link .. '|' .. tostring( spriteText ) .. ']]'

Navigation menu