Pergi ke kandungan

Modul:Categories

Daripada Wikisumber
--[=[
  Simplify the addition of maintenance and tracking categories in modules.
]=]

local p = {} -- export table

--[=[
Function docs
]=]
function p:addCat(cat)
	table.insert(self, cat)
end

function p:getCats()
	local s = ""
	for _, v in ipairs(self) do
		s = s .. "[[Category:" .. v .. "]]"
	end
	return s
end

return p