By putting the following code (written by User:EnDumEn) in user:YOURNAME/common.jsany external link gets an extra little symbol (⎆), which leads to a link search for that link. This is very useful for finding other articles that cite the same source.
jQuery( "a.external" ).after( function() { return jQuery( "<a>⎆</a>)" ) .attr( "href", "//sv.wikipedia.org/wiki/Special:Linksearch/" + this.href ) .before( " " ); });
Hoi, With sources stored in Wikidata finding where the same source is used as well is implicit. This is a hack, admittedly a nice hack/. Thanks, GerardM
On 26 August 2013 09:27, Lars Aronsson lars@aronsson.se wrote:
By putting the following code (written by User:EnDumEn) in user:YOURNAME/common.jsany external link gets an extra little symbol (⎆), which leads to a link search for that link. This is very useful for finding other articles that cite the same source.
jQuery( "a.external" ).after( function() { return jQuery( "<a>⎆</a>)" ) .attr( "href", "//sv.wikipedia.org/wiki/**Special:Linksearch/http://sv.wikipedia.org/wiki/Special:Linksearch/"
- this.href )
.before( " " ); });
-- Lars Aronsson (lars@aronsson.se) Aronsson Datateknik - http://aronsson.se
______________________________**_________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l
I'd love to see a similar thing for articles linking to the same book via ISBN.
regards, Ole
On Mon, Aug 26, 2013 at 9:46 AM, Gerard Meijssen gerard.meijssen@gmail.comwrote:
Hoi, With sources stored in Wikidata finding where the same source is used as well is implicit. This is a hack, admittedly a nice hack/. Thanks, GerardM
On 26 August 2013 09:27, Lars Aronsson lars@aronsson.se wrote:
By putting the following code (written by User:EnDumEn) in user:YOURNAME/common.jsany external link gets an extra little symbol (⎆), which leads to a link search for that link. This is very useful for finding other articles that cite the same source.
jQuery( "a.external" ).after( function() { return jQuery( "<a>⎆</a>)" ) .attr( "href", "//sv.wikipedia.org/wiki/**Special:Linksearch/<
http://sv.wikipedia.org/wiki/Special:Linksearch/%3E"
- this.href )
.before( " " ); });
-- Lars Aronsson (lars@aronsson.se) Aronsson Datateknik - http://aronsson.se
______________________________**_________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-l<
https://lists.wikimedia.org/mailman/listinfo/wikitech-l%3E _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hoi, <grin> the same book or also the same book in translation? </grin> Can be theoretically be linked in Wikidata too. Thanks, GerardM
On 26 August 2013 10:07, Ole Palnatoke Andersen ole@palnatoke.org wrote:
I'd love to see a similar thing for articles linking to the same book via ISBN.
regards, Ole
On Mon, Aug 26, 2013 at 9:46 AM, Gerard Meijssen gerard.meijssen@gmail.comwrote:
Hoi, With sources stored in Wikidata finding where the same source is used as well is implicit. This is a hack, admittedly a nice hack/. Thanks, GerardM
On 26 August 2013 09:27, Lars Aronsson lars@aronsson.se wrote:
By putting the following code (written by User:EnDumEn) in user:YOURNAME/common.jsany external link gets an extra little symbol (⎆), which leads to a link search for that link. This is very useful for finding other articles that cite the same source.
jQuery( "a.external" ).after( function() { return jQuery( "<a>⎆</a>)" ) .attr( "href", "//sv.wikipedia.org/wiki/**Special:Linksearch/<
http://sv.wikipedia.org/wiki/Special:Linksearch/%3E"
- this.href )
.before( " " ); });
-- Lars Aronsson (lars@aronsson.se) Aronsson Datateknik - http://aronsson.se
______________________________**_________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-l<
https://lists.wikimedia.org/mailman/listinfo/wikitech-l%3E _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- http://palnatoke.org * @palnatoke * +4522934588 _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
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...
On 2013-08-26 8:55 AM, "Mark Holmquist" mtraceur@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@member.fsf.org https://wikimediafoundation.org/wiki/User:MHolmquist
Wikitech-l mailing list Wikitech-l@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
On 2013-08-26 8:06 AM, Brian Wolff wrote:
On 2013-08-26 8:55 AM, "Mark Holmquist" mtraceur@member.fsf.org wrote:
On Mon, Aug 26, 2013 at 10:07:16AM +0200, Ole Palnatoke Andersen wrote: ... 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@member.fsf.org https://wikimediafoundation.org/wiki/User:MHolmquist
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
Maybe we can fit them into page_props somehow.
Did we have support for 1:many instead of just 1:1 keys in page_props?
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
wikitech-l@lists.wikimedia.org