Module:SpriteFile: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 45: Line 45:
elseif link ~= '' then
elseif link ~= '' then
local linkPrefix = ( not link:find( '//' ) and args.linkprefix ) or ''
local linkPrefix = ( not link:find( '//' ) and args.linkprefix ) or ''
if string.find(linkPrefix, "[Pp]arallel:") then  -- <- these are the added bits here
if linkPrefix == "parallel:" then  -- <- these are the added bits here
linkprefix = ''   
linkprefix = ''   
end
if string.find(link, "[Pp]arallel:") then
link = mw.ustring.gsub( link, "[Pp]arallel:", "" )
else
link = link .. ' (Vanilla)'
end
end
link = linkPrefix .. link
link = linkPrefix .. link

Navigation menu