Module:Redirect/sandbox: Difference between revisions

Content deleted Content added
Adding a "pipe" parameter so you can choose only to change redirects that aren't part of the text
mNo edit summary
Line 133:
if newLink and (newLink ~= link) and ((not pipe) or (pipe == 'make') or (display and (pipe == 'yes')) or (not display and (pipe == 'no'))) then
link = warOnGsub(link, nil)
if pipe == 'make' and (not display) then
-- if we're changing the link and there's no |something, create |the old name in the link.
newLink = newLink .. "|" .. link
end