48,355
edits
No edit summary |
No edit summary |
||
| Line 334: | Line 334: | ||
link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}") | link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}") | ||
if lang:hasType("reconstructed") and not lang:hasType("conlang") and not link.display:match("^%*") then | if lang:hasType("reconstructed") and not lang:hasType("conlang") and not link.display:match("^%*") then | ||
link.display = "*" .. link.display | |||
end | end | ||
return "[[" .. link.target .. (link.fragment and "#" .. link.fragment or "") .. "| | return "[[" .. link.target .. (link.fragment and "#" .. link.fragment or "") .. "|" .. link.display .. "]]" | ||
end | end | ||