Hi everyone,
i'm trying to use a parserfunction from Extension:CategoryTests for my Autocreatecategorypages-stub template and it's not working in auto created pages, but it does work if i insert the template manually.
The idea is that i have a template which adds a specific category to newly created pages. When these categories are created, i want to check if the creating page (page name == category name in this specific case) is inside another specific category and, if so, add a specific parent category to the created category page:
This is the category {{{page}}}.
<includeonly>{{#switchcategory:#page={{{page}}}|Cat1=[[Category:ParentCat1]]|Cat2=[[Category:ParentCat2]]|Cat3=[[Category:ParentCat3]]}}</includeonly>
The text part is working as expected, but the categories are not. Are the tags a problem? Do i have to escape the category names inside of the function somehow?
Thank you all in advance!