Module:headword: Difference between revisions
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 947: | Line 947: | ||
-- add an appropriate category. | -- add an appropriate category. | ||
local postype = export.pos_lemma_or_nonlemma(data.pos_category) | local postype = export.pos_lemma_or_nonlemma(data.pos_category) | ||
local main_cat = data.lang:getMainCategoryName() | |||
if not postype then | |||
elseif not data.noposcat then | |||
if postype:match("^lemma") and main_cat ~= "lemma" then | |||
postype = main_cat | |||
end | |||
insert(data.categories, 1, full_langname .. " " .. postype .. "s") | |||
end | |||
insert(data.categories, 1, "Contionary") | |||
-- EXPERIMENTAL: see [[Wiktionary:Beer parlour/2024/June#Decluttering the altform mess]] | -- EXPERIMENTAL: see [[Wiktionary:Beer parlour/2024/June#Decluttering the altform mess]] | ||
| Line 993: | Line 992: | ||
end | end | ||
if is_reconstructed then | if is_reconstructed and not data.lang:hasType("conlang") then | ||
default_head = "*" .. default_head | default_head = "*" .. default_head | ||
end | end | ||
| Line 1,426: | Line 1,425: | ||
insert(data.categories, full_langname .. " terms spelled with " .. character) | insert(data.categories, full_langname .. " terms spelled with " .. character) | ||
end | end | ||
end | end | ||
end | end | ||
| Line 1,464: | Line 1,455: | ||
-- Add to various maintenance categories. | -- Add to various maintenance categories. | ||
export.maintenance_cats(page, data.lang, data.categories, data.whole_page_categories) | export.maintenance_cats(page, data.lang, data.categories, data.whole_page_categories) | ||
------------ 10. Format and return headwords, genders, inflections and categories. ------------ | ------------ 10. Format and return headwords, genders, inflections and categories. ------------ | ||