From GamingWiki
Jump to: navigation, search
Line 28: Line 28:
 
  digraph character { [rankdir=LR]
 
  digraph character { [rankdir=LR]
 
   node [fontcolor=blue,fontsize=12];
 
   node [fontcolor=blue,fontsize=12];
  edge [fontsize=9];
 
 
   "{{#var:root}}" [URL="{{#var:root}}"];
 
   "{{#var:root}}" [URL="{{#var:root}}"];
  
 +
  { rank=same;
 
{{#if: {{#hashprint: relhash}}|{{#hashprint: relhash ||%%%% |@@@@ |{{#if: %%%%|
 
{{#if: {{#hashprint: relhash}}|{{#hashprint: relhash ||%%%% |@@@@ |{{#if: %%%%|
   "{{#var:root}}" -> {"%%%%" [URL="%%%%"]} [label="@@@@"];
+
   "%%%%" [URL="%%%%"];
 +
}}}}}}
 +
{{#if: {{#hashprint: invhash}}|{{#hashprint: invhash ||%%%% |@@@@ |{{#if: %%%%|
 +
  {"%%%%" [URL="%%%%"]};
 
}}}}}}
 
}}}}}}
 +
  }
  
 +
  edge [fontsize=9];
 +
{{#if: {{#hashprint: relhash}}|{{#hashprint: relhash ||%%%% |@@@@ |{{#if: %%%%|
 +
  "{{#var:root}}" -> "%%%%" [label="@@@@"];
 +
}}}}}}
 
{{#if: {{#hashprint: invhash}}|{{#hashprint: invhash ||%%%% |@@@@ |{{#if: %%%%|
 
{{#if: {{#hashprint: invhash}}|{{#hashprint: invhash ||%%%% |@@@@ |{{#if: %%%%|
   {"%%%%" [URL="%%%%"]} -> "{{#var:root}}" [label="@@@@"];
+
   "%%%%" -> "{{#var:root}}" [label="@@@@"];
 
}}}}}}
 
}}}}}}
  

Revision as of 22:40, 28 November 2011

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

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

digraph character { [rankdir=LR]
 node [fontcolor=blue,fontsize=12];
 "Xu Xi Meng" [URL="Xu Xi Meng"];
 { rank=same;

"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="];"Template:))" [URL="Template:))"];

{"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="]};{"Template:))" [URL="Template:))"]};
 }
 edge [fontsize=9];

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

     |mainlabel=-
     |?Has name=
     |?Has description=
     |format=array |propsep=" [label="|sep="];"Xu Xi Meng" -> "Template:))" [label=""];

"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:))" -> "Xu Xi Meng" [label=""];
}

</graphviz>