มอดูล:no-sortkey
หน้าตา
- This มอดูล lacks a documentation subpage. Please create it.
- Useful links: subpage list • links • transclusions • testcases • sandbox
local export = {}
local u = mw.ustring.char
local a, b, c = u(0xF000), u(0xF001), u(0xF002)
local oneChar = {
["æ"] = "z" .. a, ["ø"] = "z" .. b, ["å"] = "z" .. c
}
function export.makeSortKey(text, lang, sc)
return mw.ustring.upper(mw.ustring.gsub(mw.ustring.lower(text), ".", oneChar))
end
return export