模組:Category tree/topic cat/hierarchy

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 = {
		["集合列表"] = true,
		["主題列表"] = true,
		["政治選區"] = true,
		["城市"] = true,
	}
	return require("Module:hierarchy").show(data, name, link, exempt)
end

return export