Module:category tree/affixes and compounds: Difference between revisions
m Changed protection settings for "Module:category tree/affixes and compounds": Highly visible template/module ([Edit=Allow only autopatrollers] (indefinite) [Move=Allow only autopatrollers] (indefinite)) |
m →top: clean up |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 23: | Line 23: | ||
labels["bahuvrihi compounds"] = { | labels["bahuvrihi compounds"] = { | ||
description = "{{{langname}}} compounds in which the first part (A) modifies the second (B), and whose meaning follows a [[metonymic]] pattern: “<person> having a B that is A.”", | description = "{{{langname}}} compounds in which the first part (A) modifies the second (B), and whose meaning follows a [[wikt:metonymic|metonymic]] pattern: “<person> having a B that is A.”", | ||
parents = {"compound terms", "exocentric compounds"}, | parents = {"compound terms", "exocentric compounds"}, | ||
} | } | ||
| Line 43: | Line 43: | ||
"pronouns", | "pronouns", | ||
"proper nouns", | "proper nouns", | ||
"roots", | |||
"suffixes", | "suffixes", | ||
"verbs", | "verbs", | ||
| Line 71: | Line 72: | ||
labels["dvigu compounds"] = { | labels["dvigu compounds"] = { | ||
description = "{{{langname}}} [[tatpuruṣa]] compounds where the modifying member is a number", | description = "{{{langname}}} [[wikt:tatpuruṣa|tatpuruṣa]] compounds where the modifying member is a number", | ||
parents = {"tatpurusa compounds"}, | parents = {"tatpurusa compounds"}, | ||
} | } | ||
| Line 126: | Line 127: | ||
labels["shitgibbons"] = { | labels["shitgibbons"] = { | ||
description = "{{{langname}}} terms that consist of a single-syllable [[expletive]] followed by a two-syllable [[trochee]] that serves as a [[nominalizer]] or [[intensifier]].", | description = "{{{langname}}} terms that consist of a single-syllable [[wikt:expletive|expletive]] followed by a two-syllable [[wikt:trochee|trochee]] that serves as a [[wikt:nominalizer|nominalizer]] or [[wikt:intensifier|intensifier]].", | ||
parents = {"endocentric compounds"}, | parents = {"endocentric compounds"}, | ||
} | } | ||
| Line 162: | Line 163: | ||
labels["vrddhi gerundives"] = { | labels["vrddhi gerundives"] = { | ||
description = "{{{langname}}} [[gerundive]]s derived from a Proto-Indo-European root by the process of [[w:vṛddhi|vṛddhi]] derivation.", | description = "{{{langname}}} [[wikt:gerundive|gerundive]]s derived from a Proto-Indo-European root by the process of [[w:vṛddhi|vṛddhi]] derivation.", | ||
parents = {"vrddhi derivatives"}, | parents = {"vrddhi derivatives"}, | ||
} | } | ||
| Line 262: | Line 263: | ||
local _, display_term, lookup_term = m_affix.make_affix(term, data.lang, sc, affixtype, nil, true) | local _, display_term, lookup_term = m_affix.make_affix(term, data.lang, sc, affixtype, nil, true) | ||
local _, display_alt = m_affix.make_affix(args.alt, data.lang, sc, affixtype) | local _, display_alt = m_affix.make_affix(args.alt, data.lang, sc, affixtype) | ||
local _, display_tr = m_affix.make_affix(args.tr, data.lang, | |||
local _, display_ts = m_affix.make_affix(args.ts, data.lang, | local latn = require("Module:scripts").getByCode("Latn") | ||
local _, display_tr = m_affix.make_affix(args.tr, data.lang, latn, affixtype) | |||
local _, display_ts = m_affix.make_affix(args.ts, data.lang, latn, affixtype) | |||
local m_script_utilities = require("Module:script utilities") | local m_script_utilities = require("Module:script utilities") | ||
local id_text = id and " (" .. id .. ")" or "" | local id_text = id and " (" .. id .. ")" or "" | ||
| Line 360: | Line 363: | ||
end | end | ||
end | end | ||
local displaytitle = "{{{langname}}} " .. labelpref .. m_script_utilities.tag_text(args.alt or display_alt or display_term, data.lang, sc, "term") .. id_text | |||
local pagename = "{{{langname}}} " .. labelpref .. m_script_utilities.tag_text(display_term, data.lang, latn, "term") .. id_text | |||
if displaytitle ~= pagename then | |||
displaytitle = pagename | |||
end | |||
return { | return { | ||
description = "{{{langname}}} " .. pos .. " " .. desc[affixtype] .. " " .. require("Module:links").full_link({ | description = "{{{langname}}} " .. pos .. " " .. desc[affixtype] .. " " .. require("Module:links").full_link({ | ||
lang = data.lang, term = display_term, alt = display_alt, sc = sc, id = id, tr = display_tr, ts = display_ts}, "term") .. ".", | lang = data.lang, term = display_term, alt = args.alt or display_alt, sc = sc, id = id, tr = args.tr or display_tr, ts = args.ts or display_ts}, "term") .. ".", | ||
additional = additional, | additional = additional, | ||
breadcrumb = pos == "terms" and m_script_utilities.tag_text(display_alt or display_term, data.lang, sc, "term") .. id_text or pos, | breadcrumb = pos == "terms" and m_script_utilities.tag_text(args.alt or display_alt or display_term, data.lang, sc, "term") .. id_text or pos, | ||
displaytitle = | displaytitle = displaytitle, | ||
parents = parents, | parents = parents, | ||
umbrella = false, | umbrella = false, | ||