Module:category tree/lang/wasc: Difference between revisions
No edit summary |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local labels = {} | local labels = {} | ||
local handlers = {} | |||
table.insert(handlers, function(data) | table.insert(handlers, function(data) | ||
local suffix, pos = data.label:match("^(%*%S+) (.+)$") | 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") | local linksuffix = require("Module:links").full_link({ term = suffix, lang = data.lang }, "term") | ||
| Line 17: | Line 23: | ||
end) | end) | ||
return {LABELS = labels} | return {LABELS = labels, HANDLERS = handlers} | ||