Graph Extension

A mediawiki extension to create graphs in wiki pages, written by Tels. It needs a few perl modules to be installed via cpan, esp. it uses Graph:Easy and can output graphs as ASCII, HTML or SVG.


 * Installed Graph::Easy 0.44
 * Installed wikimedia-graph 0.19

Looks a lot better now, thanks Tels.

You can create graphs like this:

source examples
[ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ]

result examples
check source to see how they workd

3 nodes
[ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ]

4 nodes
[ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ] [ S23 ] -> [ Neighbor4 ]

5 nodes
[ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ] [ S23 ] -> [ Neighbor4 ] [ S23 ] -> [ Neighbor5 ]

Nodes with links
Graph:Easy:

node { linkbase: http://www.bloodgate.com/perl/; } [ Graph ] { link: graph/; } --> [ Manual ] { link: graph/manual/; }

S23: node { linkbase: /wiki/; } [ WikiNode ] { link: WikiNode; } --> [ Sandbox ] { link: Sandbox; } [ WikiNode ] --> [ RecentChanges ] { link: RecentChanges; } [ WikiNode ] --> [ Fnord ] { link: Fnord; }

InterWiki:

[ S23 ] {link: http://s23.org/wiki/;} --> [ StarTrek ] { link: http://www.memory-alpha.org/en/index.php/Main_Page; } [ S23 ] --> [ Brasil ] { link: http://rio.ifi.unizh.ch/brasilienwiki/index.php/Hauptseite; } [ S23 ] --> [ Gentoo ] { link: http://gentoo-wiki.com/; } [ S23 ] --> [ Python ] { link: http://www.pythonwiki.de/; } [ S23 ] --> [ ZZZ ] { link: http://wiki.zzz.ee/index.php/; }

New: SVG output
"Dazu braucht man noch einen modernen Browser (Firefox 1.5, oder Opera 9.0,oder Konqueror 3.5)."

graph { output: html; } [ S23 ] {link: http://s23.org/wiki/;} --> [ StarTrek ] { link: http://www.memory-alpha.org/en/index.php/Main_Page; } [ S23 ] --> [ Brasil ] { link: http://rio.ifi.unizh.ch/brasilienwiki/index.php/Hauptseite; } [ S23 ] --> [ Gentoo ] { link: http://gentoo-wiki.com/; } [ S23 ] --> [ Python ] { link: http://www.pythonwiki.de/; } [ S23 ] --> [ ZZZ ] { link: http://wiki.zzz.ee/index.php/; } [ S23 ] --> [AbbeNormal] { link: http://www.ourpla.net/cgi-bin/pikie.cgi?; } [ S23 ] --> [AcadWiki] { link: http://xarch.tu-graz.ac.at/autocad/wiki/; } [ S23 ] --> [Advogato] { link: http://www.advogato.org/; } [ S23 ] --> [AIWiki] { link: http://www.ifi.unizh.ch/ailab/aiwiki/aiw.cgi?; } [ S23 ] --> [ALife] { link: http://news.alife.org/wiki/index.php?; } [ S23 ] --> [AndStuff] { link: http://andstuff.org/wiki.php?; } [ S23 ] --> [Annotation] { link: http://bayle.stanford.edu/crit/nph-med.cgi/; } [ S23 ] --> [AwarenessWiki] { link: http://taoriver.net/aware/; } [ S23 ] --> [BenefitsWiki] { link: http://www.benefitslink.com/cgi-bin/wiki.cgi?; }

Broken link fixed (or not, weird "iframe-like2 behaviour. how come? it wasnt intended to open like in a frame. mutante 03:54, 11 December 2005 (CET).

Fixed. mutante 15:38, 15 June 2006 (CEST)

Links

 * http://meta.wikimedia.org/wiki/Graph_extension


 * http://bloodgate.com/perl/graph/


 * Manual to Graph:Easy


 * Links in graphs