Page MenuHomePhabricator

Filter for links from template transclusions on Special:WhatLinksHere does not work
Closed, InvalidPublic

Description

As in title: The transclusion filter on Special:WhatLinksHere has no effect. Links (from template transclusions) are always shown, regardless of the transclusion filter setting.

This filter does not work for quite some time meanwhile, I cannot remember when it broke. I am surprised that there is no phab task yet.

Event Timeline

MisterSynergy raised the priority of this task from to Needs Triage.
MisterSynergy updated the task description. (Show Details)
MisterSynergy subscribed.

It does work for me. Can you link to examples?

Do those pages actually have any transclusions?

Well, there are templates with several links in both of these articles. For a long time, the filter was able to hide these links on Special:WhatLinksHere, but for some reason this has changed.

Could you provide an example where the filter works for you? I’d try to find out what happens here…

Well, there are templates with several links in both of these articles.

Can you provide a definite example? That'd make it easier to find the issue.

Could you provide an example where the filter works for you? I’d try to find out what happens here…

https://meta.wikimedia.org/w/index.php?title=Special:WhatLinksHere/User:Glaisher&namespace=2&from=5332617&back=0
https://meta.wikimedia.org/w/index.php?title=Special:WhatLinksHere/User:Glaisher&namespace=2&from=5332617&hidetrans=1
User:Glaisher/sandbox is hidden when hidetrans=1.

Your example on meta works here as well, I can hide User:Glaisher/sandbox with the filter. Interestingly, User:Glaisher/sandbox is marked as “(transclusion)” when not hidden.

Now back to one of my examples, and let’s focus on the first one from enwiki. The article [[:en:Racing shell]] transcludes templates [[:en:Template:fineboats]] and [[:en:Template:Rowing (sport)]] right in the end as navigation templates. The latter one of the templates includes many links, for instance to [[:en:Dad Vail Regatta]] among many others. This link is not found in the article [[:en:Racing shell]] apart from its transclusion in the navigation template.

So, although [[:en:Dad Vail Regatta]] only appears in a template on [[:en:Racing shell]], the link on [[:en:Special:WhatLinksHere/Racing shell]] is not marked as “(transclusion)”, and it cannot be hidden by the transclusion filter.

Glaisher claimed this task.

hidetrans doesn't hide results with direct links (even if it's on a template), it only hides templates transcluding that page. Feel free to reopen if you think there's a misunderstanding.

Well, then it’s probably indeed a misunderstanding.

However, I am still surprised. Has this functionality been changed in the past (three years)? Can I look it up somewhere? IIRC it worked in the way I outlined above, and I used it regularly.

I don't think the way this work's queries are done has changed recently but you can view the list of changes here. https://github.com/wikimedia/mediawiki/commits/master/includes/specials/SpecialWhatlinkshere.php