https://github.com/mountain/jq-wikify
A jQuery plugin to make links to Wikipedia on given keywords
https://github.com/mountain/jq-wikify
Last synced: over 1 year ago
JSON representation
A jQuery plugin to make links to Wikipedia on given keywords
- Host: GitHub
- URL: https://github.com/mountain/jq-wikify
- Owner: mountain
- Created: 2010-07-19T14:26:34.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-07-24T03:54:05.000Z (almost 16 years ago)
- Last Synced: 2025-01-23T09:22:00.590Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://github.com/mountain/jq-wikify
- Size: 97.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
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(['数学', '物理', '艺术']);