2,788
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
local function format_headword(data) | local function format_headword(data) | ||
local cats = "[[Category:" .. data.language.name .. " lemmas]]" | |||
cats = cats .. "[[Category:" .. data.language.name .. " " .. data.pos .. "s]]" | |||
if data.head then | |||
return m_formatting.wrap_face(data.head, data.language, "head"), cats | |||
end | |||
local head = data.term | local head = data.term | ||
if string.find(head, " ") then | if string.find(head, " ") then | ||
Line 14: | Line 19: | ||
head = table.concat(pieces, " ") | head = table.concat(pieces, " ") | ||
end | end | ||
return m_formatting.wrap_face(head, data.language, "head"), cats | return m_formatting.wrap_face(head, data.language, "head"), cats | ||
end | end |