Modul:category tree/topic cat/hierarchy

local export = {}

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

function export.show(frame)
	local data = require("Module:category tree/topic cat/data")["LABELS"]
	local name = "parents"
	local exempt = {
		["senarai set"] = true,
		["senarai topik"] = true,
		["subbahagian politik"] = true,
		["bandar"] = true,
	}
	return require("Module:hierarchy").show(data, name, link, exempt)
end

return export