Module:Sandbox/Galobtter/Category subset

Revision as of 10:44, 28 April 2018 by imported>Galobtter (noo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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