9,526 Pages

Forum: The Situation Room > Navigation templates and whatlinkshere

The navigation templates look cool, but as has been said elsewhere completely ruin the whatlinkshere tool on any page they're employed on, just listing every other page in the same category. After enquiring on community central, it seems that mediawiki can't distinguish at all between links that are contained within transcluded templates and normal ones on the page. So, I'm proposing the only solution I can see - set up redirects on all pages that are linked in the templates, eg. [[Jack Bauer templatelink]] and, within the templates only, use these redirects. This would separate out the non-links in the template from actual links. I am prepared to do this work if no-one has objections, and as it would only be used on those templates wouldn't affect general editing practices to maintain it.--Acer4666 (talk) 22:23, June 10, 2013 (UTC)

That is perfect, you are a genius. That problem has always bugged me, and I know I complained about it before, but was never clever enough to imagine a solution like that. I wish I could have thought of it! If you need help or want to divide up the labor just let me know how I can help. Blue Rook  talk  contribs 06:19, June 11, 2013 (UTC)
Well, using redirects would partly defeat the purpose, because the current page is bolded within the template when you're viewing it on that page. I.e., on the page for David Palmer you would scroll down to the template and see his name bolded on the template, showing where he fit in the chronology. It's annoying, but there doesn't seem to be an official workaround yet (from [1]). There is the "Hide transclusions" filter on What Links Here, but it appears to do absolutely nothing. --Pyramidhead (talk) 05:00, June 12, 2013 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.