Extension:Categorize

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Categorize

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é
Last version v0.1.2 (May 12, 2011)
MediaWiki 1.16+
PHP 5
License GPL 3.0
Download
Hooks used
EditPage::showEditForm:initial

UploadForm:initial
EditPage::attemptSave
UploadForm:BeforeProcessing
OutputPageParserOutput

Check usage (experimental)

[edit] What can this extension do?

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 :

Categorize.png

[edit] Usage

[edit] Download instructions

Download a snapshot on Special:ExtensionDistributor/Categorize

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

and unarchive it in $IP/extensions/. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

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

[edit] Installation and configuration

To install this extension, add the following lines to LocalSettings.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'),
);
 
require_once("$IP/extensions/Categorize/Categorize.php");

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.

[edit] Translation

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

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox