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

Hi! This is the template which I am working on: 

It creates some tabs and stuff. The important part, however, is the top.

This template doesn’t use any parameters, except when it comes to title changing.

Currently, here’s what it does: Using  (no parameters) will create some tabs, and, if the page it’s being used on is a page with the subpage Re-imagined, it will add the   template to the mix.

However, I want to change this a bit. I want it to do this: Using  (with no parameters) will function as it does now; it creates tabs, and if the page has the subpage Re-imagined, it adds. Using  will also add the   template. This is used if the page should have the  template but does not have the subpage Re-imagined. If the parameter is not yes but rather anything else, it will change the title of the page to that parameter.

I tried adding, but that didn’t work. I’d have to use an empty parameter, which is not ideal.

Sorry if this is confusing. I’ll try to sum what I want up:
 * — Creates tabs like it normally should. If the page has the subpage Re-imagined, it will add.
 * — Creates tabs like it normally should and adds the  template, no matter if the page has the subpage Re-imagined or not.
 * — Creates tabs like it normally should. Instead of using the  template, it does not use that template and instead uses  . In this case, it would change the title to “Foobar.” If the parameter is “yes,” it adds  . If the parameter is anything other than “yes,” it changes the title to the text in the parameter.

I would really appreciate some help! I could figure out a solution myself, but I’m not too experienced when it comes to advanced template functions like this.  