{"id":17031744,"url":"https://github.com/mooeypoo/wikilookup-wordpress","last_synced_at":"2025-04-12T12:41:26.650Z","repository":{"id":35032693,"uuid":"194463646","full_name":"mooeypoo/wikilookup-wordpress","owner":"mooeypoo","description":"A tool to display info from Wikipedia (or private wikis) on selected terms in a webpage.","archived":false,"fork":false,"pushed_at":"2022-05-25T23:37:51.000Z","size":4220,"stargazers_count":7,"open_issues_count":10,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T07:21:57.011Z","etag":null,"topics":["popup","wikipedia","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mooeypoo.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-30T01:36:39.000Z","updated_at":"2023-03-26T16:28:54.000Z","dependencies_parsed_at":"2022-09-15T21:53:03.489Z","dependency_job_id":null,"html_url":"https://github.com/mooeypoo/wikilookup-wordpress","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooeypoo%2Fwikilookup-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooeypoo%2Fwikilookup-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooeypoo%2Fwikilookup-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooeypoo%2Fwikilookup-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooeypoo","download_url":"https://codeload.github.com/mooeypoo/wikilookup-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248568579,"owners_count":21126052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["popup","wikipedia","wordpress","wordpress-plugin"],"created_at":"2024-10-14T08:25:23.509Z","updated_at":"2025-04-12T12:41:26.631Z","avatar_url":"https://github.com/mooeypoo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wikilookup for WordPress\nAdd the power of Wikipedia to your WordPress Blog\n\n## Install\n\n* Download the plugin files from the official WordPress plugin store: https://wordpress.org/plugins/wikilookup/\n* Extract the folder in your `wp-content/plugins/` in your WordPress installation.\n* The plugin works out-of-the-box with the `[wikipopup]` and `[wikicard]` shortcodes.\n* To change configuration, visit the configuration page under your administration area.\n\n## Features\nWith this plugin activated, you can use the shortcode `[wikipopup]` to wrap words in your WordPress posts. Those words will then display a popup with information from Wikipedia.\n\nYou can also use `[wikicard]` to display Wikipedia content in the form of a static card within your post.\n\n### Shortcode properties\nThere are several features that both shortcodes accept:\n* **lang** - Pull data from a different language Wikipedia. Use with `[wikipopup lang=\"es\"]word[/wikipopup]`\n* **title** - Use a different title. By default, the title used to pull from Wikipedia is the text inside the shortcode. If you want to display a different title, use the `title` property. For example, `[wikipopup title=\"Randomness\"]This is random[/wikipopup]` will display the information from Wikipedia page \"Randomness\".\n* **source** - Use a different source for this lookup. If you've defined sources in your settings page (see below) you can use them in your post with the `source` property. For example, `[wikipopup source=\"trek\"]Star Trek[/wikipopup]` will look for 'Star Trek' through the source defined as 'trek' in your settings. If the source is not found (or not given) the system falls back to search in the default source.\n\n### Settings\nYou can change several aspects of the popup display through the settings page.\n\n* **Popup Trigger** - Dictates what triggers the popups. By default, it is a \"click\" action, but you can change it to \"Hover\".\n* **Display text** - You can change the way some of the messaging appears in the popup, from the loading text, to the credits and links.\n* **Sources** - Define the source information that Wikilookup will use.\n\n### Sources\nThe sources are where Wikilookup popup searches for the page information it will display.\n\nThe default source is defined as the Wikipedia sites with the default language set to 'en'. You can change the default or add your own sources.\n\n#### Source baseURL\nSource definitions must be wiki websites that use [MediaWiki](https://www.mediawiki.org) as software, since they expect the API response from a wiki.\n\n#### Source languages\nIf your defined source is in a wiki farm that has dynamic language (similar to Wikipedia where `en.wikipedia.org` is English and `es.wikipedia.org` is Spanish, etc) you will need to represent that in your `baseURL` by the `{{lang}}` attribute. The system will then allow you to use `lang=\"xx\"` in the shortcode to switch the language without defining a new source name.\n\nPlease feel free to submit issues and pull requests.\n\n## Contributing\nTo contribute and develop this plugin:\n\n1. Clone the repository\n2. Run `composer install`\n3. Run `npm install`\n4. Start writing code! :)\n\nNote: `grunt build` will create a releasable plugin directory in `_release/trunk`; that is the best way to test whether the changes you've made will work for a standalone plugin. To continuously test, you can add the plugin folder to a local WordPress installation and use that to develop and debug.\n\n### Using the Docker container\nThe repository comes ready-made with a docker container that activates a new WordPress installation with the wikilookup plugin read from the `_release/trunk` folder.\n\n1. Create the trunk files by running `grunt trunk`\n2. Run docker-compose `docker-compose up`\n3. Change the code.... and to update, run `grunt trunk` again\n\nThe docker container reads from the `_release/trunk` folder to mimic, as close as possible, the real plugin files, without the development files.\n\n## Credits\n* This plugin was written by [Moriel Schottlender](http://moriel.smarterthanthat.com), under a GPL-v3 license.\n* Design guidance by Nirzar Pangarkar\n* For a standalone plugin, see [jQuery.Wikilookup](https://github.com/mooeypoo/jquery.wikilookup)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooeypoo%2Fwikilookup-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooeypoo%2Fwikilookup-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooeypoo%2Fwikilookup-wordpress/lists"}