扩展:Categorize

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Categorize and the translation is 31% complete.
Other languages:
English • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
Categorize
发布状态: 测试
实现 页面操作 , Ajax, API
描述 An easy way to categorize an article, just by clicking on labels.
作者 Thomas Fauré (Faure.thomastalk)
最新版本 0.1.2 (2011-05-12)
MediaWiki 1.16+
PHP 5
许可协议 GNU通用公眾授權條款3.0
下载 Template:WikimediaDownload/svn
翻译Categorize扩展如果在translatewiki.net可用
检查使用和版本矩阵。

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

用法

下载说明

在此下载快照: Special:ExtensionDistributor/Categorize

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

and extract it in $IP/extensions/.

$IP代表MediaWiki安装的安装路径(或“目录”),即LocalSettings.phpindex.php所在的目录

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

Installation and configuration

  • 下载文件,并将其放置在您extensions/文件夹中的Categorize目录内。
  • 将下列代码放置在您的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 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

Translation

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