Modul:he-patterncat
A modult a Modul:he-patterncat/doc lapon tudod dokumentálni
local export = {}
local catnamepattern = "^Hebrew terms in the pattern ([" .. mw.ustring.char(0x0590) .. "-" .. mw.ustring.char(0x05FF) .. "]+)$"
function export.get(frame)
local ns = mw.title.getCurrentTitle().nsText
local title = mw.title.getCurrentTitle().text
if ns == "Category" then
local m = mw.ustring.match(title, catnamepattern)
if m then
return m
else
return ""
end
else
return ""
end
end
return export