Module:Delink: Difference between revisions

tweak pipe trick spacing
en>Mr. Stradivarius
(Moving from Module:User:Mr. Stradivarius/sandbox2. Still under development, but is obviously destined to be a full-blown module, so moving to a better title.)
 
en>Mr. Stradivarius
(tweak pipe trick spacing)
Line 13: Line 13:
     end
     end
     if mw.ustring.match(s, "%(.-%)$") then
     if mw.ustring.match(s, "%(.-%)$") then
         s = mw.ustring.match(s, "(.*)%(.-%)$")
         s = mw.ustring.match(s, "(.-) ?%(.-%)$")
     elseif mw.ustring.match(s, ",") then
     elseif mw.ustring.match(s, ",") then
         s = mw.ustring.match(s, "(.-),.*$")
         s = mw.ustring.match(s, "(.-),.*$")
Anonymous user