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), "#%&+/:<=>@[\\]_{|}") | ||
local asterisk = lang:hasType("reconstructed") and not lang:hasType("conlang") and not link.display:match("^%*") and "*" or "" | local asterisk = lang:hasType("reconstructed") and (not lang:hasType("conlang")) and (not link.display:match("^%*")) and "*" or "" | ||
link.display = mw.ustring.gsub(asterisk .. link.display, "%*%*", "*") | link.display = mw.ustring.gsub(asterisk .. link.display, "%*%*", "*") | ||
Line 408: | Line 408: | ||
if not link then return capture end | if not link then return capture end | ||
if all_reconstructed and not link.target | if all_reconstructed and not link.target:find("^%*") then | ||
link.target = "*" .. link.target | link.target = "*" .. link.target | ||
end | end |