3,725
edits
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) (remove interwiki prefixes when using delinkTarget) |
||
Line 40: | Line 40: | ||
if s:match("|") then -- Find if we're dealing with a piped link. | if s:match("|") then -- Find if we're dealing with a piped link. | ||
s = s:match("^%[%[(.+)|.-%]%]") | s = s:match("^%[%[(.+)|.-%]%]") | ||
-- Remove w: interwiki prefixes | |||
s = s:gsub("^w:", "") | |||
-- Remove new lines from the display of multiline piped links, | -- Remove new lines from the display of multiline piped links, | ||
-- where the pipe is before the first new line. | -- where the pipe is before the first new line. |