imported>MattisManzel mNo edit summary |
(links don't need to be repeated :) and use internal links) |
||
Line 53: | Line 53: | ||
S23: |
S23: |
||
<graph> |
<graph> |
||
node { linkbase: |
node { linkbase: /wiki/; } |
||
[ WikiNode ] { link: WikiNode; } --> [ Sandbox ] { link: Sandbox; } |
[ WikiNode ] { link: WikiNode; } --> [ Sandbox ] { link: Sandbox; } |
||
[ WikiNode ] |
[ WikiNode ] --> [ RecentChanges ] { link: RecentChanges; } |
||
[ WikiNode ] |
[ WikiNode ] --> [ Fnord ] { link: Fnord; } |
||
</graph> |
</graph> |
||
Line 63: | Line 63: | ||
<graph> |
<graph> |
||
[ S23 ] {link: http://s23.org/wiki/;} --> [ StarTrek ] { link: http://www.memory-alpha.org/en/index.php/Main_Page; } |
[ S23 ] {link: http://s23.org/wiki/;} --> [ StarTrek ] { link: http://www.memory-alpha.org/en/index.php/Main_Page; } |
||
[ S23 ] |
[ S23 ] --> [ Brasil ] { link: http://rio.ifi.unizh.ch/brasilienwiki/index.php/Hauptseite; } |
||
[ S23 ] |
[ S23 ] --> [ Gentoo ] { link: http://gentoo-wiki.com/; } |
||
[ S23 ] |
[ S23 ] --> [ Python ] { link: http://www.pythonwiki.de/; } |
||
[ S23 ] |
[ S23 ] --> [ ZZZ ] { link: http://wiki.zzz.ee/index.php/; } |
||
</graph> |
</graph> |
||
Revision as of 22:09, 3 December 2005
We got this new mediawiki extension installed now. It needed a few perl modules to be installed via cpan, esp. it uses Graph:Easy. Even though a few errors occured (that i reported to the author) it seems to work now.
You can create graphs like this:
source examples
<graph> [ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ] </graph>
result examples
check source to see how they workd
3 nodes
<graph>
[ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ]
</graph>
4 nodes
<graph>
[ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ] [ S23 ] -> [ Neighbor4 ]
</graph>
5 nodes
<graph>
[ S23 ] -> [ Neighbor1 ] [ S23 ] -> [ Neighbor2 ] [ S23 ] -> [ Neighbor3 ] [ S23 ] -> [ Neighbor4 ] [ S23 ] -> [ Neighbor5 ]
</graph>
Nodes with links
Graph:Easy:
<graph> node { linkbase: http://www.bloodgate.com/perl/; } [ Graph ] { link: graph/; } --> [ Manual ] { link: graph/manual/; } </graph>
S23: <graph> node { linkbase: /wiki/; } [ WikiNode ] { link: WikiNode; } --> [ Sandbox ] { link: Sandbox; } [ WikiNode ] --> [ RecentChanges ] { link: RecentChanges; } [ WikiNode ] --> [ Fnord ] { link: Fnord; } </graph>
<graph> [ 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/; } </graph>