Board Thread:Support Requests - Getting Technical/@comment-27075564-20180317192945

So, I've only got very basic skills using if statements but from past help was able to create this. What I want to do is basically use that as a base template to build quicker templates off of it, instead of having to copy and paste a lot of code into each tab template I create. However, as you can see on that template, it's going to create unnecessary red links and so forth for subsequent tab templates using it. Is there a better way to write the code to prevent that? I tried to change "BASEPAGENAME" to an input so one could just put the actual page name for whichever page it'll go on but I think I worded it wrong because it was throwing errors at me. 