Module:links: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 315: Line 315:
return m1 .. encode_entities(m2, "#%&+/:<=>@[\\]_{|}")
return m1 .. encode_entities(m2, "#%&+/:<=>@[\\]_{|}")
end)
end)
if link.target:match("^%*") then link.target = link.target:gsub("^%*","Reconstructed:" .. lang:getCanonicalName() .. "/") end
if link.target:match("^%*") and lang:hasType("reconstructed") then
link.target = link.target:gsub("^%*","Reconstructed:" .. lang:getCanonicalName() .. "/")
end
link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}")
link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}")