MediaWiki Categories


Table of Contents

Categories 
Building a test category hierarchy 
Extension:CategoryTree 
Installation 
Can category hierarchy be adjusted 

Categories 

Help:Category http://meta.wikimedia.org/wiki/Help:Category

Extension:CategoryTree http://www.mediawiki.org/wiki/Extension:CategoryTree

Building a test category hierarchy 

For all those people that are new to wiki category concept and CategoryTree, like me, here is a *nix command line script to build a test category hierarchy for you (tested under Bash):

# category id
ctid=0

echo "[[Category:Test P$ctid]]" > "Category:Test P$((ctid+1))".txt
php maintenance/importTextFile.php !$

ctid=$((ctid+1))

Basically, you initial the category id variable and then, import the generated file into wiki, increase the category id variable, then loop the procedure to whatever depth you want.

documented on: 2007.04.19