Module:category tree/grammatical classes: Difference between revisions

m Changed protection settings for "Module:category tree/grammatical classes": Highly visible template/module ([Edit=Allow only autopatrollers] (indefinite) [Move=Allow only autopatrollers] (indefinite))
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 187: Line 187:
"suffixes",
"suffixes",
"verbs",
"verbs",
"prepositions",
}
}


Line 278: Line 279:
breadcrumb = "definite",
breadcrumb = "definite",
parents = {pos .. " by inflection type"},
parents = {pos .. " by inflection type"},
}
end
for _, pos in ipairs { "nouns", "proper nouns", "pronouns" } do
labels[pos .. " with irregular incorporating forms"] = {
description = "{{{langname}}} " .. pos .. " whose incorporating form is formed irregularly.",
breadcrumb = "with irregular incorporating forms",
parents = {{name = "irregular " .. pos, sort = "irregular incorporating forms"}},
}
}
end
end
Line 385: Line 394:


table.insert(handlers, function(data)
table.insert(handlers, function(data)
local pos, classifier = data.label:match("^(nouns) classified by (.+)$")
local labelpref, pos, classifier = data.label:match("^((nouns) classified by )(.+)$")
if pos then
if pos then
local linktext
local linktext
Line 400: Line 409:
return {
return {
description = "{{{langname}}} " .. pos .. " using " .. linktext .. " as their classifier.",
description = "{{{langname}}} " .. pos .. " using " .. linktext .. " as their classifier.",
breadcrumb = classifier,
breadcrumb = require("Module:script utilities").tag_text(classifier, data.lang, data.sc, "term"),
umbrella = false,
umbrella = false,
parents = {{
parents = {{
Line 406: Line 415:
sort = (data.lang:makeSortKey(classifier)),
sort = (data.lang:makeSortKey(classifier)),
}},
}},
displaytitle = "{{{langname}}} " .. labelpref .. require("Module:script utilities").tag_text(classifier, data.lang, data.sc, "term"),
}
}
end
end