7,878
edits
No edit summary |
No edit summary |
||
(26 intermediate revisions by the same user not shown) | |||
Line 108: | Line 108: | ||
-- External link | -- External link | ||
if link:find( '//' ) then | if link:find( '//' ) then | ||
spriteText = '[' .. link .. ' ' .. tostring( | spriteText = '[' .. link .. ' ' .. tostring( spriteText ) .. ']' | ||
else | else | ||
spriteText = '[[' .. link .. '|' .. tostring( link ) .. ']]' | if string.find(link, " (Vanilla)") then -- <-- this inner if/else statement is added | ||
spriteText = '[[' .. link .. '|' .. tostring( spriteText ):gsub(" (Vanilla)", "") .. ']]' | |||
elseif string.find(tostring(spriteText), "[Pp]arallel:") then | |||
text = tostring(spriteText):gsub(":%l", string.upper) | |||
text = text:gsub("[Pp]arallel:", "") | |||
spriteText = '[[' .. link .. '|' .. text .. ']]' | |||
else | |||
spriteText = '[[' .. link .. '|' .. tostring( spriteText ) .. ']]' | |||
end | |||
end | end | ||
end | end |