Board Thread:Support Requests - Getting Technical/@comment-33878615-20160704182309

I want a template on a wiki to add another template but only if the page has a specific subpage.

For example, if I use the template on a page called Foo, it doesn’t do anything other than what the template does by itself. If I use the template on a page called Foo/Sub, however, it adds another template.

I don’t know if it’s possible for an #if parser function to check whether or not the page the template is used on includes a subpage or not, and if it does, it does something else. It’s probably not, though. 