On 2013-08-26 8:55 AM, "Mark Holmquist" <mtraceur(a)member.fsf.org> wrote:
On Mon, Aug 26, 2013 at 10:07:16AM +0200, Ole Palnatoke Andersen wrote:
> I'd love to see a similar thing for articles linking to the same book
via
ISBN.
You can do that in the JavaScript just by adding to the selector at the
beginning, and you can also get other magic links at the same time.
jQuery( "a.external, a.mw-magiclink-isbn, a.mw-magiclink-pmid,
a.mw-magiclink-rfc" ).after( function() {
return jQuery( "<a>" )
.text( '⎆' )
// Shorter, relative link (could also use mw.Title here maybe)
.attr( "href", "/wiki/Special:Linksearch/" + this.href )
.before( " " );
} );
But it looks like Special:Linksearch doesn't support searching for magic
links, at least not yet. So I'm afraid this is all for nought.
I'm going to hope that CirrusSearch will fix this in some capacity, since
it looks pretty simple to fix, and if Chad would like some help with that,
he knows where to find me...
--
Mark Holmquist
Software Engineer, Multimedia
Wikimedia Foundation
mtraceur(a)member.fsf.org
https://wikimediafoundation.org/wiki/User:MHolmquist
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
For reference that's
https://bugzilla.wikimedia.org/show_bug.cgi?id=49537
Arguably they aren't really external links and shouldn't be tracked with
them, otoh a table just for magic links seem overkill.
-bawolff