Extension:SingleLinkTagCluster

Description
This extension was created as part of a magister thesis as a means to allow the users to build a single link tag-cluster with the input-category. The single link cluster means, two elements will be connected, that have maximal similarity between each other. This extension enables a search and display of similar categories in the form of tag-cluster.

Prerequirement
For the Usage of Extension SingleLinkTagCluster the Extension WikiCategoryTagCloud is required. The Extensions Semantic MediaWiki and Semantic Forms can be helpful for the usage of SingleLinkTagCluster, because they enable more efficient category assignment as in MediaWiki. But they are not necessary for the operation of SingleLinkTagCluster.

Usage
The extension is indispensable if you need to find all similar categories to the input-category. First you go to page Special:SingleLinkTagCluster. Then you insert in the edit field desired category and click on the button “Build the cluster with this category”. After this you get the tag-cluster. Because the tag-cluster can be too long, especially by the wikis with a lot of categories, it will be divided per three categories per line, to give the users a better overview of all cluster-categories. The cluster-categories will be sorted in descending order. Each cluster-category have in brackets the number, how much the cluster-category appears together with the input-category. The cluster-categories will be also displayed in different colors, depending on on how much pages in percent the input-category appears with the cluster-category. These features make the extension more user-friendly.

Installation
1.Please cut and paste the code SingleLinkTagCluster.php, SingleLinkTagCluster.i18n.php and SingleLinkTagCluster_body.php and place it in your wiki's extensions directory in a SingleLinkTagCluster subdirectory. ($IP/extensions/SingleLinkTagCluster) 2.Changes your wiki's LocalSettings.php file to include the line: require_once("$IP/extensions/SingleLinkTagCluster/SingleLinkTagCluster.php"); Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php''.

SingleLinkTagCluster_body.php
\n");

// show the tag-cloud $wgOut->addHTML( " {$msgTagCloud} {$msgTagCloudComment} " ); $wgOut->addWikiText(" min_count=1\n min_size=77\n increase_factor=160 "); } }