jQuery Plugin For Loading Data From Wikipedia - Wikipedia

File Size: 51.7 KB
Views Total: 1021
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin For Loading Data From Wikipedia - Wikipedia

Wikipedia is an easy jQuery plugin that allows you to load and display data from Wikipedia using Wikipedia API and JSON.

See also:

How to use it:

1. Include required jQuery Wikipedia CSS on the web page

<link rel="stylesheet" href="css/jquery.wikipedia.css">

2. Create a container for the plugin.

<div id="demo1" class="wikipediaContainer">
<div class="bg"></div>
</div>

3. Include jQuery library and jQuery Wikipedia Plugin in the bottom of your page to reduce the loading time

<script src="jquery.min.js"></script>
<script src="js/jquery.wikipedia.js" ></script> 

4. Call the plugin and specify the Wikipedia page you want to display.

$(document).ready(function() {
  $('#demo1').WikipediaWidget('JQuery');
});  

5. Possible options to customize the plugin.

$('#demo1').WikipediaWidget('JQuery', { 
  'showTitle' : false, 
  'maxThumbnails' : 6,
  'cutFirstInfoTableRows': 4, 
  'maxInfoTableRows': 8, 
  'thumbMaxWidth': '180px', 
  'thumbMaxHeight': '180px' 
});

This awesome jQuery plugin is developed by suabo. For more Advanced Usages, please check the demo page or visit the official website.