Module:category tree/fam/zhx: Difference between revisions
Jump to navigation
Jump to search
m 1 revision imported |
m →top: clean up |
||
| Line 11: | Line 11: | ||
labels["chengyu"] = { | labels["chengyu"] = { | ||
topright = "{{wp|Chengyu}}", | topright = "{{wp|Chengyu}}", | ||
description = "{{{langname}}} traditional idiomatic expressions, usually consisting of four [[hanzi]]; typically derived from [[Classical Chinese]].", | description = "{{{langname}}} traditional idiomatic expressions, usually consisting of four [[wikt:hanzi|hanzi]]; typically derived from [[wikt:Classical Chinese|Classical Chinese]].", | ||
additional = "Compare Japanese {{w|yojijukugo}} and Korean {{w|sajaseong-eo}}.", | additional = "Compare Japanese {{w|yojijukugo}} and Korean {{w|sajaseong-eo}}.", | ||
parents = "idioms", | parents = "idioms", | ||
| Line 46: | Line 46: | ||
displaytitle = book and "{{{langname}}} chengyu derived from " .. italicized or nil, | displaytitle = book and "{{{langname}}} chengyu derived from " .. italicized or nil, | ||
parents = {{name = "chengyu", sort = sort_key}, "terms derived from " .. source}, | parents = {{name = "chengyu", sort = sort_key}, "terms derived from " .. source}, | ||
description = "{{{langname}}} [[chengyu]] derived from " .. italicized .. ".", | description = "{{{langname}}} [[wikt:chengyu|chengyu]] derived from " .. italicized .. ".", | ||
breadcrumb = "derived from " .. italicized, | breadcrumb = "derived from " .. italicized, | ||
} | } | ||
Latest revision as of 21:20, 22 May 2026
- The following documentation is generated by Template:category tree data submodule documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
This data submodule defines part of Wiktionary's category structure.
For an introduction to the category tree system and a description of how to add or modify categories, see Module:category tree/documentation.
local labels = {}
local handlers = {}
labels["hanzi"] = {
topright = "{{wp|Chinese characters}}",
description = "{{{langname}}} symbols of the Han logographic script, which can represent sounds or convey meanings directly.",
umbrella = "Han characters",
parents = "logograms",
}
labels["chengyu"] = {
topright = "{{wp|Chengyu}}",
description = "{{{langname}}} traditional idiomatic expressions, usually consisting of four [[wikt:hanzi|hanzi]]; typically derived from [[wikt:Classical Chinese|Classical Chinese]].",
additional = "Compare Japanese {{w|yojijukugo}} and Korean {{w|sajaseong-eo}}.",
parents = "idioms",
}
labels["terms with uncreated forms"] = {
description = "{{{langname}}} terms that use a hanzi box template (such as {{temp|zh-forms}}) with a form not having a page of its own, or a {{temp|zh-see}} template linking to a page without a Chinese section or a nonexistent page",
additional = "If the redlink in the hanzi box is a variant or simplified form, the page may be created with {{temp|subst:zh-new}}.",
parents = {"redlinks", "entry maintenance"},
}
for _, source in ipairs {
"Mencius",
"the Analects",
"the Book of Documents",
"the Book of Rites",
"the Classic of Poetry",
"the Han Feizi",
"the I Ching",
"the Zhuangzi",
"the Zuo Zhuan",
} do
local book = source:match("^the (.*)$")
local sort_key = book or source
local italicized = book and "the ''" .. book .. "''" or source
labels["terms derived from " .. source] = {
displaytitle = book and "{{{langname}}} terms derived from " .. italicized or nil,
parents = {{name = "terms attributed to a specific source", sort = sort_key}},
description = "{{{langname}}} terms derived from " .. italicized .. ".",
breadcrumb = italicized,
}
labels["chengyu derived from " .. source] = {
displaytitle = book and "{{{langname}}} chengyu derived from " .. italicized or nil,
parents = {{name = "chengyu", sort = sort_key}, "terms derived from " .. source},
description = "{{{langname}}} [[wikt:chengyu|chengyu]] derived from " .. italicized .. ".",
breadcrumb = "derived from " .. italicized,
}
end
return {LABELS = labels, HANDLERS = handlers}