Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mooeypoo/wikilookup

A tool to display info from Wikipedia (or private wikis) on selected terms in a webpage.
https://github.com/mooeypoo/wikilookup

hacktoberfest jquery popup wikipedia wikis

Last synced: about 1 month ago
JSON representation

A tool to display info from Wikipedia (or private wikis) on selected terms in a webpage.

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.com/mooeypoo/jquery.wikilookup.svg?branch=master)](https://travis-ci.com/mooeypoo/jquery.wikilookup)

# Wikilookup
Wikilookup is a JavaScript library that enables you to add quick information from Wikipedia and other wikis.

**Are you looking for the Wordpress plugin? [It's here!](https://github.com/mooeypoo/wikilookup-wordpress)**

## Use the plugin
To use Wikilookup, include it in your page:
```


```
Call the plugin on the DOM element that holds your text.

```$( '.content').wikilookup();```

By default, the plugin looks for elements tagged by `data-wikilookup` property.

You can change that property by providing an alternative selector:

```$( '.content').wikilookup( { selector: '.someClass' } );```

## Showing the data

Wikilookup manages the operation of fetching the data and creating a display, but it is agnostic as to where that display is placed. Deciding where the results appear is up to you.

The view for each lookup word is stored in the `data-wl-widget` data attribute of that node. The presentation jQuery object is stored in the `$element` property of that object. You can call for it and display it wherever you want.

See the demos for an example.

## Demo
For information about the configuration, [visit the demo page](https://mooeypoo.github.io/wikilookup/).

## Contribute and help!
Wikilookup is an open source project. Please feel free to submit issues and/or pull requests.

## Changelog
See [CHANGELOG](CHANGELOG.md)

## Author
- Developed by Moriel Schottlender
- Design guidance by Nirzar Pangarkar