Module:SpriteFile: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 114: Line 114:
elseif string.find(tostring(spriteText), "[Pp]arallel:") then
elseif string.find(tostring(spriteText), "[Pp]arallel:") then
delim = "[Pp]arallel:"
delim = "[Pp]arallel:"
text = tostring(spriteText):sub(1, tostring(spriteText):find(delim, 1, true) - 1)
text = tostring(spriteText):gsub("$[Pp]arallel:", "")
text = text:gsub("^%l", string.upper)
text = text:gsub("^%l", string.upper)
spriteText = '[[' .. link .. '|' .. text .. ']]'
spriteText = '[[' .. link .. '|' .. text .. ']]'

Navigation menu