Module:glossary: Difference between revisions

no edit summary
No edit summary
No edit summary
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#" .. anchor .. "|" .. (text or anchor) .. "]]"