From GamingWiki
Jump to: navigation, search
Line 27: Line 27:
 
-->{{#tag: graphviz |
 
-->{{#tag: graphviz |
 
  digraph character {
 
  digraph character {
  {
 
 
   node [fontcolor=blue,fontsize=12];
 
   node [fontcolor=blue,fontsize=12];
 +
  edge [len=2,fontsize=10];
 
   "{{#var:root}}" [URL="{{#var:root}}"];
 
   "{{#var:root}}" [URL="{{#var:root}}"];
  {{#hashprint: relhash |;|%%%% |@@@@ |"%%%%" [URL="%%%%"]}};
+
 
  {{#hashprint: invhash |;|%%%% |@@@@ |"%%%%" [URL="%%%%"]}};
+
{{#if: {{#hashprint: relhash}}|{{#hashprint: relhash ||%%%% |@@@@ |
  }
+
  "{{#var:root}}" -> {"%%%%" [URL="%%%%"]} [label="@@@@"];
  edge [len=2,fontsize=10];
+
}}}}
  {{#hashprint: relhash ||%%%% |@@@@ |"{{#var:root}}" -> "%%%%" [label="@@@@"];}}
+
 
  {{#hashprint: invhash ||%%%% |@@@@ |"%%%%" -> "{{#var:root}}" [label="@@@@"];}}
+
{{#if: {{#hashprint: invhash}}|{{#hashprint: invhash ||%%%% |@@@@ |
 +
  {"%%%%" [URL="%%%%"]} -> "{{#var:root}}" [label="@@@@"];
 +
}}}}
 +
 
 
  }
 
  }
 
|border=frame |format=png |renderer=dot }}<!--
 
|border=frame |format=png |renderer=dot }}<!--

Revision as of 22:04, 28 November 2011

Draw a graph of the relationships of a character or other entity.

<graphviz border="frame" format="png" renderer="dot">

digraph character {
 node [fontcolor=blue,fontsize=12];
 edge [len=2,fontsize=10];
 "Xu Xi Meng" [URL="Xu Xi Meng"];

"Xu Xi Meng" -> {"Template:((#ask: Is relationship of::Xu Xi Meng

     |mainlabel=-
     |?Has name=
     |?Has description=
     |format=array |propsep=" [URL="Template:((#ask: Is relationship of::Xu Xi Meng
     |mainlabel=-
     |?Has name=
     |?Has description=
     |format=array |propsep="]} [label="|sep="];"Xu Xi Meng" -> {"Template:))" [URL="Template:))"]} [label=""];

{"Template:((#ask: Is relationship of::+Has name::Xu Xi Meng

     |mainlabel=-
     |?Is relationship of=
     |?Has description=
     |format=array |propsep=" [URL="Template:((#ask: Is relationship of::+Has name::Xu Xi Meng
     |mainlabel=-
     |?Is relationship of=
     |?Has description=
     |format=array |propsep="]} -> "Xu Xi Meng" [label="|sep="];{"Template:))" [URL="Template:))"]} -> "Xu Xi Meng" [label=""];
}

</graphviz>