Wikipedia/Wiki 검색

:information_source: 요약 위키백과를 사용하여 툴팁으로 단어 또는 문구 조회
:hammer_and_wrench: 저장소 GitHub - NateDhaliwal/discourse-wikipedia-lookup · GitHub
:question: 설치 가이드 테마 또는 테마 컴포넌트 설치 방법
:open_book: 디스커스 테마를 처음 사용하시나요? 디스커스 테마 사용 입문가 가이드

이 테마 컴포넌트 설치

이 컴포넌트는 사용자가 단어 또는 문구를 랩(wrap)으로 감싸서 위키백과로 검색할 수 있게 합니다. 일치하는 항목이 없으면 툴팁이 표시되지 않습니다.

팝업 메뉴의 버튼을 통해 랩을 작성기에 추가할 수 있습니다.

설정

서로 다른 언어를 사용할 수 있도록 허용하기 위해 wikipedia base url 설정을 변경할 수 있습니다. 스페인어로 사용하려면 es.wikipedia.org와 같이, 중국어로 사용하려면 zh.wikipedia.org로 설정할 수 있습니다.

플레이스홀더 텍스트, 작성기 버튼, 툴팁 내 링크 앞 텍스트의 문구를 로케일(locales)을 통해 변경할 수 있습니다.

9개의 좋아요

This is desktop only?

1개의 좋아요

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개의 좋아요

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개의 좋아요

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.

2개의 좋아요

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개의 좋아요

That’s actually good enough. Modifying the base URL is exactly what’s needed to make the links point to for example to something like a wiki on Mirahaze.

2개의 좋아요