NewCategoriesLocalizedFilter
Updated
October 5, 2019 (NewCategoriesLocalizedFilter.js)
беларуская (be) English (en) Ελληνικά (el) Gaelg (gv) polski (pl) русский (ru) Türkçe (tr) українська (uk)
NewCategoriesLocalizedFilter allows to use localized filters for categories on non-en wikis.
Usage
By default, the script uses built-in alphabets. If no alphabet configured or found for current content language, then the script will gather all characters on the page and will build the list.
One can add local alphabet:
window . newCatLocal = window . newCatLocal || {};
window . newCatLocal . alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ;
Installation
Add this to MediaWiki:ImportJS :
dev:NewCategoriesLocalizedFilter.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:NewCategoriesLocalizedFilter.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.