Wikipedia Lookup

:information_source: Summary Lookup words or phrases via a tooltip using Wikipedia
:hammer_and_wrench: Repository GitHub - NateDhaliwal/discourse-wikipedia-lookup · GitHub
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

This component allows users to wrap words or phrases in a wrap to search these words with Wikipedia. If no matches are found, it does not have a tooltip.

You can add the wrap to the composer via the button in the popup menu.

Settings

To allow for different languages being used, you can change the wikipedia base url setting. You can set it to something like es.wikipedia.org if you want it in Spanish, or zh.wikipedia.org for Chinese.

You can change the texts of the placeholder text, the composer button and the text before the link in the tooltip as locales.

6 Likes

This is desktop only?

1 Like

It’s not intended to be… let me take a look.

@Jagster It works fine on mobile. Could you specify the behaviour you’re not having on mobile?

2 Likes

The screenshot shows https://www.wikipedia.org/wiki/Google being referenced. Would it be possible to modify the version of Wikipedia being used? Via a settings menu where you can set the default.

For example: specify whether it should be the English one, or another language prefix.

I’m also thinking of having the option to include non-Wikimedia wikis. By allowing a custom domain in the settings, the reach of this component could expand well beyond just Wikipedia.

3 Likes

I’ve gone ahead and added this in the wikipedia base url setting. You can set it to something like es.wikipedia.org if you want it in Spanish (or any language, really).

This one is interesting. But it’ll require the admin to configure a setting to the required API path. If they are non-technical, this might be harder.

1 Like

No, I can’t :man_facepalming:

I red too fast, and misunderstood totally functionality of your TC. For some strange reason I reckoned choosing a word gives somehow a tooltip.

Well, re-reading (and installing) opened the real use of that.

Nice small add-on and is in use on my forum now. Thanks.

4 Likes