LanguageSearch
Description
Search utility for interlanguage link dropdowns.
Updated
November 12, 2023
العربية (ar) български (bg) català (ca) čeština (cs) dansk (da) Deutsch (de) Ελληνικά (el) English (en) español (es) eesti (et) فارسی (fa) suomi (fi) français (fr) עברית (he) हिन्दी (hi) hrvatski (hr) magyar (hu) Bahasa Indonesia (id) italiano (it) 日本語 (ja) 한국어 (ko) Bahasa Melayu (ms) Nederlands (nl) norsk (no) polski (pl) português (pt) português do Brasil (pt-br) română (ro) русский (ru) српски / srpski (sr) svenska (sv) ไทย (th) Tagalog (tl) Türkçe (tr) українська (uk) Tiếng Việt (vi) 中文 (zh) zh- 中文(繁體) (zh-hant) 中文(香港) (zh-hk) 中文(臺灣) (zh-tw)
LanguageSearch allows users to filter the interlanguage dropdown by searching for a specific language. It mirrors the Universal Language Selector Wikimedia project and particularly their search filtering functionality. Languages can be filtered by the following criteria:
ISO language code (see list )
English name of language
Localised (native) name of language
Set of aliases in related languages
The script depends on a configuration file at MediaWiki:Custom-LanguageSearch/registry.json . You are welcome to add your language if it is supported by Fandom's fork of MediaWiki.
Installation
Add this to MediaWiki:ImportJS :
dev:LanguageSearch.js
importArticles:
Add this JavaScript on your wiki (or add the highlighted text to your existing import statement):
importArticles ({ type : 'script' , articles : [ 'u:dev:MediaWiki:LanguageSearch.js' , ] });
Local:
Special:MyPage/common.js
Importing multiple scripts? This quick guide shows how to combine the imports. For personal use, note that personal JS must be enabled for your account. If the script requires configuration through MediaWiki:Common.js for sitewide use, don't forget to contact Fandom Staff to get it enabled on your wiki, if it isn't already enabled.
Notes
This script is stable at this time, but may be expanded to support better filters:
regional filtering
directional filtering
language script classification
The script depends on CSS-based filtering, which may not work on legacy browsers. Please report any bugs with Unicode support in the talkpage.
Text above can be found
here (edit )