Module:Delink: Difference between revisions
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) No edit summary |
||
Line 36: | Line 36: | ||
end | end | ||
function p._delinkTarget(s | function p._delinkTarget(args) | ||
local s = args[1] or "" | |||
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("^%[%[(.+)|.-%]%]") |