45,693
edits
No edit summary |
No edit summary |
||
Line 184: | Line 184: | ||
if target:sub(1, 1) == "/" then | if target:sub(1, 1) == "/" then | ||
return ":" .. target | return ":" .. target | ||
elseif target:find("^Reconstruction:") then | elseif target:find("^Reconstruction:") then | ||
return target | return target | ||
-- Link to appendix for reconstructed terms and terms in appendix-only languages. Plain links interpret * literally, however. | -- Link to appendix for reconstructed terms and terms in appendix-only languages. Plain links interpret * literally, however. | ||
elseif reconstructed == 1 then | elseif reconstructed == 1 then | ||
Line 316: | 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:") end | |||
link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}") | link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}") | ||
Line 938: | Line 938: | ||
if data.tr[1] == "" or data.tr[1] == "-" then | if data.tr[1] == "" or data.tr[1] == "-" then | ||
data.tr[1] = nil | data.tr[1] = nil | ||
else | else | ||
local phonetic_extraction = mw.loadData("Module:links/data").phonetic_extraction | local phonetic_extraction = mw.loadData("Module:links/data").phonetic_extraction |