Page MenuHomePhabricator

When pages contain "Next" and "Previous" links, "What links here" lists a page three times instead of once
Closed, DeclinedPublic

Description

Browse a Hebrew word description, click "What links here". Then you will see (among other links) the list of Hebrew Bible verses containing this link. But these links appear three times instead of one, because on each verses' page we have also the previous and the next verse, three verses instead of one.

Proposal: Implement <nolinks> tag which will exclude links inside it from being considered by "What links here", similarly to <noinlcude> tag removes a part of the page when it is included in another page.

Event Timeline

I'm not sure I understand the problem that's being described, but in general, if you don't want MediaWiki to consider your links as internal links, just don't use internal links.

In Wikipedia templates people usually do something like <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}}} link text]</span>. In an extension, you can usually just output HTML directly.

Aklapper renamed this task from Add <nolinks> tag to When pages contain "Next" and "Previous" links, "What links here" lists a page three times instead of once.Jan 27 2017, 8:45 PM

Hmm, how is this a developer wish? Sounds more like an end user wish? :)

Huji subscribed.

This is not a MediaWiki bug. Tgr's solution perfectly solves the issue; the issue is caused by suboptimal design of a template on that particular wiki.