Module:category tree: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "local export = {} local m_utilities = require("Module:utilities") local inFundamental = mw.loadData("Module:category tree/data") local show_error, check_name, link_box, show...")
 
No edit summary
 
Line 67: Line 67:
"getAppendix",
"getAppendix",
}
}
if current then
for i, functionName in pairs(functions) do
if type(current[functionName]) ~= "function" then
require("Module:debug").track{ "category tree/missing function", "category tree/missing function/" .. functionName }
end
end
end


local boxes = {}
local boxes = {}
Line 205: Line 197:
for _, parent in ipairs(parents) do
for _, parent in ipairs(parents) do
if type(parent.name) == "string" then
if type(parent.name) == "string" then
if not (current._lang and current:getCategoryName() == capitalize(current._lang:getCategoryName())) and not (current._sc and current:getCategoryName():find(capitalize(current._sc:getCategoryName()), nil, true)) and current:getInfo().code then
require("Module:debug").track("category tree/string")
end
table.insert(categories, "[[" .. parent.name .. "|" .. parent.sort .. "]]")
table.insert(categories, "[[" .. parent.name .. "|" .. parent.sort .. "]]")

Navigation menu