Module:SpriteFile: Difference between revisions

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

Navigation menu