Module:pollasena-roots: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 79: Line 79:
if links[i-1] == "-" then links[i] = links[i]:gsub("%|%*","|") end
if links[i-1] == "-" then links[i] = links[i]:gsub("%|%*","|") end
if links[i-1] ~= " " then links[i] = links[i]:gsub("%|%*%-","|-") end
if links[i-1] ~= " " then links[i] = links[i]:gsub("%|%*%-","|-") end
if match(alts[i-1],"%-$") then links[i] = links[i]:gsub("%|%*","|") end
if i~=1 and alts[i-1]:match("%-$") then links[i] = links[i]:gsub("%|%*","|") end
end
end