Module:category tree/poscatboiler/data/terms by script

Wiktionary වෙතින්

This data submodule defines part of Wiktionary's category structure.

For an introduction to the poscatboiler system and a description of how to add or modify categories, see Module:category tree/poscatboiler/data/documentation.


local labels = {}
local raw_categories = {}
local handlers = {}



-----------------------------------------------------------------------------
--                                                                         --
--                                  LABELS                                 --
--                                                                         --
-----------------------------------------------------------------------------

labels["යෙදුම්, අක්ෂරක්‍රමය අනුව"] = {
	description = "{{{langname}}} terms categorized by the script they are written in (for languages with multiple native scripts).",
	umbrella_parents = "Terms by lexical property subcategories by language",
	parents = {"terms by orthographic property"},
}



-----------------------------------------------------------------------------
--                                                                         --
--                              RAW CATEGORIES                             --
--                                                                         --
-----------------------------------------------------------------------------


raw_categories["Terms by script subcategories by language"] = {
	description = "Umbrella categories covering topics related to terms categorized by their script.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Umbrella metacategories",
		{name = "යෙදුම්, අක්ෂරක්‍රමය අනුව", is_label = true, sort = " "},
	},
}



-----------------------------------------------------------------------------
--                                                                         --
--                                 HANDLERS                                --
--                                                                         --
-----------------------------------------------------------------------------


table.insert(handlers, function(data)
	local script = data.label:match("^යෙදුම්, (.+) අක්ෂරක්‍රමය භාවිතා කොට ලියන ලද$")
	-- TODO: පොඩි ප්‍රශ්නයක් තියෙනවා. මේක "නාම පද", "ක්‍රියා පද", "විශේෂණ පද" ඔය ඔක්කොම පද හරි කියලා බාර ගන්නවා නේ.
	-- "භාෂා පද" කියන යෙදුම "term" වෙනුවට දැනට භාවිතා කරමු
	-- "යෙදුම්" වලට මාරු කළා. දැන් බලමු.
	-- ඔන්න දැනට නම් තත්ත්වය හරි ගිහින් තියෙන්නේ.
	if script then
		return {
			description = script .. " අක්ෂරක්‍රමය භාවිතා කොට ලියන ලද {{{langname}}} පද මෙහි දැක්වෙයි.",
			umbrella_parents = "Terms by script subcategories by language",
			parents = {{
				name = "යෙදුම්, අක්ෂරක්‍රමය අනුව",
				sort = script,
			}},
		}
	end
end)


return {LABELS = labels, RAW_CATEGORIES = raw_categories, HANDLERS = handlers}
"https://si.wiktionary.org/w/index.php?title=Module:category_tree/poscatboiler/data/terms_by_script&oldid=36415" වෙතින් සම්ප්‍රවේශනය කෙරිණි