模組:category tree/poscatboiler/data/words by number of syllables

來自維基辭典

呢個模組嘅解說可以喺模組:category tree/poscatboiler/data/words by number of syllables/doc度開

local labels = {}

labels["按音節數排序嘅字詞"] = {
	description = "{{{langname}}} words categorized by number of syllables.",
	fundamental = "Terms by lexical property subcategories by language",
	parents = {"按音位屬性嘅辭條"},
}

labels["十?[單雙一二三四五六七八九]*音節字"] = {
	regex = true,
	description = function(name)
		local number = mw.ustring.match(name, "(十?[單雙一二三四五六七八九]*)音節字")
		return "有" .. number .. "個音節嘅{{{langname}}}字詞。"
	end,
	fundamental = "Words by number of syllables subcategories by language",
	parents = {{
		name = "按音節數排序嘅字詞"--[[,
		sort = function(name)
			local number = mw.ustring.match(name, "([1-9][0-9]*)%-syllable words")
			return ("#%02d"):format(number)
		end
--]]
	}},
}

return labels