Difference between revisions of "Wgraph:Sample Genealogy 8"
Line 21: | Line 21: | ||
}} | }} | ||
− | 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'. | + | 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 a slightly modified '''Inputbox'' extension help us to pass the parameters we selectto the article itself. |
{{#inputbox: type=create | {{#inputbox: type=create |
Revision as of 13:20, 21 July 2007
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 a slightly modified 'Inputbox extension help us to pass the parameters we selectto the article itself.
{{#inputbox: type=create
|break=no |buttonlabel= extract subgraph |titleprefix=Special:Call/Wgraph:Sample_Genealogy_8, |default=
}}
back to Wgraph:Sample Genealogy 7 ..