Skip to content

fishdan/wikisearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkMaker Plugin

Version License WordPress Download

One-step Wikipedia linking for WordPress: highlight text, set the link URL to linkmaker, publish.


✨ Features

  • Gutenberg-friendly: link any text with the URL linkmaker and it becomes a Wikipedia link based on the visible text
  • Zero config: no settings required
  • Lightweight: tiny JS + CSS, no external calls until a user clicks
  • Theme-friendly styles via .wiki-search
  • Skips links that contain github in their href

🎥 Demo

LinkMaker demo


📦 Installation

  1. Copy the linkmaker folder into your WordPress wp-content/plugins directory or upload the ZIP via Plugins → Add New → Upload Plugin.
  2. Activate LinkMaker under Plugins → Installed Plugins.

(If zipping on Windows, prefer git archive or tar -a -c -f linkmaker.zip linkmaker so archive paths use forward slashes.)


🚀 Usage

Easiest (Gutenberg)

  1. Highlight the text you want to link (e.g., Albert Einstein).
  2. Click the Link button in the block toolbar.
  3. Type linkmaker as the URL (no http://).
  4. Publish. On the front-end, the link will go to https://en.wikipedia.org/wiki/Albert_Einstein.

Classic editor / raw HTML

<a href="linkmaker">Marie Curie</a>

This will point to:

https://en.wikipedia.org/wiki/Marie_Curie

Multiple on a page

<p>Read about <a href="linkmaker">Alan Turing</a> and <a href="linkmaker">Ada Lovelace</a>.</p>

⚙️ Customization (developer tips)

  • Styling: override the .wiki-search rules in your theme or child theme.
  • Language: swap en.wikipedia.org for another language subdomain in the JS (future admin setting planned).
  • Open in new tab: set target="_blank" rel="noopener" when converting links (see roadmap).

🛣️ Roadmap / Planned improvements

  • Keep anchor semantics (convert placeholders to real <a href> instead of replacing with <span>) for better accessibility and no-JS fallback
  • Safer selector (opt-in via class a.linkmaker or attribute [data-linkmaker])
  • Admin setting for Wikipedia language and target behavior
  • Shortcode + Gutenberg block for explicit inserts
  • Conditional asset enqueue and basic tests/linting

❓ FAQ

Why isn’t my GitHub link changing?

Links whose href contains github are intentionally skipped so developer docs aren’t altered.

Can I force a different article slug than the visible text?

For now the plugin uses the visible text. A shortcode and/or attribute‑based selector is planned for custom slugs.


🧾 Changelog

  • 0.1.5 – Renamed the plugin to LinkMaker and updated release automation.
  • 0.1.4 – Prepared the plugin for the WordPress.org directory and removed the custom update checker.
  • 0.1.0 – Initial release.

📝 License

MIT. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •