Erweiterung:Graphical Category Browser

From mediawiki.org
This page is a translated version of the page Extension:Graphical Category Browser and the translation is 52% complete.
MediaWiki-Erweiterungen
Graphical Category Browser
Freigabestatus: stabil
Einbindung Spezialseite
Beschreibung Ein grafischer Browser für Kategorien
Autor(en) Xypron
Letzte Version 1.9 (2022-12-25)
MediaWiki 1.35+
Lizenz GNU General Public License 3.0 oder später
Herunterladen

The Graphical Category Browser extension shows the interconnection of categories as a graph enhances navigability of the site.

Was diese Erweiterung macht

  • 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

  • Installiere Graphviz - Graphvisualisierungssoftware.
  • Lade das Skript herunter und kopiere es zu extensions.
  • Ändere $xyDotPath und $xyCategoriesCache nach deinen Bedürfnissen.
  • Erstelle das Verzeichnis images/xyGraphvizCache
  • Füge folgende Zeile zu LocalSettings.php hinzu:
require_once("$IP/extensions/xyCategoryBrowser/xyCategoryBrowser.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",    // Höhe in Pixel (96stel Zoll)
  "WIDTH"               => "768"      // Breite in Pixel (96stel Zoll)
);