Make Special:Whatlinkshere includable
Closed, ResolvedPublic

Description

Make Special:Whatlinkshere includable.

Maybe add an parameter option to restrict to namespaces, e.g.

{{Special:Whatlinkshere/Foo:Bar|ns=MAIN,PROJECT}} would list all MAIN and PRPJECT pages linking to Foo:Bar.


Version: unspecified
Severity: enhancement

Details

Reference
bz35486
bzimport set Reference to bz35486.
bzimport added a subscriber: Unknown Object (MLST).
Subfader created this task.Mar 26 2012, 1:55 PM

{{Special:Whatlinkshere/Foo:Bar|ns=MAIN,PROJECT}} would list all MAIN and
PRPJECT pages linking to Foo:Bar.

Note, the template options syntax is already used for url parameters. So anyone trying to implement this should note that that part is essentially already done.

Change 105991 had a related patch set uploaded by AalekhN:
A possible Solution to Bug 35486

https://gerrit.wikimedia.org/r/105991

Change 105991 abandoned by AalekhN:
A possible Solution to Bug 35486

https://gerrit.wikimedia.org/r/105991

Change 106625 had a related patch set uploaded by MZMcBride:
SpecialWhatlinkshere.php : made Special:Whatlinkshere transclude

https://gerrit.wikimedia.org/r/106625

Change 106625 merged by jenkins-bot:
Make Special:Whatlinkshere.php transcludable

https://gerrit.wikimedia.org/r/106625

Scott added a comment.Mar 30 2014, 2:08 AM

Question - does this implementation include a namespace parameter as suggested above? If so I can probably close my own bug 62988 as being unnecessary.

Yes, like all special pages, any url parameter can be passed like a template parameter. E.g.

{{Special:whatlinkshere/some page|namespace=6}} would show images pages that link to some page.

Scott added a comment.Mar 30 2014, 3:10 AM

Great, thanks. In which case I can replace the {{what links here}} template on en.wp with this when it goes live. I'll WONTFIX my bug.

Great. Works as desired, altho only 1 ns can be selected?

https://www.mediawiki.org/wiki/User:Subfader/Whatlinkshere

(In reply to Subfader from comment #9)

Great. Works as desired, altho only 1 ns can be selected?

https://www.mediawiki.org/wiki/User:Subfader/Whatlinkshere

The 'namespace' parameter must be a single integer just like on the normal page https://www.mediawiki.org/wiki/Special:WhatLinksHere/User:Subfader/Whatlinkshere it shows a single choice select for the namespace.

To add the capability to select several namespaces, you probably want to open an other bug report :]

Ah right, it's just the SpecialPage functionality.

Thanks, happy for now!

Add Comment