Module:category tree/lang/wasc: Difference between revisions

Created page with "local labels = {} return {LABELS = labels}"
 
Undo revision 520949 by Sware (talk)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
local labels = {}
local labels = {}
local handlers = {}


return {LABELS = labels}
table.insert(handlers, function(data)
local suffix, pos = data.label:match("^(%*%S+) (.+)$")
if not suffix then
return nil
end
 
local linksuffix = require("Module:links").full_link({ term = suffix, lang = data.lang }, "term")
 
return {
description = "{{{langname}}} " .. pos .. " derived with " .. linksuffix,
breadcrumb = require("Module:script utilities").tag_text(suffix, data.lang, data.sc, "term"),
umbrella = false,
parents = {{
name = pos,
sort = (data.lang:makeSortKey(suffix)),
}},
displaytitle = "{{{langname}}} " .. require("Module:script utilities").tag_text(suffix, data.lang, data.sc, "term") .. " " .. pos,
}
end)
 
return {LABELS = labels, HANDLERS = handlers}