From GamingWiki
Jump to: navigation, search
Line 31: Line 31:
 
   "{{#var:root}}" [URL="{{#var:root}}"];
 
   "{{#var:root}}" [URL="{{#var:root}}"];
  
{{#if: {{#hashprint: relhash}}|{{#hashprint: relhash ||%%%% |@@@@ |
+
{{#if: {{#hashprint: relhash}}|{{#hashprint: relhash ||%%%% |@@@@ |{{#if: %%%%|
 
   "{{#var:root}}" -> {"%%%%" [URL="%%%%"]} [label="@@@@"];
 
   "{{#var:root}}" -> {"%%%%" [URL="%%%%"]} [label="@@@@"];
}}}}
+
}}}}}}
  
{{#if: {{#hashprint: invhash}}|{{#hashprint: invhash ||%%%% |@@@@ |
+
{{#if: {{#hashprint: invhash}}|{{#hashprint: invhash ||%%%% |@@@@ |{{#if: %%%%|
 
   {"%%%%" [URL="%%%%"]} -> "{{#var:root}}" [label="@@@@"];
 
   {"%%%%" [URL="%%%%"]} -> "{{#var:root}}" [label="@@@@"];
}}}}
+
}}}}}}
  
 
  }
 
  }

Revision as of 22:06, 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>