From GamingWiki
Line 4: | Line 4: | ||
-->{{#vardefine: root | {{{root|{{PAGENAME}}}}} }}<!-- | -->{{#vardefine: root | {{{root|{{PAGENAME}}}}} }}<!-- | ||
+ | |||
+ | --><noinclude>{{#vardefine: root | Bob Hurst }}</noinclude><!-- | ||
-->{{#hashdefine: relhash |<!-- | -->{{#hashdefine: relhash |<!-- | ||
− | -->{{#ask: [[Is relationship of:: | + | -->{{#ask: [[Is relationship of::{{#var:root}}]] |
|mainlabel=- | |mainlabel=- | ||
|?Has name= | |?Has name= | ||
Line 19: | Line 21: | ||
{ | { | ||
node [fontcolor=blue]; | node [fontcolor=blue]; | ||
− | + | "{{#var:root}}" [URL="{{#var:root}}"]; | |
{{#hashprint: relhash |;|%%%% |@@@@ |"%%%%" [URL="%%%%", label="%%%%"]}}; | {{#hashprint: relhash |;|%%%% |@@@@ |"%%%%" [URL="%%%%", label="%%%%"]}}; | ||
} | } | ||
edge [len=2]; | edge [len=2]; | ||
− | {{#hashprint: relhash ||%%%% |@@@@ | | + | {{#hashprint: relhash ||%%%% |@@@@ |"{{#var:root}}" -> "%%%%" [label="@@@@"];}} |
} | } | ||
|border=frame |format=png |renderer=neato }}<!-- | |border=frame |format=png |renderer=neato }}<!-- |
Revision as of 18:17, 27 November 2011
Draw a graph of the relationships of a character or other entity.
<graphviz border="frame" format="png" renderer="neato">
digraph character { { node [fontcolor=blue]; "Bob Hurst" [URL="Bob Hurst"]; "Template:((#ask: Is relationship of::Bob Hurst |mainlabel=- |?Has name= |?Has description= |format=array |propsep=" [URL="Template:((#ask: Is relationship of::Bob Hurst |mainlabel=- |?Has name= |?Has description= |format=array |propsep=", label="Template:((#ask: Is relationship of::Bob Hurst |mainlabel=- |?Has name= |?Has description= |format=array |propsep="];"Template:))" [URL="Template:))", label="Template:))"]; } edge [len=2]; "Bob Hurst" -> "Template:((#ask: Is relationship of::Bob Hurst |mainlabel=- |?Has name= |?Has description= |format=array |propsep=" [label="|sep="];"Bob Hurst" -> "Template:))" [label=""]; }
</graphviz>