47,726
edits
![]() | We're back! Sorry, bad combo of sickness, funeral and a month-long trip abroad. The site is back now. ![]() |
No edit summary |
No edit summary |
||
Line 333: | Line 333: | ||
link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}") | link.fragment = link.fragment and encode_entities(remove_formatting(link.fragment), "#%&+/:<=>@[\\]_{|}") | ||
return "[[" .. link.target .. (link.fragment and "#" .. link.fragment or "") .. "|" .. | local asterisk = "" | ||
if lang:hasType("reconstructed") and not lang:hasType("conlang") then | |||
if not link.display:match("^%*") then | |||
asterisk = "*" .. link.display | |||
end | |||
end | |||
asterisk = asterisk:gsub("%*%*", "*") | |||
return "[[" .. link.target .. (link.fragment and "#" .. link.fragment or "") .. "|" .. asterisk .. "]]" | |||
end | end | ||