Module:links: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 158: Line 158:
local reconstructed, escaped
local reconstructed, escaped
if not plain then
if not plain then
target, reconstructed = target:gsub("^%*(.)", "%1")
target = target:gsub("^%*(.)", "%1")
end
end
reconstructed = lang:hasType("reconstructed") and 1 or 0
target, escaped = target:gsub("^(\\-)\\%*", "%1*")
target, escaped = target:gsub("^(\\-)\\%*", "%1*")


Line 192: Line 193:
return nil
return nil
else
else
target = "Reconstruction:" .. lang:getCanonicalName() .. "/" .. target
target = target
end
end
-- Reconstructed languages and substrates require an initial *.
-- Reconstructed languages and substrates require an initial *.