From GamingWiki
Jump to: navigation, search
Line 3: Line 3:
 
<onlyinclude><!--
 
<onlyinclude><!--
  
-->{{#ask: [[Bob Hurst]][[:+]]
+
-->{{#vardefine: root | {{{root|{{PAGENAME}}}}} }}<!--
|?name
 
|?high concept
 
|?has relationship=relationship
 
|?has relationship#name|+index=1
 
|?has relationship#desc|+index=2
 
|format=table }}<!--
 
-->
 
SIO testing:
 
{{#ask: [[is relationship of character::Bob Hurst]]
 
|mainlabel=-
 
|?has name
 
|?has description
 
|format=table}}<!--
 
--><!-- {{#arrayprint: relationships}} --><!--
 
  
--><graphviz border='frame' format='png' renderer='neato'>
+
-->{{#hashdefine: relhash |<!--
 +
  -->{{#ask: [[Is relationship of::Bob Hurst]]
 +
      |mainlabel=-
 +
      |?Has name=
 +
      |?Has description=
 +
      |format=array |propsep=;|sep=,}}<!--
 +
-->}}<!--
 +
 
 +
-->{{#ifeq: {{#hashsize: relhash}}|0||<!--
 +
 
 +
-->{{#tag:graphviz |
 
  digraph character {
 
  digraph character {
 
   {
 
   {
 
   node [fontcolor=blue];
 
   node [fontcolor=blue];
 
   Bob_Hurst  [URL="Bob Hurst",  label="Bob Hurst"];
 
   Bob_Hurst  [URL="Bob Hurst",  label="Bob Hurst"];
   Jack_Marks [URL="Jack Marks", label="Jack Marks"];
+
   {{#hashprint: relhash |;|%%%% |@@@@ |"%%%%" [URL="%%%%", label="%%%%"]}};
  Xu_Xi_Meng [URL="Xu Xi Meng", label="Xu Xi Meng"];
 
 
   }
 
   }
 
   edge [len=2];
 
   edge [len=2];
   Bob_Hurst -> Jack_Marks [label="went to school with"];
+
   {{#hashprint: relhash ||%%%% |@@@@ |Bob_Hurst -> "%%%%" [label="@@@@"];}}
  Bob_Hurst -> Xu_Xi_Meng [label="was a ghoul servitor for"];
 
 
  }
 
  }
</graphviz><!--
+
|border=frame |format=png |renderer=neato }}<!--
 +
 
 +
-->}}<!-- endifeq
  
 
--></onlyinclude>
 
--></onlyinclude>

Revision as of 18:15, 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",  label="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>