Difference between revisions of "Wgraph:Sample Genealogy 6"
From FollowTheScore
Line 13: | Line 13: | ||
noresultsheader= --- no dynasty data found. --- | noresultsheader= --- no dynasty data found. --- | ||
mode=userformat | mode=userformat | ||
− | include={Person}.tab | + | include={Wgraph:Person}.tab |
listseparators=\n{|class=sortable\n!Person\n!born\n!died\n!father\n!mother\n!married to\n!info\n|-,\n,,\n|} | listseparators=\n{|class=sortable\n!Person\n!born\n!died\n!father\n!mother\n!married to\n!info\n|-,\n,,\n|} | ||
secseparators=\n | secseparators=\n | ||
Line 28: | Line 28: | ||
| noresultsheader= node x {label "--- no dynasty data found. ---"} | | noresultsheader= node x {label "--- no dynasty data found. ---"} | ||
| mode=userformat | | mode=userformat | ||
− | | include={Person}.wgl | + | | include={Wgraph:Person}.wgl |
}} | }} | ||
skip_edgetypes info | skip_edgetypes info |
Revision as of 12:57, 21 July 2007
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 ..