Jump to content

Extension:Graphical Category Browser/pt

From mediawiki.org
This page is a translated version of the page Extension:Graphical Category Browser and the translation is 29% complete.
Manual de extensões do MediaWiki
Graphical Category Browser
Estado de lançamento: estável
Implementação Página espacial
Descrição A graphical browser for categories
Autor(es) Xypron
Última versão 1.9 (2022-12-25)
MediaWiki 1.35+
Licença GNU - Licença Pública Geral 3.0 ou superior
Transferência

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

What this extension does

  • 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.

Instalação

  • Download script and copy to extensions.
  • Correct $xyDotPath and $xyCategoriesCache to your needs.
  • Create directory images/xyGraphvizCache
  • Add the following line to LocalSettings.php
require_once("$IP/extensions/xyCategoryBrowser/xyCategoryBrowser.php");

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

$xyCategoryGraphStyle = array(
  "COLOR_NODE"          => "#EEEEEE", // Cor de nós de categoria
  "COLOR_NODE_ERROR"    => "#FF0000", // Cor para erro interno
  "COLOR_NODE_REDIRECT" => "#FFCCCC", // color of redirected category nodes
  "COLOR_NODE_MISSING"  => "#FFFFCC", // color of missing category nodes
  "COLOR_LINK_REDIRECT" => "#FF0000", // Cor de redireccionamento de enlaces
  "HEIGHT"              => "1920",    // Altura em pixels (96.º de uma polegada)
  "WIDTH"               => "768"      // Largo em pixels (96.º de uma polegada)
);