Module:links: Difference between revisions

Jump to navigation Jump to search
no edit summary
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 "*" .. link.display or link.display
--local asterisk = lang:hasType("reconstructed") and (not lang:hasType("conlang")) and (not link.display:match("^%*")) and "*" .. link.display or link.display
link.display = link.display:gsub("%*%*", "*")
--link.display = link.display:gsub("%*%*", "*")
return "[[" .. link.target .. (link.fragment and "#" .. link.fragment or "") .. "|" .. link.display .. "]]"
return "[[" .. link.target .. (link.fragment and "#" .. link.fragment or "") .. "|" .. link.display .. "]]"

Navigation menu