Last modified: 2014-11-17 20:21:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37486, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35486 - Make Special:Whatlinkshere includable
Make Special:Whatlinkshere includable
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: 1.23.0 release
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-26 13:55 UTC by Subfader
Modified: 2014-11-17 20:21 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Subfader 2012-03-26 13:55:30 UTC
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.
Comment 1 Bawolff (Brian Wolff) 2013-07-05 17:59:53 UTC
> {{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.
Comment 2 Gerrit Notification Bot 2014-01-07 19:50:08 UTC
Change 105991 had a related patch set uploaded by AalekhN:
A possible Solution to Bug 35486

https://gerrit.wikimedia.org/r/105991
Comment 3 Gerrit Notification Bot 2014-01-09 21:39:26 UTC
Change 105991 abandoned by AalekhN:
A possible Solution to Bug 35486

https://gerrit.wikimedia.org/r/105991
Comment 4 Gerrit Notification Bot 2014-01-12 08:03:02 UTC
Change 106625 had a related patch set uploaded by MZMcBride:
SpecialWhatlinkshere.php : made Special:Whatlinkshere transclude

https://gerrit.wikimedia.org/r/106625
Comment 5 Gerrit Notification Bot 2014-03-21 02:49:44 UTC
Change 106625 merged by jenkins-bot:
Make Special:Whatlinkshere.php transcludable

https://gerrit.wikimedia.org/r/106625
Comment 6 Scott Martin (http://enwp.org/user:scott) 2014-03-30 02:08:42 UTC
Question - does this implementation include a namespace parameter as suggested above? If so I can probably close my own bug 62988 as being unnecessary.
Comment 7 Bawolff (Brian Wolff) 2014-03-30 03:00:06 UTC
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.
Comment 8 Scott Martin (http://enwp.org/user:scott) 2014-03-30 03:10:03 UTC
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.
Comment 9 Subfader 2014-11-17 19:22:35 UTC
Great. Works as desired, altho only 1 ns can be selected?

https://www.mediawiki.org/wiki/User:Subfader/Whatlinkshere
Comment 10 Antoine "hashar" Musso (WMF) 2014-11-17 19:54:53 UTC
(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 :]
Comment 11 Subfader 2014-11-17 20:21:50 UTC
Ah right, it's just the SpecialPage functionality.

Thanks, happy for now!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links