In jQuery possiamo trasformare le abbreviazioni in link a Wikipedia.
La soluzione รจ la seguente:
(function( $ ) {
$.fn.wikify = function( options ) {
options = $.extend({
lang: "en"
}, options);
return this.each(function() {
var $abbr = $( this ),
abbr = $.trim( $abbr.text() ),
url = "https://" + options.lang + ".wikipedia.org/wiki/" + abbr,
link = '<a href="' + url + "></a>";
$abbr.wrap( link );
});
};
})( jQuery );