A jQuery plugin to make links to Wikipedia on given keywords
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
jq-wikify.js

README

Wikify plugin for JQuery

Make links to Wikipedia according to keywords on selected page elements

==API==

Set default values for lang and variant

 * $.wikifySetting(lang, variant);

Make links to Wikipedia according to keywords on selected page elements

 * $(selector).wikify(keywords, lang, variant);

Here lang and variant are optional.


==Use cases==

Use like:

   $('english-section').wikify(['Mathematics', 'Physics', 'Art']);
   $('chinese-section').wikify(['数学', '物理', '艺术'], 'zh', 'zh-cn');

Or like below:

   $.wikifySetting('zh', 'zh-cn');
   $('chinese-section').wikify(['数学', '物理', '艺术']);