Module:head: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 21: Line 21:
local function format_headword(data)
local function format_headword(data)
local cats = ""
local cats = ""
if data.multiword then
cats = cats .. "[[Category:" .. data.language.name .. " multiword terms]]"
end
if is_non_lemma(data.pos) then
if is_non_lemma(data.pos) then
cats = cats .. "[[Category:" .. data.language.name .. " non-lemma forms]]"
cats = cats .. "[[Category:" .. data.language.name .. " non-lemma forms]]"
Line 49: Line 52:
end
end
if data.language.proto then head = "*" .. head end
if data.language.proto then head = "*" .. head end
if data.multiword then
cats = cats .. "[[Category:" .. data.language.name .. " multiword terms]]"
end
return m_formatting.wrap_face(head, data.language, "head"), cats
return m_formatting.wrap_face(head, data.language, "head"), cats
end
end

Navigation menu