Board Thread:Support Requests - Designing Your Wiki/@comment-5218827-20190901075339

So recently I made a template on the Top Gear wiki which deals with pages that contain information exclusive to The Grand Tour, a show which is not officially affiliated to Top Gear or the BBC in any way. What it says is that the page exists simply for contextual reasons, and that a longer, more detailed article is available on the Grand Tour wiki.

What I want to know is if a certain string is detected at the end of a page name (i.e. TGT), it is removed when linking to its corresponding article. So for example, I have The Eboladrome (TGT), which at the moment links to an identically named page which of course, doesn't exist, since it doesn't have the "(TGT)" suffix applied. Granted I could create redirects on The Grand Tour wiki or rename the pages so that they match, but surely there has to be a way for this to work with just pure string manipulation, that detects if a "(TGT)" string is present and removes it. 