From GamingWiki
Jump to: navigation, search
Line 5: Line 5:
 
-->{{#vardefine: root | {{{root|{{PAGENAME}}}}} }}<!--
 
-->{{#vardefine: root | {{{root|{{PAGENAME}}}}} }}<!--
  
--><noinclude>{{#vardefine: root | David Shu }}</noinclude><!--
+
--><noinclude>{{#vardefine: root | Maia Guarao }}</noinclude><!--
  
 
-->{{#hashdefine: relhash |<!--
 
-->{{#hashdefine: relhash |<!--
Line 23: Line 23:
 
-->}}<!--
 
-->}}<!--
  
-->{{#if: {{#expr:{{#hashsize: relhash}} or {{#hashsize: invhash}}}}|<!--
+
-->{{#if: {{#hashprint: relhash}}{{#hashprint: invhash}}|<!--
  
-->{{#tag:graphviz |
+
-->{{#tag: pre |
 
  digraph character {
 
  digraph character {
 
   {
 
   {

Revision as of 19:12, 27 November 2011

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

 digraph character {
  {
  node [fontcolor=blue,fontsize=12];
  "Maia Guarao" [URL="Maia Guarao"];
  "[[:Template:((]]#ask: [[Is relationship of::Maia Guarao]]
      |mainlabel=-
      |?Has name=
      |?Has description=
      |format=array |propsep=" [URL="[[:Template:((]]#ask: [[Is relationship of::Maia Guarao]]
      |mainlabel=-
      |?Has name=
      |?Has description=
      |format=array |propsep="];"[[:Template:))]]" [URL="[[:Template:))]]"];
  "[[:Template:((]]#ask: [[Is relationship of::+]][[Has name::Maia Guarao]]
      |mainlabel=-
      |?Is relationship of=
      |?Has description=
      |format=array |propsep=" [URL="[[:Template:((]]#ask: [[Is relationship of::+]][[Has name::Maia Guarao]]
      |mainlabel=-
      |?Is relationship of=
      |?Has description=
      |format=array |propsep="];"[[:Template:))]]" [URL="[[:Template:))]]"];
  }
  edge [len=2,fontsize=10];
  "Maia Guarao" -> "[[:Template:((]]#ask: [[Is relationship of::Maia Guarao]]
      |mainlabel=-
      |?Has name=
      |?Has description=
      |format=array |propsep=" [label="|sep="];"Maia Guarao" -> "[[:Template:))]]" [label=""];
  "[[:Template:((]]#ask: [[Is relationship of::+]][[Has name::Maia Guarao]]
      |mainlabel=-
      |?Is relationship of=
      |?Has description=
      |format=array |propsep=" -> "Maia Guarao" [label="|sep="];"[[:Template:))]]" -> "Maia Guarao" [label=""];
 }