Extension:CategoryCloud

CategoryCloud extension adds the ability to create a tag cloud to a wiki site. It generates a tag for every sub-category, but not article, in the given category. The top-level category is not included and the extension does not recursively go through the sub-categories for additional categories.

The size of the individual tags are based on the number of children, both category and articles, of each sub-category. These are normalized against the other counts and then rendered based on relative size. This list is built on a single SQL query against two indexed tables, so it should remain speedy even on larger sites.

This extension can be used in two different manners: 

The category may be anything, but the "Category:" is assumed. There are a few optional attributes in the extension.


 * minsize: The font size, in percentage, that the small category will have. Defaults to 80.
 * maxsize: The font size, also as a percentage, that the largest category will have. Defaults to 125.
 * order: The order of the categories. Defaults to "name" but may also be "count".
 * class: A CSS class to put into the outer div generated.
 * style: The contents of this optional attribute will be placed in a style attribute of the outermost div tag.

Examples of the attributes:



Examples of CategoryCloud
The following sites use CategoryCloud:


 * http://moonfire.us/ - The author's personal website.
 * Venicewiki.org The People's Guide to Venice.

Related Extensions

 * Extension:DynamicPageList is a generic report generator which also can produce category clouds

Source Code
The source code may be accessed via SVN or the latest version can be found here: