/CategoryTreeMod

Added some features to the Mediawiki's extension javascript Category Tree, for Mediawiki 1.22+, based on Cornucopia's modifications

Primary LanguageJavaScript

#CategoryTreeMod

Added some features to the Mediawiki's extension Category Tree, for Mediawiki 1.22+, based on Cornucopia's modifications

It 'heavily' uses localStorage, so, please, check your browser's support

Features

  • Remember opened nodes
  • Remember the last link clicked

#Instalation

  1. Install latest Category Tree

Follow Category Tree's page for instructions

  1. Backup Category Tree's javascript

Navigate to /modules/, and rename ext.categoryTree.js to ext.categoryTree.js.bak

  1. Clone this project:
$git clone https://github.com/kbooz/CategoryTreeMod.git
  1. Modify 'expand' constant to your Mediawiki's language: If your Mediawiki is in another language i.e.: portuguese, spanish, italian..., you'll need to change a simple line, or else it'll break your extension

4a. Navigate to , open ext.categoryTree.js in your text editor

4b. Locate this line: line 13, probably

```javascript
const expand = 'expand'; // expand text in l18n
```

4c. Modify to your Mediawiki's language:

  const expand = 'expandir'; // expand text in l18n
  1. Copy the mod into CategoryTree's modules directory

  2. Edit Mediawiki:Common.css: Add and customize this class:

.CategoryTreeLabelLast {font-weight: bold; }

Presto!

##To-do

  • Eliminate 4 step, by using CategoryTree's Localisation
  • Correct text errors