Module:glossary: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 33: Line 33:
-- This won't work if the initial letter is non-ASCII.
-- This won't work if the initial letter is non-ASCII.
local lower_anchor = anchor:lower()
local lower_anchor = mw.ustring.lower(anchor)
return "[[wikt:Appendix:Glossary#" .. anchor .. "|" .. (text or anchor) .. "]]"
return "[[wikt:Appendix:Glossary#" .. lower_anchor .. "|" .. (text or anchor) .. "]]"
end
end


return export
return export