Module:category tree/topic cat/hierarchy

From Wiktionary, the free dictionary
Jump to navigation Jump to search
local export = {}

local function link(name)
	return "[[:Category:" .. mw.language.new("en"):ucfirst(name) .. "|" .. name .. "]]"
end

function export.show(frame)
	local data = require("Module:category tree/topic cat/data")["LABELS"]
	local name = "parents"
	local exempt = {
		["list of sets"] = true,
		["list of topics"] = true,
		["political subdivisions"] = true,
		["cities"] = true,
	}
	return require("Module:hierarchy").show(data, name, link, exempt)
end

return export