Module:A

From Patch demo (919459,5)

Documentation for this module may be created at Module:A/doc

local p = {}

p.getCategories = function(frame)
	return mw.title.new(frame.args.pageName).categories[1] or nil
end

return p