Module:category tree: Difference between revisions

allow etym langs as specified lang for categories like Category:Hazaragi reference templates
No edit summary
Line 417: Line 417:


local function generate_output(current)
local function generate_output(current)
if current then
for _, functionName in pairs{
"getBreadcrumbName",
"getDataModule",
"canBeEmpty",
"getDescription",
"getParents",
"getChildren",
"getUmbrella",
"getAppendix",
"getTOCTemplateName",
} do
if not is_callable(current[functionName]) then
require("Module:debug").track{"category tree/missing function", "category tree/missing function/" .. functionName}
end
end
end


local boxes, display, categories = {}, {}, {}
local boxes, display, categories = {}, {}, {}
Line 616: Line 599:
if submodule then
if submodule then
info.also = deep_copy(args.also)
info.also = deep_copy(args.also)
require("Module:debug").track("auto cat/" .. submodule)
-- `failed` is true if no match was found.
-- `failed` is true if no match was found.
submodule = require(category_tree_submodule_prefix .. submodule)
submodule = require(category_tree_submodule_prefix .. submodule)