Board Thread:Support Requests - Getting Technical/@comment-1487274-20170313184054

Hello. I want to create a template for subpages, that checks if basepage is in some  specific category or not (for example if it in Category:Characters or  Category:Locations ) and then add subpage to corresponding category (for example  Category:Character Appearances or  Category:Location  Appearances ). So I  need a function, that checks if page is in the specific category or not. Is there are any function like that? All I can think right now is using DPL to create list of all pages in  specific category and then to use function #pos to check if page's name is in this list. But it seems to be too  complicated, moreover #pos function seems to be restricted in string size, so it wouldn't work with big categories. 