Ahh ... it's a whole new meaning of transclusion ... I am tempted to say "well, just work with the original wikitext and don’t resolve the templates" but I guess the problem here is that all templates aren't equal. Links in an infobox are much more likely to be relevant to *this* article than links in a navbox are and who knows about arbitrary templates more generally. I saw a stat in passing the other day that said around 50% of Wikipedia article have navboxes and I confess to having added a few navboxes even in the past few days. As a reader I like them, but they are a pain for anyone using "What links here".
Indeed, just using insource:"Chapel Hill, Queensland" * without* the square brackets does a jolly fine job of identifying the articles that mention the article [[Chapel Hill, Queensland]] or just the topic and provides a snippet (not a great one but it does gives some context to the link) It works because it sees the links that are used as parameters in the infobox (whether or not they are wrapped in square brackets) but can't see the ones embedded in the definition of the navboxes. Plus you get mentions as well as links. Sweet! If one could have a filter that eliminated the "mutually linking" articles (X links to Y and Y links to X) it would be close to nailing it! Of course it works better for longer article titles unlikely to occur in other circumstances. I wouldn't bother to try it for [[Food]] but then I am looking to a tool to populate stubs which probably eliminates "common name" articles. Kerry -----Original Message----- From: Nick Wilson (Quiddity) [mailto:[email protected]] Sent: Wednesday, 14 June 2017 3:34 PM To: Kerry Raymond <[email protected]>; Research into Wikimedia content and communities <[email protected]> Cc: Nicholas Moreau <[email protected]> Subject: Re: [Wiki-research-l] Finding what is said about a topic in other articles On Tue, Jun 13, 2017 at 6:08 PM, Kerry Raymond <[email protected]> wrote: > Indeed, the “Notable residents” section is one that would definitely benefit > from this tool. Is it just me or is there something actually broken with > “What links here?”. I try to suppress the transclusions (usually coming from > navboxes) but they are still displayed no matter whether I say to “Show/Hide > Transclusions” but a search of the article reveals there is no other link > present. > > That existing feature works by hiding/showing where *the page itself* is transcluded *into*. E.g. https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:WikiFauna vs https://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:WikiFauna&hidetrans=1 Making it work differently for incoming links that are coming from a template, is a long-standing (and complicated to implement) feature-request: https://phabricator.wikimedia.org/T14396 However, I see this comment by Izno suggests a partial (manual) workaround, using an "insource:/\[\[FOO/" search. https://phabricator.wikimedia.org/T14396#3246134 e.g. https://en.wikipedia.org/w/index.php?title=Special:Search&profile=all&search=insource%3A%2F\[\[Wikipedia%3AWikiGremlin%2F&fulltext=1 versus https://en.wikipedia.org/wiki/Special:WhatLinksHere/Wikipedia:WikiGremlin (I'm not sure why Izno's example also includes the "linksto:FOO" string, but it appears to be redundant) -- Quiddity _______________________________________________ Wiki-research-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wiki-research-l
