Module:head: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
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 mw.ustring.find(data.term, " ") 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 52: Line 49:
end
end
if data.language.proto then head = "*" .. head end
if data.language.proto then head = "*" .. head end
if mw.ustring.find(data.term, " ") 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