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
[email protected]
https://wikimediafoundation.org/wiki/User:MHolmquist

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to