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

No edit summary
No edit summary
Line 1: Line 1:
local labels = {}
table.insert(handlers, function(data)
local handlers = {}
local suffix, pos = data.label:match("^(%*%S+) (.+)$")
if not suffix then
return nil
end


table.insert(handlers, function(data)
local suffix, pos = data.label:match("(%*[%w-]+) (.+)$")
local linksuffix = require("Module:links").full_link({ term = suffix, lang = data.lang }, "term")
local linksuffix = require("Module:links").full_link({ term = suffix, lang = data.lang }, "term")


Line 17: Line 19:
}
}
end)
end)
return {LABELS = labels, HANDLERS = handlers}