Documentation for this module may be created at Module:Sandbox/Galobtter/Category subset/doc

local p = {}

-- Entry point for Lua callers
function p.test(frame)
	local text = frame:preprocess("{{#categorytree:Countries in Africa|hideroot|namespaces=Main}}")
	return text:sub(1,10)
end

return p