Thread:Project:Support desk/find category of current page

How would I find the category of a current page? Or check if a page is in a certain category?