From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎português • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: beta
Implementation Page action , Ajax, API
Description An easy way to categorize an article, just by clicking on labels.
Author(s) Thomas Fauré (Faure.thomastalk)
Latest version 0.1.2 (2011-05-12)
MediaWiki 1.16+
License GNU General Public License 3.0
Download Template:WikimediaDownload/svn
Translate the Categorize extension if it is available at translatewiki.net
Check usage and version matrix.

This extension is derived from the CategorySuggest extension and proposes to the user a sorted labels matrix which are main categories. It is supposed to help the user to categorize an article. Here is an example of implementation:



Download instructions[edit]

Download a snapshot on: Special:ExtensionDistributor/Categorize

Currently available on 1.16.x and trunk (under dev).

and extract it in $IP/extensions/.

$IP stands for the Installation Path (or "directory") of your MediaWiki installation, the same directory that holds LocalSettings.php , index.php etc..

It will create a $IP/extensions/Categorize/ directory.

Installation and configuration[edit]

  • Download and place the file(s) in a directory called Categorize in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Categorize/Categorize.php";
    $wgCategorizeLabels = array(
    	'Master_Category1' => array('Category11','Category12','Category13','Category14'),
    	'Master_Category2' => array('Category21','Category22','Category23','Category24'),
    	'separator1' => array(),
    	'Master_Category3' => array('Category31','Category32','Category33','Category34'),
    	'Master_Category4' => array('Category41','Category42','Category43','Category44'),
    	'separator2' => array(),
    	'Master_Category5' => array('Category51','Category52','Category53','Category54'),
  • The $labelsStructure defines the categories to "labelized" in the interface. Each array element is a line into the final graphic table. "separator*" will draw a line. Be careful, write the complete names for categories with "_" characters.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


You can modify Categorize.i18.php in order to customize the printed sentences.