diff --git a/AUTHORS.txt b/AUTHORS.txt index 5d61d4c..74edd93 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -1,2 +1,2 @@ -Development of Version 1.0.0 by -Marcel Grolms \ No newline at end of file +Development of Version 1.0.0 by Marcel Grolms +Development of Version 2.0.0 by Laurens Laman diff --git a/README.md b/README.md index adc7019..91343c5 100644 --- a/README.md +++ b/README.md @@ -3,53 +3,12 @@ jQuery Plugin for Wikipedia ## Description -jQuery Plugin zum einfachen nachladen von Daten aus Wikipedia über die Wikipedia API mittels JSON. -Zum laden muss ein Wikipediaseitentitel übergeben werden. Über den zweiten Parameter können -diverse Einstellungen für die Darstellung getroffen werden. +jQuery plugin for easy download of data from Wikipedia about the Wikipedia API using JSON. To download a Wikipedia page a title needs to be passed. Various settings can be made about the second parameter. -[Demo]http://support.suabo.de/opensource/jquery-plugin-wikipedia - -## Usage - -1- Include the Javascript resources into you pages
- - - - -2- Add a placeholder for the widget to your page - - - -3- Add the Javascript that will populate the placeholder - - $('#ContainerToLoad').WikipediaWidget('Page Title', [{ 'showTitle': true, - 'maxThumbnails': 3, - 'cutFirstInfoTableRows': 4, - 'maxInfoTableRows': 8, - 'thumbMaxWidth': '180px', - 'thumbMaxHeight': '180px' - }]); - -## Options - -- **showTitle** - Show or hide titlebar. Default: true - -- **maxThumbnails** - Set max count of thumbnails to load. Default: 3 - -- **cutFirstInfoTableRows** - Cut out the first rows of the information table. Default: 4 - -- **maxInfoTableRows** - Set max count of information table rows. Default: 8 - -- **thumbMaxWidth** - Set max Thumbnail width. Default: '180px' +Demo: http://support.suabo.de/opensource/jquery-plugin-wikipedia -- **thumbMaxHeight** - Set max Thumbnail height. Default: '180px' +## Documentation +[Version 1.0](https://github.com/LauLamanApps/Wikipedia/blob/master/documentation/version%201.0.md) -## Demo +[Version 2.0](https://github.com/LauLamanApps/Wikipedia/blob/master/documentation/version%202.0.md#version-20) -[Demo]http://support.suabo.de/opensource/jquery-plugin-wikipedia \ No newline at end of file diff --git a/documentation/version 1.0.md b/documentation/version 1.0.md new file mode 100644 index 0000000..b9b97a0 --- /dev/null +++ b/documentation/version 1.0.md @@ -0,0 +1,43 @@ +## Usage + +1- Include the Javascript resources into you pages + + + + +2- Add a placeholder for the widget to your page + + + +3- Add the Javascript that will populate the placeholder + + $('#divRss').WikipediaWidget('Page Title', [{ 'showTitle': true, + 'maxThumbnails': 3, + 'cutFirstInfoTableRows': 4, + 'maxInfoTableRows': 8, + 'thumbMaxWidth': '180px', + 'thumbMaxHeight': '180px' + }]); + +## Options + +- **showTitle** + Show or hide titlebar. Default: true + +- **maxThumbnails** + Set max count of thumbnails to load. Default: 3 + +- **cutFirstInfoTableRows** + Cut out the first rows of the information table. Default: 4 + +- **maxInfoTableRows** + Set max count of information table rows. Default: 8 + +- **thumbMaxWidth** + Set max Thumbnail width. Default: '180px' + +- **thumbMaxHeight** + Set max Thumbnail height. Default: '180px' + +## Demo +http://support.suabo.de/opensource/jquery-plugin-wikipedia diff --git a/documentation/version 2.0.md b/documentation/version 2.0.md new file mode 100644 index 0000000..c0e8fee --- /dev/null +++ b/documentation/version 2.0.md @@ -0,0 +1,56 @@ +## Version 2.0 + +## Usage + +1- Include the Javascript resources into you pages + + + + +2- Add a placeholder for the widget to your page + + + +3- Add the Javascript that will populate the placeholder + + $('#divRss').Wikipedia('Page Title', options, callback); + +## Options + +- **showTitle** + Show or hide titlebar. Default: `false` +- **showInfo** + Show or hide info. Default: `true` +- **maxThumbnails** + Set max count of thumbnails to load. Default: `0` +- **cutFirstInfoTableRows** + Cut out the first rows of the information table. Default: `0` +- **maxInfoTableRows** + Set max count of information table rows. 0 means all. Default: `0` +- **thumbMaxWidth** + Set max Thumbnail width. Default: `'180px'` +- **thumbMaxHeight** + Set max Thumbnail height. Default: `'180px'` +- **locale** + Locale you want to request the information from. Default: `'en'` +- **removeIPA** + Remove the "[ˈæpəlˌɪŋk]" IPA. Default: `true` +- **descriptionLinks** + Show links in description. Default: `true` +- **redirect** + Redirect when only 1 link is found. Default: `true` +- **elements.loader** + Container the datavis placed in. Default: `'' || parsedata.parse.text["*"].substring(0,25) == '