Module:head: Difference between revisions

m
Added affix categorisation
mNo edit summary
m (Added affix categorisation)
Line 25: Line 25:
cats = cats .. "[[Category:" .. data.language.name .. " lemmas]]"
cats = cats .. "[[Category:" .. data.language.name .. " lemmas]]"
end
end
if mw.ustring.match(data.pos, "fix$") then cats = cats .. "[[Category:" .. data.language.name .. " affixes]]" end
cats = cats .. "[[Category:" .. data.language.name .. " " .. pluralize(data.pos) .. "]]"
cats = cats .. "[[Category:" .. data.language.name .. " " .. pluralize(data.pos) .. "]]"
local head = data.term
local head = data.term