Extension:Graphical Category Browser

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
Graphical Category Browser

Release status: stable

Implementation Special page
Description A graphical browser for categories
Author(s) Xypron
Latest version 1.7 (2014-12-08)
MediaWiki 1.19.2+
License GPLv3
Download https://sourceforge.net/projects/grcatbr/
Hooks used

Translate the Graphical Category Browser extension if it is available at translatewiki.net

Check usage and version matrix; code metrics
Screen shot

Why is this extension necessary?[edit | edit source]

Showing the interconnection of categories as a graph enhances navigability of the site.

What this extension does[edit | edit source]

  • A special page "Graphical Categories Browser" is added.
  • A graph is added on top of each category page showing the relationships to other categories.

Images are file cached. Cache control to match html and image output is supplied.

Installation[edit | edit source]

  • Install Graphviz - Graph Visualization Software.
  • Download script and copy to extensions.
  • Correct $xyDotPath and $xyCategoriesCache to Your needs.
  • Create directory images/xyGraphvizCache
  • Add the following line to LocalSettings.php

To change the design you may override entries in the following array:

$xyCategoryGraphStyle = array(
  "COLOR_NODE"          => "#EEEEEE", // color of category nodes
  "COLOR_NODE_ERROR"    => "#FF0000", // color for internal error
  "COLOR_NODE_REDIRECT" => "#FFCCCC", // color of redirected category nodes
  "COLOR_NODE_MISSING"  => "#FFFFCC", // color of missing category nodes
  "COLOR_LINK_REDIRECT" => "#FF0000", // color of redirect links
  "HEIGHT"              => "1920",    // height in pixels (96th of an inch)
  "WIDTH"               => "768"      // width in pixels (96th of an inch)