Wgraph:Sample Genealogy 8

From FollowTheScore
Jump to: navigation, search

Genealogy Demo -- Dynamic Graph , starting at

{{#wgraph: svg | thumb=60 |

   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 " A  "  { 

label " A " "\n*" "24.12.1950"

 }

edge from " A " to "C" {type mother} edge from " A " to "B" {type father}

edge from " A " to "X" {type marriage label "1.1.1970
in Las Vegas" }

 node " B  "  { 


 }

edge from " B " to "E" {type mother} edge from " B " to "D" {type father}


 node " C  "  { 


 }

edge from " C " to "G" {type mother} edge from " C " to "F" {type father} edge from " C " to " C " "_info" { type info }

 node " C  " "_info" { type info label "some explanation to C" }
 node " A2 "  { 


 }

edge from " A2 " to "C2" {type mother} edge from " A2 " to "B" {type father}


 node " A3 "  { 


 }

edge from " A3 " to "C2" {type mother} edge from " A3 " to "B" {type father}


 node " D  "  { 


 }

edge from " D " to "I" {type mother} edge from " D " to "B" {type father}


 node " I  "  { 


 }

edge from " I " to "K" {type mother} edge from " I " to "D" {type father}


 node " L  "  { 


 }

edge from " L " to "K" {type mother}


 node " X  "  { 


 }

edge from " X " to "Y" {type mother}



 orientation    right_to_left

}}

You can select one or more nodes (e.g. 'A' or 'B,C'). You will see the exclusive part of the graph which starts at the selected edge(s) and follows edges of type 'mother' or 'father'. The Call extension and SimpleForms help us to pass the parameters we selected back to this very article.

{{#form: name=demo | action= /dpldemo/index.php | {{#input: name=title | value = Special:Call/Wgraph:Sample_Genealogy_8 | type=hidden }} {{#input: name= region | value = }} {{#input: type = submit | value = extract subgraph }} }}

You may want to study the source code of this example. Please note that once you have pressed the above button you will see a temporary (special) page which looks exactly like the original page. To access the source code, however, you must go back to Wgraph:Sample Genealogy 8.

back to        Wgraph:Sample Genealogy 7 ..