Wgraph:Sample Genealogy 6

From FollowTheScore
Revision as of 13:56, 21 July 2007 by Gero (talk | contribs)
Jump to: navigation, search

We spread the 'database' over several articles

The next step is a simple one, but it shows the real power of the approach presented here.

Now we use multiple dynasty articles. Each of them contains a piece of information we want to use for our table and graph. We can use the same templates. Only the selection criteria within the DPL statement have to be changed.

Note that the second dynasty file (Wgraph:Dynasty Scholz 2) contains additional data about a person ("Gero Scholz") which was already defined in the first dynasty file. While the table representation shows two rows with the same key, wgraph is able to merge the two facts and produces a correct graph.

--- no dynasty data found. ---


{{#wgraph: svg | thumb = 40 |

   nodetype male    { shape box color #ddddff bordercolor #9999ff width 140 textwidth 20 }
 nodetype female  { shape box color #ffdddd bordercolor #ff9999 width 140 textwidth 20 }
 edgetype father   { color #7777ff backarrowsize 10 backarrowstyle solid arrowsize 0 }
 edgetype mother   { color #ff7777 backarrowsize 10 backarrowstyle solid arrowsize 0 }
 edgetype marriage { kind rightnear arrowstyle line  backarrowstyle line backarrowsize 10 color #ff77ff }
 nodetype info     { color #f0f0f0 borderstyle dashed bordercolor #e0e0e0 }
 edgetype info     { kind near arrowstyle none linestyle dotted color lightgray }
 nodetype 'undefined node' { bordercolor red 
                          // label '%%?' 
 }
 orientation bottom_to_top
 splines yes


 node x {label "--- no dynasty data found. ---"}
 skip_edgetypes info
 orientation    left_to_right

}}

continue with  Wgraph:Sample Genealogy 7 ..
back to        Wgraph:Sample Genealogy 5 ..